Started by
unmushinminecr…
on
Topic category: Help with Minecraft modding (Java Edition)
Hi, I want to make a block with a GUI that has a charging bar, that use seeds to transforms it into other modded seeds. It uses energy system. But so I don't know how to make it. I've already made the gui, the charging bar but i didn't implemented the logic behind everything.
Edited by unmushinminecraftiens on Thu, 02/20/2025 - 15:35
So, I have made Procedures but the block doesn't work.
https://imgur.com/a/xVWOL9u
The first procedure is the block tick update
The second procedure is when the block is placed
The third procedure is to implement the logic of the progress
The fourth screen is the code for the gui
And i forgot to implement the logic of the energy.
Soooooooooo, I've been able to make the seeds into the modded seeds and then when i ported all of the procedure into the gui procedures (when this gui is opened, while this gui is tick open, when this gui is closed) everything stopped working. The logic was implemented in the update tick in the block but i wanted to keep working even if the gui is closed and now it doesn't work. Yes, i used the world time and made a nbt but it doesn't work. Maybe it's because i have used twice the same name for the nbt, i dont really know.