How to make block emit redstone if it itself is powered

Started by onniboi64 on

Topic category: Help with Minecraft modding (Java Edition)

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?

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.

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.