Repository navigation
Releases
Releases · joernott/minecraft-c0de
c0de 0.6.0
Security: passwords and keys out of sight.
- Hidden input: INPUT has the new parameter
hide; laptops and tablets then show*for what is typed and***for the typed line. - Hidden items: variable, constant and literal items can hide their value for good ("Hide the value" in their dialog). Only the trash can removes it. A parameter filled by a hidden item, and WRITE of a sensitive value, stay hidden.
- Sensitive values: the tag
security: "sensitive"on variables, constants and struct elements makes the debugging tool and the program runner show***instead of the value. - The vault: every player has a vault of secrets while they are online. The new SECRET block reads a secret like a constant. A program can only use the vault of the player who started it, and only if that player owns its sheet.
- c0de/security: a new library with SET_SECRET, DELETE_SECRET, HAS_SECRET, CREATE_VAULT, OPEN_VAULT, HAS_VAULT and IS_VAULT_OPEN.
- Persistent vault: secrets can be kept in a KeePass file (KDBX 4) per player. The server stores it, but only the game of the player opens it, with a password that is typed in a dialog and never leaves the game. The files open in KeePass and KeePassXC.
- Error codes: VAULT_UNAVAILABLE (314) to VAULT_FAILED (321).
- Program runner: the options file can give the program a vault (see docs/runner.md).
- Block data: GET_BLOCK returns the data of a block (the items of a chest, the text of a sign) as SNBT in its new result
data, and PLACE_BLOCK takes it in its new parameterdata. - MOVE_ITEMS works for every owner who could open both inventories.
countis optional (default 1, -1 for all), and instead ofidit takes afilter(item IDs or a search like in JEI). It takes time: one stack per tick for each 128 blocks. The settingsenableMoveItems,moveItemsStacksPerTickandmoveItemsBlocksPerTickconfigure it. - COMMAND: a new function of c0de/minecraft runs a command like a command block, for administrators (setting
enableCommand). - Regular expressions: REGEX_MATCH and REGEX_REPLACE in c0de/strings, with replacements and flags like sed.
- Beta: from this version on, c0de is published as a beta instead of an alpha.
- Handbooks without Patchouli: the guide and the six handbooks are part of c0de and work on every Minecraft version and both loaders. Each one is a red binder with a label of its own colour, crafted from a book and the same item as before, in English and German. The book screen and its Markdown are based on Lavender and lavender-md (MIT, see NOTICE.md). Every player gets the guide binder once, also players who got the Patchouli guide before. c0de no longer uses Patchouli.
- Fixed: the trash can icon of the item dialogs was drawn in the wrong place on Minecraft 1.21.11 and later.
- Tag dialog: the language button shows only the language (
securityinstead ofLanguage: security). - Fixed: c0de for Fabric 1.21.1 reported the version 0.1.0 in C0DE_VERSION and in the log.
c0de 0.5.0
Feedback from the tutorials of c0de.at.
- PRINT writes BOOLEAN values as
TRUEandFALSE, as the handbook says (⊕ still writestrueandfalse). - RETURN raises INVALID_ARGUMENT for an error the program made with a code below 1000, like RAISE; an error received from a CALL can still be passed on.
- Program runner: it knows the types and functions of c0de/minecraft, so programs that include it are validated completely and run until they call the library, which raises INVALID_ARGUMENT ("needs the game"). It reports every problem once, sorted by line. docs/runner.md describes the values of
input. - Schema of the program files:
c0de-program.schema.json, attached to the GitHub release, describes the YAML files of the disk drive, so editors can check hand-written files. Every file is checked against it before it is read; a file that doesn't match is refused with a message that names the first problem and where it is. - Safe program names: wherever a program crosses a disk (copying, saving, loading, receiving it on the server, building it), its name must be a valid name. Names with path separators, invisible or right-to-left characters or look-alike letters of other scripts are refused, so a program can't hide its real name or write outside the folder
c0de. - Documentation: the guide, the reference and the handbooks answer what the tutorials of c0de.at had to find out by trying (indexes, the minus sign, precedence of AND and OR, errors as constants, EXIT and results, TICKS and the time of day, FORMAT, the time zone of TIMER and WEEK, POSITION, ENTITY and ITEM_STACK, FIND_ENTITIES, PID.activator, the instruments of SOUND, SAY, FROM_JSON). PI has a page of its own.
c0de 0.4.0
Documentation: for the tutorials of c0de.at and for players who read German.
- C0DE_VERSION: a built-in constant with the version of the mod. Other mods can register built-in constants of their own, like C0DE_NET_VERSION of c0de net.
- Program runner:
c0de-runner-<version>.jar, attached to the GitHub release, runs and tests c0de programs without Minecraft (see docs/runner.md). - German: the guide and the handbooks are translated into German (docs/de), and the Patchouli books show them in German when the game is set to German.
- Timer blocks: the message "Paused by redstone" is translated (the dialog showed its key).
- 3D models:
c0de-models-<version>.zip, attached to the GitHub release, has every block of the mod as a glTF model, for the 3D views of programs on c0de.at.
c0de 0.3.0
Feedback from playing 0.2.0, for all Minecraft versions of 0.2.0.
- Timer blocks: a redstone signal pauses them, also when they are placed next to a signal that is already on; their dialog shows "Paused by redstone". Pause a fast timer before you change its program.
- Disk drive: a larger dialog that shows its messages completely, and the sound of a floppy drive when it reads or writes a disk.
- SHEET and PID: two new built-in constants tell a program about its sheet (number, owner, position) and its process (PID, function, owner, the player who started it, the trigger block, start time).
- CURSOR: a built-in constant that tells a program where its cursor is (line, function, depth) and how much of its stack it uses.
- Debugging tool: the cursor dialog shows how many slots of the stack are used.
- Colors: the constants COLOR_BLACK to COLOR_WHITE name the 16 colors of COLOR.
- MINE_BLOCK: a new function of c0de/minecraft breaks a block with the most suitable tool from an inventory, as fast as a player and with the same wear, and puts the drops into another inventory. Every owner may use it.
- PLACE_BLOCK: the new parameter
inventorytakes the block from an inventory; with it, every owner may place blocks. - Error codes: INVENTORY_FULL (312) and ITEM_MISSING (313).
- Boots: left-click a FUNCTION block with any boots to jump to the other end of its function; right-click it to jump to the PROGRAM line.
- Pliers: a new tool, crafted from shears and a stick, moves a line or a marked area one block to the left (left click) or to the right (right click).
- Note: the names SHEET, PID, CURSOR, SHEET_INFO, PID_INFO, CURSOR_INFO and COLOR_BLACK to COLOR_WHITE are now reserved; a program that declares one of them must rename it.
c0de 0.2.0
c0de for all newer Minecraft versions: 1.21.1, 1.21.11, 26.1.2, 26.2 and 26.3, each for Fabric and NeoForge.
- New Minecraft versions: the mod works the same on 1.21.11, 26.1.2, 26.2 and 26.3; programs saved with the disk drive can be loaded on every version. 26.x needs Java 25, like Minecraft itself.
- Fixed: the recipe of the wrench had an invalid category; Minecraft 26.3 refused to load it.
- Patchouli: the in-game books are only available on 1.21.1, where Patchouli was tested with the mod.
c0de 0.1.0
The first alpha for Minecraft 1.21.1, for Fabric and NeoForge.
- The c0de dimension: endless sheets of green-and-white computer paper, one program per sheet, with line numbers that show whether every line is correct.
- The language: variables and constants of the types BOOLEAN, INTEGER, FLOAT, CHAR, STRING, TIME, ARRAY, HASH, STRUCT and ERROR; expressions; functions with parameters and results; recursion; IF and ELSE; the loops FOR, EACH, WHILE and REPEAT; error handling.
- Running programs: trigger blocks, timer blocks and debug trigger blocks start processes anywhere in the world; variable and constant items carry values in and out; a debug cursor can be paused and stepped line by line.
- Input and output: PRINT on display walls, laptops and tablets, INPUT from I/O blocks or typed on a terminal, WRITE into I/O blocks, and the screen functions CLS, LOCATE, CSRLIN, POS, COLOR and INKEY of AmigaBASIC.
- Libraries: c0de/math, c0de/strings (with FORMAT, JSON and YAML), c0de/time and c0de/minecraft (sounds, chat, levers, buttons, doors, inventories, blocks, entities). Other mods can add libraries.
- Tools: the wrench, the text marker, the hammer, the debugging tool, the c0de disk, which carries a program, and the disk drive, which saves programs as YAML files on your computer and loads them.
- Documentation: a player guide and six handbooks, also as books in the game if Patchouli is installed.
- Multiplayer: sheets belong to the player who builds on them first; the floor shows the number and owner of every sheet, and the wrench gives sheets away. Trigger blocks decide who may start them (Run).
- Permissions: functions that change the world are off by default for players without operator rights and can be enabled in
config/c0de.properties.