Started by
FireWorks_CreepeR
on
Topic category: Help with Minecraft modding (Java Edition)
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
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.
Local variables are not preserved and only exist when the procedure is run once.
@Klemen What should I use instead?
nbt variable
use the nbt number tags for block and you can stock permanant variable