Skip to content

Commit

Permalink
Make dropper better
Browse files Browse the repository at this point in the history
  • Loading branch information
DinnerBeef committed Nov 2, 2023
1 parent e66a2df commit d772bdd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions data/lt/authority_behaviors/dropper_area_inside.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"enter_commands": ["tag @s add in.dropper_failing"],
"exit_commands": ["tag @s remove in.dropper"]
}
2 changes: 0 additions & 2 deletions data/lt/functions/game/dropper/on_tick.mcfunction
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion data/lt/functions/game/dropper/timer/drop.mcfunction
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d772bdd

Please sign in to comment.