Skip to content

Incompatibilities between versions

Jonathan Coates edited this page Nov 28, 2019 · 15 revisions

CC: Tweaked tries to remain as compatible between versions as possible, meaning you should be able to run code written on very old versions of ComputerCraft on the latest version of the mod. However, some changes to the underlying game, or ComputerCraft's own internals may make incompatible.

This page serves as documentation for breaking changes and "gotchas" one should look out for between CC:T versions.

Minecraft 1.12 to 1.13

  • The "key code" for key and key_ups has changed, due to Minecraft updating to LWJGL 3. Make sure you're using the constants provided by the keys API, rather than hard-coding numerical values.

  • Minecraft 1.13 removed the concept of item damage and block metadata (see "The Flattening"). As a result turtle.inspect no longer provides block metadata, and turtle.getItemDetail no longer provides damage.

    • Block states (turtle.inspect().state) should provide all the same information as block metadata, but in a much more understandable format.
    • Item and block names now represent a unique item type. For instance, wool is split into 16 separate items (minecraft:white_wool, etc...) rather than a single minecraft:wool with each meta/damage value specifying the colour.
  • Custom ROMs are now provided using Data packs rather than resource packs. This should mostly be a matter of renaming the "assets" folder to "data", and placing it in "datapacks", but there are a couple of other gotchas to look out for:

    • Data packs impose some restrictions on file names. As a result, your programs and directories must all be lower case.
    • Due to how data packs are read by CC: Tweaked, you may need to use the /reload command to see changes to your pack show up on the computer.