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
Hey ! I think found the problem, i think it's because of the maxPurifying nbt, i think i didn't implement it, i'll make this. So can you explain me the logic i have to do ? Thanks :)
Yeah nah, it still didn't work :( I'll send the procedures
First procedure is when the gui is closed
Second procedure is when the gui is open
Last procedure is when the gui is tick open
https://imgur.com/a/1BwPfJE
I think I've just seen your problem: in the first part of your if statement, you're checking if there's seeds in the slot but in the "else if"s you aren't checking for seeds, just the random number.
Oh, my bad i'm adding this rn. Don't know if it is this that the procedure doesn't work but let's test it !
Yup, now it's removing seeds but no more modded seeds in slot 1 and 2. I'll show you my procedure now with the edit made.
https://imgur.com/a/taetv2x - this is the gui is open tick procedure
https://imgur.com/a/7c0BRYP - this is the gui is opened procedure
When you're saying how many modded seeds to add, you're setting the slot to "the number of seeds in slot 0 + 1" are you sure that's correct?
Oh, my bad that wasn't the slot i want to the modded seeds to go, that's why it doesn't work... anyways thanks !
Yeah so i changed it, and there's no differencies ;(
Where's the bit of code that increments the "ticksPassed" NBT tag?
In the GUI is closed procedure here:
https://imgur.com/a/HPZ2bEh
I think whole thing is a little funky from the ground up, give me a couple hours or so and then I'll make a little rewrite and send it for you to have a look at.
Okay ! Please let me know on this !