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

Started by Aksumite on Tue, 08/04/2020 - 22:20

Topic category: Help with modding (Java Edition)

Last seen on 01:21, 23. Aug 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
Last seen on 22:49, 17. Mar 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 01:21, 23. Aug 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 02:57, 31. Aug 2021
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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