Math in block GUI

Started by Ray262 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Math in block GUI
Sun, 06/11/2023 - 17:56 (edited)

Hello! Mcreator community, I want to make a mod that converts the souls trapped inside of the Soul-Sand into Redstone energy.


Mod explanation:

We convert souls into Redstone energy by putting soul-Sand into a block called soul extractor
 

Alright, so I have created 2 block: one that emits Redstone signal called soul extractor on (SE-ON) and one that does not emit Redstone signal called soul extractor off (SE-OFF).
the SE-OFF has a GUI that takes soul-Sand then replaces itself with SE-ON for 10 seconds. 
 

What I want to do is to set the value of 1 soul sand to 20 ticks and I want it to register 2 as 40 ticks using math. Is there any way to do this using procedures?

Edited by Ray262 on Sun, 06/11/2023 - 17:56