I need some Help!

Started by TinodoesMods on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 week ago
Joined Jan 2025
Points:
9

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
I need some Help!

i have a mob with a gui. the gui should let you insert an item, and in return will give you one of a group of items under a tag. once you take the item it gives, the item you gave is spent. ive spent ages trying to wrap my head around this, yet to no prevail. does anyone have an idea?

Active 3 weeks ago
Joined Jul 2022
Points:
303

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
you can make it so that when…
Sat, 02/01/2025 - 00:05

you can make it so that when it detects an item in the input slot it generates a random number which corresponds to an item and is in the output slot and have a procedure that detects whether the item is taken from the output slot and if so it clears the input slot

Active 1 week ago
Joined Jan 2025
Points:
9

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
ive tried that, but what i…
Sat, 02/01/2025 - 09:44

ive tried that, but what i need is a break between items, for example; diamond, wait 5 seconds, emerald, wait 5 seconds, so on and so forth

Active 1 week ago
Joined Sep 2024
Points:
94

User statistics:

  • Modifications: 2
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 80
just copy TheSpaceLeader_2's…
Wed, 02/19/2025 - 11:50

just copy TheSpaceLeader_2's idea and just add wait 300 ticks on server side, or, here's a work around if it's on the client, since a while True does every tick, make a timer, once it reaches your desired amount of ticks(for you it would be 300), break loop