1
I am currently making a Minecraft Apocalyptic Adventure Map where the air is toxic and you must wear a gasmask, and I was just wondering how I would make it work.
I need to have a command that when you take off your gasmask, you start to take damage, and when you have it on, you don't. Also, there are some bunkers and places with breathable air, which you will be able to remove it freely.
I have played some space adventure maps where this happens, so I know it's possible, but I have no idea what command/s I would need to use.
Can somebody help me?
Also, I'm making custom shops in it, and I know how to make it take something from your inventory and give you the item, but I DON'T know how to make it NOT give it to yu if you don't have enough.
Help, please?
I need to have a command that when you take off your gasmask, you start to take damage, and when you have it on, you don't. Also, there are some bunkers and places with breathable air, which you will be able to remove it freely.
I have played some space adventure maps where this happens, so I know it's possible, but I have no idea what command/s I would need to use.
Can somebody help me?
Also, I'm making custom shops in it, and I know how to make it take something from your inventory and give you the item, but I DON'T know how to make it NOT give it to yu if you don't have enough.
Help, please?
Create an account or sign in to comment.
1
1
I did something like this with my Mars map (where you must where a space helmet otherwise you die) I can't remember how I quite did I'd have to go look and see, which I don't have access to my computer right now. Some how I detected if they had the helmet in their armor slot (and it was named "Space Helmet) (obv you'll want "Gas Mask" for yours) Is this only one spot or is the whole world "toxic"