Skip to content

Commit

Permalink
Fix Commands
Browse files Browse the repository at this point in the history
I'm stupid sometimes - I forgot to save a file when I copied it over
  • Loading branch information
cootshk committed Apr 5, 2023
1 parent 87abb66 commit 0fccdc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 1.19.3/data/ridablepearls/functions/tick.mcfunction
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#ride all ridable pearls
execute as @e[type=minecraft:ender_pearl,tag=notriding] at @s if score @p RidingPearls matches 1 run ride @p mount @s
#dismount stasis chambers
execute if score AllowStasisChambers PearlConfig matches 1 PearlConfig as @e[type=minecraft:ender_pearl,tag=riding] at @s if block ~ ~ ~ minecraft:bubble_column run ride @p dismount
execute if score AllowStasisChambers PearlConfig matches 1 as @e[type=minecraft:ender_pearl,tag=riding] at @s if block ~ ~ ~ minecraft:bubble_column run ride @p dismount
#option to ban stasis chambers
execute if score AllowStasisChambers PearlConfig matches 0 PearlConfig as @e[type=minecraft:ender_pearl] at @s if block ~ ~-1 ~ minecraft:bubble_column run kill @s
execute if score AllowStasisChambers PearlConfig matches 0 as @e[type=minecraft:ender_pearl] at @s if block ~ ~-1 ~ minecraft:bubble_column run kill @s
#option to break pearls in water
execute if score BreakInWater PearlConfig matches 1 PearlConfig as @e[type=minecraft:ender_pearl,tag=riding] at @s if block ~ ~ ~ minecraft:water run kill @s
execute if score BreakInWater PearlConfig matches 1 as @e[type=minecraft:ender_pearl,tag=riding] at @s if block ~ ~ ~ minecraft:water run kill @s
#generate tags for a pearl to be ridden
execute as @e[type=minecraft:ender_pearl,tag=notriding] run data merge entity @s {Tags:["riding"]}
execute as @e[type=minecraft:ender_pearl] at @s unless data entity @s {Tags:["riding"]} unless data entity @s {Tags:["notriding"]} align xyz unless block ~ ~-1 ~ minecraft:bubble_column run data merge entity @s {Tags:["notriding"]}
Expand Down

0 comments on commit 0fccdc5

Please sign in to comment.