#timer and become another block (like water to ice) script

1 messages · Page 1 of 1 (latest)

merry girder
#

I need to know how to make it for my custom ice

brave zinc
#
import { system } from "@minecraft/server";

system.runTimeout(() => {
  // What will happen then
}, 100); // Time using ticks (20 ticks = 1 second)
oak kelpBOT
#
No Errors

No errors in [code](#1193804182264746156 message)

merry girder
#

Thanks @brave zinc

merry girder
#

And also how I detect it the custom block touches another custom block with timer

brave zinc
#

Wdym?

#

You mean when you put the block?

merry girder
#

I mean, when water touches ice and it slowly becomes ice too

brave zinc
#

You can get the PlayerPlaceBlock event and set a timer if the block is touching the block you want to detect

#

And when the timer is done, check again if it is still touching that block

spiral python
merry girder
#

timer and become another block (like water to ice) script

#

Tell me which one of your ideas is the best for my addon?

slow vapor
cloud geyser
#

its just how how many ticks it is, not how many times its going to execute

slow vapor
# cloud geyser what

will it execute only 1 time? or he wants it to execute everytime smth happens?

slow vapor
cloud geyser
slow vapor
cloud geyser
#

okay buddy.

slow vapor
cloud geyser
#

you dont need to screenshot anything.

slow vapor
#

instead typing it again i can send screenshot

cloud geyser
#

you dont need to type it again either

brave zinc
slow vapor
#

I was talking about a event not one time script

brave zinc
#

Just need to check if its the correct block before setting the timer

slow vapor
#

yeah but it can run multiple times

brave zinc
#

I don't think multiple timers can cause lag

#

Maybe intervals can

slow vapor