Custom generator not working

Started by FireWorks_CreepeR on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom generator not working

I was making a block for my mod which was supposed to generate energy basing the fuel power of items in the inventory. Anyways, instead of "burning" the items the block instantly goes back to the "off-mode". I guess the procedure blocks themselves might be bugged, but I'm not sure.
 

The elements of the Coal Generator are CoalGenerator, CoalGeneratorWorking, ProcCoalGeneratorActivate and ProcCoalGeneratorWork.

Details:

  • MCreator version: 2020.5
  • Generator type: Forge 1.15.2
  • OS: Windows 10
Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I was using procedure blocks…
Sun, 11/29/2020 - 12:47

I was using procedure blocks with local variables. Checking the number to change between the active and inactive mode, increasing the number to the fuel power of the item and subtraction from the number variable for "burning" of items.

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Klemen What should I use…
Tue, 12/01/2020 - 09:52

@Klemen What should I use instead?

 

Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nbt variable  use the nbt…
Mon, 05/01/2023 - 14:52

nbt variable 

use the nbt number tags for block and you can stock permanant variable