Started by
Aksumite
on
Topic category: Help with Minecraft modding (Java Edition)
(With code snippets) how would you detect what level a composter is at, and how would you edit the level?
As the title says, I would like to be a able to tell what level a composter block is at. I would also like to be able to raise the level higher as if adding crops to it. Help would be appreciated :D
Edited by Aksumite on Sat, 08/15/2020 - 12:01
I'm not sure exactly how you would do this, but the level of composters is an NBT blockstate (the way all block variations are, such as the rotation/shape of stairs or the level of crops). So, if you have a way to edit the NBT of blocks, you can do it for composters.
I tried this, but nothing seemed to happen. I will test more I guess
currently mcreator NBT tag procedure blocks can't change vanilla nbt tags I think.
Yep, NBT procedure blocks use Forge tag subsystem, which is a level lower in NBT tree than vanilla tags