TheRPGAdventurer Posted October 8, 2018 Posted October 8, 2018 Hi yall, I need help for this is my first time to attempt DataFixing my mod rely heavily on metadata, one example is my dragon egg block that is split into custom breeds by metadata, so I want to make it it's own block but the world saves might remember it's old name, all egg breeds are registered as dragonEgg but I have to make each block and fix it. BlockDragonBreedEgg.class:https://github.com/TheRPGAdventurer/dragonmounts2-1.12.2/blob/master/src/main/java/com/TheRPGAdventurer/ROTD/client/blocks/BlockDragonBreedEgg.java Quote
V0idWa1k3r Posted October 8, 2018 Posted October 8, 2018 Wait untill 1.13 is even available for modding, then ask the question. There will likely be a way to hook into the conversion methods to map metadata to corresponding blockstates. Vanilla has this option, why wouldn't mods have it too? However as of right now it is too early to worry about this. Wait untill an mdk for 1.13 is released. Quote
TheRPGAdventurer Posted October 8, 2018 Author Posted October 8, 2018 I am trying to fix another bug on my mod by removing it's metadata, it's particle effects is like always the original block, eg. the block is green particle when falled upon by mobs or broken is black because the default ender dragon egg is black. Quote
jabelar Posted October 8, 2018 Posted October 8, 2018 If you're already working on it, or if you're making new stuff, the best way to "future proof" for 1.13 is to perform the flattening yourself. Basically make all variants of your blocks a separate block. This should generally be compatible and you can move to such a scheme now in 1.12.2. However, I agree with VoidWalker that otherwise I wouldn't worry about it until we see how 1.13 works and what provisions it already has for data fixing. Quote Check out my tutorials here: http://jabelarminecraft.blogspot.com/
TheRPGAdventurer Posted June 2, 2019 Author Posted June 2, 2019 ok 1.13 i here rewrote my blocks invidually now how do i datafix? I saw choonsters code but i find it too complicated how does it work to it core? Quote
loordgek Posted June 2, 2019 Posted June 2, 2019 dont bother w/ it modded world are going to break 1 Quote
TheRPGAdventurer Posted June 3, 2019 Author Posted June 3, 2019 so all our dragon eggs would jut disappear? Quote
salvestrom Posted June 3, 2019 Posted June 3, 2019 1 hour ago, TheRPGAdventurer said: so all our dragon eggs would jut disappear? I think he is implying that many mods won't do any data-fixing and so heavily modded games are going to end up having to start brand new worlds. If your server only runs your own mod, then sure, go ahead and look into data-fixing. Quote
Cadiboo Posted June 3, 2019 Posted June 3, 2019 Data fixers are a massive mess. Good luck getting them to work, @itsmeow can probably share some knowledge Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Gamebuster Posted June 3, 2019 Posted June 3, 2019 Mojang designed the datafixer system with only vanilla in mind. There is no system implemented for modders 1.13. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.