Help with item spawning

Started by MGMac on

Topic category: Help with modding (Java Edition)

Last seen on 13:36, 28. Apr 2024
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with item spawning

I need to spawn an item above a block every 1 minute. I had used on block update tick with wait 1200 ticks then spawn gem but it waited 1 minute then started spawning gems every tick which is very bad. Please help, this relates to the modjam and is therefore very urgent

Last seen on 20:57, 20. Jan 2024
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Here is an idea: Go to the…
Wed, 03/30/2022 - 04:17

Here is an idea:
Go to the variables tab at the side and create a variable. Make it a number variable type and set the variable scope to GLOBAL_WORLD
Create a procedure.
The variable will go up every tick, and there will be an if statement below that looks like this.
Code Idea
I haven't tested this out, so make modifications if you need,

Last seen on 13:36, 28. Apr 2024
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wow this was very helpful, I…
Wed, 03/30/2022 - 04:20

Wow this was very helpful, I'll have to test it out but thanks

Last seen on 13:36, 28. Apr 2024
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wouldn't this apply to all…
Wed, 03/30/2022 - 14:16

Wouldn't this apply to all of the blocks? I would like each block of this type to still work

Last seen on 17:59, 7. Jan 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use a while true to have a…
Wed, 03/30/2022 - 20:13

Use a while true to have a wait 1200 ticks then run?
Or have a ticker that goes up every tick and will summon a gem when it hits X before resetting to 0