Structures invincible until boss killed

Started by MGMac on Fri, 08/20/2021 - 03:53

Topic category: Advanced modding

Last seen on 14:51, 10. Oct 2021
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Structures invincible until boss killed
Fri, 08/20/2021 - 03:53

I want to make my structure unbreakable until I defeat a certain boss or destroy a beacon inside. What I have is that when the block is destroyed it checks a bossKilled variable and if it's 0 it replaces the block with itself. When the boss dies/block broken, it sets that variable to 1. Is there an easier or more lightweight way to do this? Maybe a way that applies to each structure itself, not just specific new blocks, so then I could use vanilla blocks in the structure.