diff --git a/data/lt/authority_behaviors/dropper_area_inside.json b/data/lt/authority_behaviors/dropper_area_inside.json new file mode 100644 index 00000000..1958c004 --- /dev/null +++ b/data/lt/authority_behaviors/dropper_area_inside.json @@ -0,0 +1,4 @@ +{ + "enter_commands": ["tag @s add in.dropper_failing"], + "exit_commands": ["tag @s remove in.dropper"] +} diff --git a/data/lt/functions/game/dropper/on_tick.mcfunction b/data/lt/functions/game/dropper/on_tick.mcfunction index 8c09f9db..09f9f1a9 100644 --- a/data/lt/functions/game/dropper/on_tick.mcfunction +++ b/data/lt/functions/game/dropper/on_tick.mcfunction @@ -1,5 +1,3 @@ execute as @e[tag=in.dropper_failing] at @s in tropicraft:tropics if entity @s[nbt={OnGround:1b}] unless block ~ ~-1 ~ create:refined_radiance_casing run function lt:game/dropper/fail execute as @e[tag=in.dropper_failing] at @s in tropicraft:tropics if block ~ ~-1 ~ create:refined_radiance_casing run function lt:game/dropper/win -execute as @e[tag=!in.dropper_failing,tag=in.dropper,gamemode=!spectator,tag=!main.operator] at @s in tropicraft:tropics if block ~ ~-1 ~ create:railway_casing run tp @s @e[tag=dropper.fail,limit=1] -execute as @e[tag=!in.dropper_failing,tag=in.dropper,gamemode=!spectator,tag=!main.operator] at @s in tropicraft:tropics if block ~ ~-1 ~ create:refined_radiance_casing run tp @s @e[tag=dropper.fail,limit=1] execute as @e[tag=dropper.fail,tag=!running,limit=1] at @s if block 2578 127 2801 minecraft:oak_button[powered=true] run function lt:game/dropper/timer/3 \ No newline at end of file diff --git a/data/lt/functions/game/dropper/timer/drop.mcfunction b/data/lt/functions/game/dropper/timer/drop.mcfunction index c8fbb763..77716367 100644 --- a/data/lt/functions/game/dropper/timer/drop.mcfunction +++ b/data/lt/functions/game/dropper/timer/drop.mcfunction @@ -1,6 +1,5 @@ execute as @e[tag=dropper.fail,limit=1] at @s run playsound minecraft:block.note_block.bit voice @a[tag=in.dropper] ~ ~ ~ 1 0.5 execute as @e[tag=dropper.fail] at @s run fill 2579 127 2800 2577 126 2802 air destroy -execute as @e[tag=dropper.fail,limit=1] at @s run tag @a[distance=..2.5] add in.dropper_failing title @a[tag=in.dropper] title {"text":""} execute as @e[tag=dropper.fail] at @s run kill @e[type=minecraft:item,nbt={Item:{id:"minecraft:oak_button"}},distance=..5] tag @e[tag=dropper.fail] remove running