Started by
Picture
on
Topic category: Help with Minecraft modding (Java Edition)
I'm having trouble with a custom block I've made, the basic function I'm trying to get is:
Blockstates: On, Off
Block is off by default, Interact with the block > block changes to On > adjacent Off blocks turn on
everything works so far up until the last step, I'm wanting the adjacent blocks to the clicked block also change to On in a chain reaction to all connected blocks, but I can't figure out that last bit for the life of me, so any help would be appreciated :(
in the custom block's on active tick update trigger:
If blockstate property of this block is on:
set the block property (your block state name) of the block z+1 y x to "on"
set the block property (your block state name) of the block z-1 y x to "on"
and so on
You can find these in the action and data section of the block procedures tab, or search property