How to make block emit redstone if it itself is powered

Started by onniboi64 on

Topic category: Help with modding (Java Edition)

Last seen on 19:02, 7. Sep 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make block emit redstone if it itself is powered

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?

Last seen on 08:25, 18. Sep 2024
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you want it to power the…
Sun, 01/28/2024 - 02:25

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.

Last seen on 08:25, 18. Sep 2024
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also there is a "Redstone on…
Sun, 01/28/2024 - 02:32

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.