124: Sliding block puzzle. [Minecraft Map Making]

Subscribers:
3,920
Published on ● Video Link: https://www.youtube.com/watch?v=SnB0vQ-91wA



Minecraft
Game:
Minecraft (2011)
Duration: 21:47
235 views
31


Ep124: Slide the block around until you get it into the right place. A standard puzzle for many different games. :)

Java Version: 1.19

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

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.

Commands used: YouTube formatting may make some of these wrong. :)

Create the objectives:
scoreboard objectives add x_motion dummy
scoreboard objectives add z_motion dummy

Create the sliding block:
IUN: summon falling_block -114 56 182 {Tags:["testSlide"],BlockState:{Name:"redstone_block"}, NoGravity:1, Time:-2147483648, DropItem:0b}

Win detector:
RUA: execute as @e[tag=testSlide] at @s if block ~ ~-1 ~ green_wool run tellraw @a {"text":"You Win!","color":"green"}
CCA: kill @e[tag=testSlide]

Out of Bounds detector:
RUA: execute as @e[tag=testSlide] at @s if block ~ ~-1 ~ gray_wool run tellraw @a {"text":"Out of area!","color":"red"}
CCA: kill @e[tag=testSlide]

Movement controller:
IUN: execute as @e[tag=testSlide] store result score @s x_motion run data get entity @s Motion[0] 100
CUA: execute as @e[tag=testSlide] store result score @s z_motion run data get entity @s Motion[2] 100
CUA: scoreboard players operation @e[tag=testSlide] x_motion += @e[tag=testSlide] z_motion
CUA: execute if score @e[tag=testSlide,limit=1] x_motion matches 0
CCA: execute as @e[tag=testSlide] run tag @s add killMe
CCA: execute at @e[tag=killMe] run summon falling_block ~ ~ ~ {Tags:["testSlide"],BlockState:{Name:"redstone_block"}, NoGravity:1, Time:-2147483648, DropItem:0b, Motion:[0.0,0.0,-0.5]}
CCA: execute as @e[tag=killMe] at @s run kill @s

North:
IUN: data merge block -111 56 196 {Command:'execute at @e[tag=killMe] run summon falling_block ~ ~ ~ {Tags:["testSlide"],BlockState:{Name:"redstone_block"}, NoGravity:1, Time:-2147483648, DropItem:0b, Motion:[0.0,0.0,-0.5]}'}
CUA: setblock -111 56 190 redstone_block replace

South:
IUN: data merge block -111 56 196 {Command:'execute at @e[tag=killMe] run summon falling_block ~ ~ ~ {Tags:["testSlide"],BlockState:{Name:"redstone_block"}, NoGravity:1, Time:-2147483648, DropItem:0b, Motion:[0.0,0.0,0.5]}'}
CUA: setblock -111 56 190 redstone_block replace

East:
IUN: data merge block -111 56 196 {Command:'execute at @e[tag=killMe] run summon falling_block ~ ~ ~ {Tags:["testSlide"],BlockState:{Name:"redstone_block"}, NoGravity:1, Time:-2147483648, DropItem:0b, Motion:[0.5,0.0,0.0]}'}
CUA: setblock -111 56 190 redstone_block replace

West:
IUN: data merge block -111 56 196 {Command:'execute at @e[tag=killMe] run summon falling_block ~ ~ ~ {Tags:["testSlide"],BlockState:{Name:"redstone_block"}, NoGravity:1, Time:-2147483648, DropItem:0b, Motion:[-0.5,0.0,0.0]}'}
CUA: setblock -111 56 190 redstone_block replace







Tags:
minecraft
adventure map
map making
commands
command blocks
1.18
custom commands
redstone
map ideas
map suggesstions
custom maps
1.19



Other Statistics

Minecraft Statistics For Infernal Device

At present, Infernal Device has 182,939 views spread across 869 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.