How to detect what level a composter is at, and how would you edit the level?

Started by Aksumite on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to detect what level a composter is at, and how would you edit the level?
Sat, 08/15/2020 - 12:01 (edited)

(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
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not sure exactly how you…
Thu, 08/13/2020 - 14:56

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.

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried this, but nothing…
Sat, 08/15/2020 - 06:45

I tried this, but nothing seemed to happen. I will test more I guess

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
currently mcreator NBT tag…
Sat, 08/15/2020 - 09:13

currently mcreator NBT tag procedure blocks can't change vanilla nbt tags I think.

currently mcreator NBT tag…
Sat, 08/15/2020 - 10:13

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