443: Spacesuit and space. [Minecraft Map Making]
Membership:
Ep443: Recreating the spacesuit datapack from the datapack tutorials, but only using command blocks.
00:00 Intro
00:30 Setup
02:50 Give spacesuit
08:05 Tag player in spacesuit
14:50 Process player in suit
23:25 Tag player on charger
26:10 Process player on charger
33:05 Tag player in space
34:15 Create some space for testing
35:20 Process player in space
Version: 1.21.1
Original Datapack version for 1.21.1: • 035: Spacesuit and space. [Minecraft ...
Minecraft Head Database: https://minecraft-heads.com/custom-heads/head/103044-astronaut-helmet
Commands, builds, hacks and ideas for people making their own Minecraft maps.
Check out my collabs on Coppit's channel:
The Discord server I am usually on: https://discord.gg/amU84KykEu
The following commands are prefixed with three letters which represent the settings of the command block. E.g IUN: = Impulse Unconditional Needs_Redstone. These prefixes need to be removed if copying the commands.
Since angled brackets are not allowed in YouTube descriptions you will have to replace "greater than" and "less than" with the appropriate angled bracket.
Commands used:
Setup:
IUN: scoreboard objectives add ID_oxygen dummy
CUA: scoreboard objectives add timer dummy
CUA: scoreboard players set @a ID_oxygen 100
CUA: scoreboard players set #ID_player_max_oxygen ID_oxygen 6000
CUA: scoreboard players set #ID_player_max_oxygen_modified ID_oxygen 5979
CUA: scoreboard players set #ID_charger_player_rate ID_oxygen 300
Give suit:
IUN: give @p minecraft:player_head[minecraft:custom_name='"Spacesuit Helmet"', custom_data={spacesuit:true}, profile={id:[I;-1581426069,-1042201524,-1127184182,-933696728],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzZmZGZiOTQxMTc4OTY2NDg0ZDQ2ODgwN2U1NzRmODFmZjkwZWU0OWE5MzhlMDYwYzEwMTEyMDE5OTVjY2U5ZCJ9fX0="}]}] 1
CUA: give @p iron_chestplate[item_name='"Spacesuit Body"',custom_data={spacesuit:true}]
Tag player in suit:
RUA: tag @e[tag=in_suit] remove in_suit
CUA: execute as @a[tag=!in_suit] if predicate {"condition": "minecraft:entity_properties","entity": "this","predicate": {"equipment": {"head": {"predicates": {"minecraft:custom_data": {"spacesuit":true}}},"chest": {"predicates": {"minecraft:custom_data": {"spacesuit":true}}},"legs": {"predicates": {"minecraft:custom_data": {"spacesuit":true}}},"feet": {"predicates": {"minecraft:custom_data": {"spacesuit":true}}}}}}
run tag @s add in_suit
Process player in suit:
RUA: execute as @a[tag=in_suit, scores={ID_oxygen=1..}] run scoreboard players remove @s ID_oxygen 1
CUA: execute as @a[tag=in_suit, scores={ID_oxygen=0}] if predicate {"condition": "entity_properties","entity": "this","predicate": {"periodic_tick": 50}} run damage @s 2 minecraft:generic
CUA: execute as @a[tag=in_suit, scores={ID_oxygen=0}] run title @s actionbar [{"text":"Oxygen ", "color":"dark_aqua"},{"text":"҉҉҉҉҉҉҉҉҉҉", "color":"red"}]
CUA: execute as @a[tag=in_suit, scores={ID_oxygen=1..599}] run title @s actionbar [{"text":"Oxygen ", "color":"dark_aqua"}, {"text":"۞", "color":"dark_aqua"},{"text":"҉҉҉҉҉҉҉҉҉", "color":"red"}]
Tag player on charger:
RUA: tag @a[tag=on_charger] remove on_charger
CUA: execute as @a[tag=!on_charger] if predicate {"condition": "minecraft:entity_properties","entity": "this","predicate": {"stepping_on": {"block": {"blocks": "minecraft:lodestone"}}}} run tag @s add on_charger
Process player on charger:
RUA: execute as @a[tag=on_charger] if predicate {"condition": "entity_properties","entity": "this","predicate": {"periodic_tick": 20}} if score @s ID_oxygen "less than" #ID_player_max_oxygen_modified ID_oxygen run playsound entity.breeze.inhale block @a ~ ~ ~ 1 1 0
CUA: execute as @a[tag=on_charger] if predicate {"condition": "entity_properties","entity": "this","predicate": {"periodic_tick": 20}} run scoreboard players operation @s ID_oxygen += #ID_charger_player_rate ID_oxygen
CUA: execute as @a[tag=on_charger] if score @s ID_oxygen "greater than" #ID_player_max_oxygen ID_oxygen run scoreboard players operation @s ID_oxygen = #ID_player_max_oxygen ID_oxygen
Tag player in space:
RUA: tag @a[tag=in_space] remove in_space
CUA: execute as @a[tag=!in_space] at @s if block ~ ~ ~ void_air run tag @s add in_space
Process player in space:
RUA: execute as @a[tag=!in_suit, tag=in_space] at @s if predicate {"condition": "entity_properties","entity": "this","predicate": {"periodic_tick": 50}} run damage @s 2 minecraft:generic
CUA: execute as @a[tag=!in_space] run attribute @s generic.gravity modifier remove 1
CUA: execute as @a[tag=!in_space] run attribute @s minecraft:generic.safe_fall_distance modifier remove 1
CUA: execute as @a[tag=in_space] run attribute @s generic.gravity modifier add 1 -0.06 add_value
CUA: execute as @a[tag=in_space] run attribute @s generic.safe_fall_distance modifier add 1 1000 add_value
Other Videos By Infernal Device
Other Statistics
Minecraft Statistics For Infernal Device
At present, Infernal Device has 181,722 views spread across 860 videos for Minecraft, accounting for over 10 days of watchable video on his channel. This is 94.82% of the total watchable video for Minecraft on Infernal Device's YouTube channel.