Started by
onniboi64
on
Topic category: Help with Minecraft modding (Java Edition)
I am trying to make a block which causes damage to an entity when it stands on the block. It only damages when it is powered by redstone, which changes an NBT tag. How do I make it add the NBT to surrounding blocks?
If you want it to power the same block around itself, then in update tick check if the block is powered, then if true check if the blocks around in up, down, north, south, west, and east are the same block, then set nbt of that block to whatever you need.
Also there is a "Redstone on" trigger for the block, which you can use instead, there is also an emit Redstone option in advanced properties which you could mess around which you could mess around with to not need the nbt system. however I do believe that tick rate will effect the Redstone.