CC: Tweaked 1.110.3 for 1.20.5 #1811
SquidDev
started this conversation in
Announcements
Replies: 1 comment
-
An update to this for 1.20.6: upgrade data providers have now been removed in favour of the built-in registry datagenerators ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Minecraft 1.20.6 is just around the corner, but I thought I'd sneak in just before with a release of CC: Tweaked for Minecraft 1.20.5.
A warning
While 1.20.5 is a minor update, it contains several major changes to Minecraft's internals. The most prominent of these is the move from item NBT to the more structured components, but there have also been changes to networking, registries, and all sorts of bits and bobs.
As with any update to a new Minecraft version, this release is alpha quality. There will be bugs (I spotted one minutes after releasing), crashes and possible data-loss.
As mentioned above, the biggest change here is the removal of item NBT. This will typically break most existing modded worlds. CC:T should convert across fine (with the exception of enchanted turtle tools), but I have not tested this thoroughly. Please report any issues you encounter.
Datapack changes
We've unfortunately had to make several breaking changes to the datapack format:
Turtle upgrades are now loaded from
data/*/computercraft/turtle_upgrade
not ``data/*/computercraft/turtle_upgrades(note trailing
s`), and similarly for pocket upgrades.Turtle tools now require the adjective to be explicitly given. This can be any raw JSON text value. See CC:T's diamond pickaxe for an example.
API changes
Likewise, there have been several changes to the public API, mostly around upgrades.
UpgradeSerialiser
has been replaced withUpgradeType
, which now parses upgrade JSON via aCodec
.As part of this change, upgrades are no longer constructed with an ID (
getUpgradeID
has been removed), and should implement thegetType
method to return their correspondingUpgradeType
.Upgrade data is now stored using components, rather than a unstructured NBT compound tag.
getUpgradeNBTData
has been renamed togetUpgradeData
.updateUpgradeNBTData
has been removed, and replaced with asetUpgradeData
method, which accepts a new (immutable) set of components.Upgrade data generators now work by registering an instance of the upgrade, rather than constructing the JSON manually. See CC:T's pocket data generator for an example.
Feedback is very much welcome on all of these changes! I'm definitely not sure about the interface for upgrade data right now, so happy to refine that.
Beta Was this translation helpful? Give feedback.
All reactions