91: Pushable sliding block [Minecraft Map Making]
Ep91: A sliding block that the player can bump into to push around.
Originally for Udemy, but uploaded here.
Commands, builds and ideas for people making their own Minecraft maps.
Check out my collabs on Coppit's channel: https://www.youtube.com/c/CoppitJ
Join the server I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord: https://discord.gg/KNSmPWdnfG
Udemy notes. YouTube formatting may make some of these wrong. :)
Commands used:
Create the armor stand:
execute run summon minecraft:armor_stand ~ ~-2.0187 ~5 {Tags:["pushBlock"], NoGravity:1b, Invulnerable:1b, Invisible:1b,
Passengers:[{id:"minecraft:shulker", NoAI:1b, Silent:1b, NoGravity:1b, Invulnerable:1b, Tags:["pushBlock"],DeathLootTable:"empty",ActiveEffects:[{Id:14, Amplifier:1,Duration:1000000,ShowParticles:0b}]},
{id:"falling_block",NoGravity:1b,Time:-1000000,DropItem:0,Tags:["pushBlock"],BlockState:{Name:"minecraft:red_wool"}}]
}
Kill the armor stand:
kill @e[tag=pushBlock]
Detect if player is facing North/South,East,West and near the armor stand:
execute as @a[y_rotation=170..190] at @s if entity @e[tag=pushBlock,distance=0..1.75]
execute as @a[y_rotation=-10..10] at @s if entity @e[tag=pushBlock,distance=0..1.75]
execute as @a[y_rotation=-100..-80] at @s if entity @e[tag=pushBlock,distance=0..1.75]
execute as @a[y_rotation=80..100] at @s if entity @e[tag=pushBlock,distance=0..1.75]
Check for air block:
execute as @p at @s if block ~ ~ ~-2 air
Reset the objective:
scoreboard players reset PushPlayer PushNorthTimer
Power the moving blocks:
setblock -14 56 47 redstone_block replace
Increment the objective:
scoreboard players add PushPlayer PushNorthTimer 1
Move the armor stand:
execute as @e[tag=pushBlock] at @s run tp @s ~ ~ ~-0.1
Remove the power:
execute if score PushPlayer PushNorthTimer matches 10 run setblock ~ ~ ~3 white_wool replace
Remove the comparator for continous pushing:
setblock ~ ~ ~-8 comparator[powered=false]
Check if the armor stand is on the red wool:
execute if entity @e[x=-15.5,y=54.5,z=56.5,distance=0..0.2,tag=pushBlock]
Other Videos By Infernal Device
Other Statistics
Minecraft Statistics For Infernal Device
At present, Infernal Device has 184,447 views spread across 877 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.