tick.mcfunction 1.5 KB

1234567891011121314151617
  1. execute as @e[name="Koopa"] unless score @s koopa_dir matches 1..5 run scoreboard players set @s koopa_dir 1
  2. #execute as @e[name="Koopa"] at @s unless block ~ ~-1 ~ minecraft:air if score @s koopa_dir matches 1 run tp @s ~0.1 ~ ~
  3. 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]
  4. 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]
  5. execute as @e[name="Koopa"] at @s unless block ~1 ~ ~ minecraft:air run scoreboard players set @s koopa_dir 3
  6. execute as @e[name="Koopa"] at @s unless block ~-1 ~ ~ minecraft:air run scoreboard players set @s koopa_dir 1
  7. #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]
  8. # 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
  9. execute as @p if block ~ ~-1 ~ minecraft:slime_block run setblock ~ ~-1 ~ minecraft:air replace
  10. 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
  11. 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
  12. #execute @e[type=*chosen entity*,c=1*] ~ ~ ~ tp @e[r=1,c=1] ~0.1 ~ ~ -90 0