Started by
Jamesthefool
on
Topic category: Advanced modding
Ok, so all I want to know is how do I add a cooldown on an item which gives the player boosts and also how to make it so you can summon mobs for a short amount of time. EG:50 seconds
I tried:
The above creates an error:
A semi-colon at the end didn't work either so I'll try putting a space. Sorry for not giving an answer but this might help
Just give the mob wither, it will die after a while. As for the item, that is a tricky bit of coding.
i'm pretty sure while cycling down some procedure blocks, i saw this procedure block that gives an item a cooldown. if that isn't what you wanted or if it doesn't exist sorry. but you can also make a cooldown timer using either variables, nbt data, scoreboards etc. and for the summon entities for a period of time, you can make a timer using the figures above as suggested and when the timer is over, you can either select the despawn provided entity procedure block or give the entity high damage.