Ideally, this won't be near a chunk boundary, but mine was and it still worked fine. Put a redstone block between the two, and you have your fill clock. In the bottom, enter the following command: fill ~ ~1 ~ ~3 ~1 ~ airĪnd in the top one, enter this command: fill ~ ~-1 ~ ~3 ~-1 ~ redstone_block You'll need two command blocks in a column with an air block separating them. The first step is to set up a scoreboard objective to track TNT that's about to explode: /scoreboard objectives add TNTGoBoom dummy It's also possible to have the effect, but cause 0 damage to players or other entities, and I'll add the commands for that at the end. For this to work, you're still going to want to disable mob griefing, as I'm using ghast fireballs to create the actual explosion. This precludes the strategy I used in the linked answer a 20hz fill clock is pretty much a necessity, whereas I could use a slower, simpler clock in that other answer. The biggest difference here is that everything must happen on the same tick, and it must happen every tick. So this is complicated, but not much worse than preventing a player from crafting a diamond sword.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |