70: Controllable sliding block [Minecraft Map Making]

Subscribers:
4,230
Published on ● Video Link: https://www.youtube.com/watch?v=sun9XNMVXHA



Minecraft
Game:
Minecraft (2011)
Duration: 21:55
73 views
5


Ep70: A block that we can slide around using buttons to control which direction it goes.

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 a sliding block:
summon armor_stand -77 54.5187 -32 {
Tags:["slidingBlock"],
NoGravity:1b,
Invulnerable:1b,
Invisible:1b,
Passengers:[
{
id:"minecraft:shulker",
NoAI:1b,
Silent:1b,
NoGravity:1b,
Invulnerable:1b,
ActiveEffects:[{Id:14,Amplifier:1,Duration:1000000,ShowParticles:0b}],
Tags:["slidingBlock"],
DeathLootTable:"empty"
},
{
id:"falling_block",
NoGravity:1,
Time:-2147483648,
DropItem:0,
BlockState:{Name:"minecraft:gray_wool"},
Tags:["slidingBlock"]
}
]
}

Destroy the sliding block:
kill @e[tag=slidingBlock]
Create an objective:
scoreboard objectives add MoveWestTimer dummy

Set the objective to 0:
scoreboard players reset MovePlayer MoveWestTimer
Power the moving command
setblock ~-2 ~ ~ redstone_block replace
Increment the timer
scoreboard players add MovePlayer MoveWestTimer 1
Move the block
execute as @e[tag=slidingBlock] at @s run tp @s ~-0.1 ~ ~
Unpower the timer
execute if score MovePlayer MoveWestTimer matches 10 run setblock ~3 ~ ~ white_wool replace



Use a stone button on repeating/needs redstone to move one block
execute as @e[tag=slidingBlock] at @s run tp @s ~-0.05 ~ ~







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



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.