Need help with making an energy distribution system

Hello! I’m making a game in Creative and need help making an energy distribution system that is not based on questions. But instead it gives a certain team energy at set intervals [ About 100 energy per a set amount of time ]

1 Like

Welcome to the forums, @XWingedLionX !

3 Likes

Welcome to the community, @XWingedLionX! what action do you want the player to perform to get them energy?

Maybe you could put triggers in certain spots. or use checkpoints that when activated give you energy.

Just use a repeater/trigger loop connected to an item granter, like this:


The lifecycle should track game start. You can adjust the repeater Task Interval to how often you want energy to be granted. But make sure it stops after receiving on a channel!

For the item granter, make it grant energy. Then, customize how much of it you want to be given. I did 100, but it’s up to you!

2 Likes

I’m sure you’ve noticed a general negative sentiment towards repeaters around here.
This is because they require more memory than a trigger loop, which can do the exact same thing!
In this case you can replace the repeater with a trigger that has these settings:


Then, just attach the wires in the same way you would to the repeater:
event occurs → trigger → grant item

4 Likes