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

Active 5 months ago
Joined Feb 2025
Points:
58

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 26
[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
Active 5 months ago
Joined Feb 2025
Points:
58

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 26
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 :)

Active 5 months ago
Joined Feb 2025
Points:
58

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 26
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

Active 1 month ago
Joined May 2021
Points:
627

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 66
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.

Active 5 months ago
Joined Feb 2025
Points:
58

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 26
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 !

Active 5 months ago
Joined Feb 2025
Points:
58

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 26
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
 

Active 1 month ago
Joined May 2021
Points:
627

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 66
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?

 

Active 5 months ago
Joined Feb 2025
Points:
58

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 26
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 !

Active 5 months ago
Joined Feb 2025
Points:
58

User statistics:

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

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

Active 1 month ago
Joined May 2021
Points:
627

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 66
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?

 

Active 1 month ago
Joined May 2021
Points:
627

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 66
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.

Active 5 months ago
Joined Feb 2025
Points:
58

User statistics:

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

Okay ! Please let me know on this !