Structures invincible until boss killed

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

Topic category: Advanced modding

Last seen on 15:08, 8. May 2022
Joined Aug 2021

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.