Simulating vacuum suffocation in minecraft
I am making a space station.
This is a problem in and of itself in every way. All aspects of the game will have to be tweaked in vanilla minecraft to make this anywhere near realistic. Today's question from the confuddled command block lover:
How can I simulate losing air from a vacuum? As in, I poke a hole in the ship, and problems start to occur until I close it, not from any obvious source.
- The damage source must be slow, not instantaneous.
- The damage source must start affecting the player pretty much as soon as a hole gets poked in the ship.
- The source must get at a player anywhere in the ship not sealed off, because duh.
- It needs to work from any direction, including up and down.
- The source must be invisible, so mobs could work, but not, say, lava.
- EVA needs to be pretty much impossible without armor, which I will cleverly rename "Space suit."
- We'll assume for convenience that any regular damage can be called suffocation.
- Nobody needs to leave the ship or enter a zone to take the damage.
Best Answer
To detect when a block is broken, simply set a fast clock to detect if a block is broken in the player's stats with the following command:
/testfor stat.MineBlock.(typeofblock) true
Then, set this up on a toggle switch that would begin a clock. A clock that would (every 4 seconds or so) trigger a resistance effect of the player within a certain range by using the following command:
/effect @a[r=range in blocks] 11 1 [effect level]
And, with a repeater, damage them with
/effect @a[r=range in blocks] 7 1 1
This is just sort of a an "equation" for this tweak, and you may have to do a bit more research on your own.
Pictures about "Simulating vacuum suffocation in minecraft"
How do you suffocate in the air in minecraft?
In Minecraft, you can use the /fill command to replace a specific type of block with another. In this case, we want to replace all water blocks with air blocks within a fill range....Supported Platforms.PlatformSupported (Version*)Windows 10 EditionYes (0.16.0)Education EditionYes8 more rowsCan you replace water with air in minecraft?
Type the command in the chat window and press the Enter key to run the command. This /fill command would replace all blocks in the fill region, including air. The replaced blocks will be dropped and can then be collected as if they were mined with a pickaxe or shovel.How do you fill a large area with air in minecraft?
The button that says \u201cImpulse\u201d changes the type of command block. There are three different types of command blocks: Impulse, which run commands on the rising edge of redstone current. This means that when they are powered, they will run their command once and stop, even if they continue to be powered.More answers regarding simulating vacuum suffocation in minecraft
Answer 2
1.9:Outside the spaceship, repeadetly summon invisible colliding entities,kill them when they reach "x" age and execute them to effect nearby players with wither/whatever effect.
1.8:Dunno.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Pixabay, Pixabay, cottonbro, Tima Miroshnichenko