Tried doing a timer annd I thought I did it very correctly but it's not working. Does anyone know ?

Started by Xiarno1 on

Topic category: Help with MCreator software

Last seen on 22:18, 4. Oct 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Tried doing a timer annd I thought I did it very correctly but it's not working. Does anyone know ?

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 ?

This

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
first of all, where do you…
Sat, 10/02/2021 - 16:55

first of all, where do you want to put the procedure on

because using NBTs for Items Blocks Entities is easier

Last seen on 22:18, 4. Oct 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Basically I'm trying to…
Sat, 10/02/2021 - 17:43

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.

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know the rest, where…
Sat, 10/02/2021 - 17:47

I don't know the rest, where do you put the procedure in, what trigger

Last seen on 22:18, 4. Oct 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Dropping an item is the…
Sat, 10/02/2021 - 17:49

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.

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
use NBTs and not Global…
Sat, 10/02/2021 - 17:59

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

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this will make it so when…
Sat, 10/02/2021 - 17:59

this will make it so when you right click your custom block, it wait some ticks to strike lightning

Last seen on 22:18, 4. Oct 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok but that's just right…
Sat, 10/02/2021 - 18:00

Ok but that's just right clicking a block. What about dropping items and doing a chat command ?

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
dropping item I am not sure…
Sat, 10/02/2021 - 18:02

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