[HELP] Making a block that transforms a seed into other seeds via energy system.

Started by unmushinminecr… on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[HELP] Making a block that transforms a seed into other seeds via energy system.
Thu, 02/20/2025 - 15:35 (edited)

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. 

https://imgur.com/a/M2E159R

Edited by unmushinminecraftiens on Thu, 02/20/2025 - 15:35
Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey ! I think found the…
Wed, 02/26/2025 - 18:29

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 :)

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah nah, it still didn't…
Wed, 02/26/2025 - 19:02

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

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think I've just seen your…
Wed, 02/26/2025 - 19:29

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.

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh, my bad i'm adding this…
Wed, 02/26/2025 - 19:31

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 !

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yup, now it's removing seeds…
Wed, 02/26/2025 - 19:45

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
 

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When you're saying how many…
Wed, 02/26/2025 - 20:40

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?

 

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh, my bad that wasn't the…
Wed, 02/26/2025 - 20:53

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 !

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah so i changed it, and…
Wed, 02/26/2025 - 21:00

Yeah so i changed it, and there's no differencies ;(

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Where's the bit of code that…
Wed, 02/26/2025 - 21:03

Where's the bit of code that increments the "ticksPassed" NBT tag?

 

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think whole thing is a…
Wed, 02/26/2025 - 21:15

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.

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay ! Please let me know on…
Thu, 02/27/2025 - 16:27

Okay ! Please let me know on this !