Started by
Xiarno1
on
Topic category: Help with MCreator software
So I've tried doing a timer thing using variable and the wait block and in my mind it works perfectly and I do not see the reason why this wouldn't work. Any idea ?
Topic category: Help with MCreator software
So I've tried doing a timer thing using variable and the wait block and in my mind it works perfectly and I do not see the reason why this wouldn't work. Any idea ?
first of all, where do you want to put the procedure on
because using NBTs for Items Blocks Entities is easier
Basically I'm trying to spawn a lighting, then wait like... about 3 seconds and spawn 7 lightings in quick succession. I didn't have a problem doing that but the 7 lighting in quick succession went instantly instead so I tried doing a timer (Also to learn how to do timers) and you know the rest.
I don't know the rest, where do you put the procedure in, what trigger
Dropping an item is the trigger. I also want to try with right clicking a block and triggering when doing a command. (All separated, it's just to learn different things)
Just saying that everything works perfectly. I'd like to know the timer in itself so I can use the knowledge and try to put it on other things if possible.
use NBTs and not Global Variables as it won't work on mulitplayer
also don't use the Wait block, it is full of bugs, basically your procedure should be
When Player Right Clicks Block Trigger
if Get Block NBT Number Tag Timer NOT_EQUAL (NUMBER_OF_TICKS_IT_TAKES)
do Repeat (Number of ticks it will take) times
set Block NBT Number Tag Timer to Get Block NBT Number Tag Timer + 1
else if Get Block NBT Number Tag Timer = NUMBER_OF_TICKS
do strike lightning at X Y Z
this will make it so when you right click your custom block, it wait some ticks to strike lightning
Ok but that's just right clicking a block. What about dropping items and doing a chat command ?
dropping item I am not sure since a dropped item is an entity and not an item
for command put the NBT to fit on the player aka entity
also forgot to put it on the procedure, after strike lightning put a block Set block NBT Number Tag Timer = 0