Help making "cable" blocks detect battery block through other cable blocks

Started by bdzbasicbricks on

Topic category: Help with modding (Java Edition)

Last seen on 20:18, 6. Sep 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help making "cable" blocks detect battery block through other cable blocks

I have a mod in which you can make copper armor and "charge" it in various ways, to get different effects. Anyways, i need to make a "cable" block (it is just a full block, no fancy models or anything) that can use a procedure to detect connected "battery" blocks, similar to how leaves can detect logs, even through other leaves. I'm not sure how i would do it.