| 1234567891011121314151617 |
- execute as @e[name="Koopa"] unless score @s koopa_dir matches 1..5 run scoreboard players set @s koopa_dir 1
- #execute as @e[name="Koopa"] at @s unless block ~ ~-1 ~ minecraft:air if score @s koopa_dir matches 1 run tp @s ~0.1 ~ ~
- execute as @e[name="Koopa"] at @s if score @s koopa_dir matches 1 run data modify entity @s Motion set value [0.3d,-0.0d,0.0d]
- execute as @e[name="Koopa"] at @s if score @s koopa_dir matches 3 run data modify entity @s Motion set value [-0.3d,-0.0d,0.0d]
- execute as @e[name="Koopa"] at @s unless block ~1 ~ ~ minecraft:air run scoreboard players set @s koopa_dir 3
- execute as @e[name="Koopa"] at @s unless block ~-1 ~ ~ minecraft:air run scoreboard players set @s koopa_dir 1
- #execute as @e[name="Koopa"] at @s positioned ~ ~-1 ~ run execute as @p[distance=..1] run data modify entity @s Motion set value [0f, 30f, 0f]
- # WORKS # execute as @e[name="Koopa"] at @s positioned ~ ~1 ~ run execute as @p[distance=..1] unless entity @s[nbt={OnGround:1b}] run effect give @s minecraft:jump_boost 1 12
- execute as @p if block ~ ~-1 ~ minecraft:slime_block run setblock ~ ~-1 ~ minecraft:air replace
- execute as @e[name="Koopa"] at @s positioned ~ ~1 ~ run execute as @p[distance=..1,nbt=!{FallDistance:0.0f}] run effect give @s minecraft:jump_boost 1 12
- execute as @e[name="Koopa"] at @s positioned ~ ~1 ~ run execute as @p[distance=..1,nbt=!{FallDistance:0.0f}] run setblock ~ ~-1 ~ minecraft:slime_block keep
- #execute @e[type=*chosen entity*,c=1*] ~ ~ ~ tp @e[r=1,c=1] ~0.1 ~ ~ -90 0
|