256: Check if player is moving. [Minecraft Map Making]

Subscribers:
3,590
Published on ● Video Link: https://www.youtube.com/watch?v=3mLePuqRimA



Minecraft
Game:
Minecraft (2011)
Duration: 12:37
756 views
24


Ep256: Run a command if the player stops moving. The command can be run repeatedly or just one time.

Similar to Episode:240 - Player stops running: https://youtu.be/jsjSdYZiTdg

Requested by: poopypoop545

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 CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord: 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" with the appropriate angled bracket. Ascii code: 62

Commands used:

Setup:
IUN: scoreboard objectives add posX dummy
CUA: scoreboard objectives add posZ dummy
CUA: scoreboard objectives add posXLast dummy
CUA: scoreboard objectives add posZLast dummy
CUA: scoreboard objectives add timer dummy

Controller:
RUA: scoreboard players add #positionCheck timer 1
CUA: execute if score #positionCheck timer matches 10.. run scoreboard players reset #positionCheck timer
CUA: execute if score #positionCheck timer matches 1 as @a store result score @s posX run data get entity @s Pos[0] 1000
CUA: execute if score #positionCheck timer matches 1 as @a store result score @s posZ run data get entity @s Pos[2] 1000
CUA: execute if score #positionCheck timer matches 1 as @a[tag=!checked] if score @s posX = @s posXLast if score @s posZ = @s posZLast run say Hi
CUA: execute if score #positionCheck timer matches 1 as @a if score @s posX = @s posXLast if score @s posZ = @s posZLast run tag @s add checked
CUA: execute if score #positionCheck timer matches 1 as @a[tag=checked] unless score @s posX = @s posXLast unless score @s posZ = @s posZLast run tag @s remove checked
CUA: execute if score #positionCheck timer matches 1 as @a run scoreboard players operation @s posXLast = @s posX
CUA: execute if score #positionCheck timer matches 1 as @a run scoreboard players operation @s posZLast = @s posZ







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 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.