#Connectable custom blocks using script
1 messages · Page 1 of 1 (latest)
Up
what
Basically, I want to replace queued_ticking in custom blocks with scripts, hence events are deprecated.
cuz not everyone knows other addon stuff
Basically, I want to update the state of block every tick.
The problem is getting the block in the entire world.
no way non script addon ssytem do that
the best solution here would probably be to use the playerPlaceBlock event and just update the surrounding blocks when a block is placed
yea
That would do. But, the surrounding blocks can be change in many ways, e.g when destroyed by an entity, pickup by enderman, places a block via command or script. Which cannot able to detect.
Also, if I want a custom block that need to constantly update its state even after it has been placed, just like dirt turning into grass block eventually.
its almost impossible
I have an alternative ideas, but I'm afraid this will cause lots lags. So block events is still more practical to use.
I'll stick with it for now.
even block place is not better
I've found a way to do this but its not the most performant, having a database of each placed block and in randomized ticks over a period of time check them in the database like in-game minecraft blockticking events, then you can do those checks then incase its been updated.