Skip to content

Commit

Permalink
Fix build mode tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Gegy committed Nov 24, 2024
1 parent 9e5ce6c commit 6dfe1b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/lt/function/main/tick_runner.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function lt:world_games/parkour/on_second
function lt:world_games/dropper/on_tick

# Build Mode Tools
execute in tropicraft:tropics as @a[tag=building,tag=!given_tools,current_world=true] at @s if data entity @s ForgeData.PlayerPersisted.gamemodebuild{active:1b} run function lt:utility/buildmode/give_tools
execute in tropicraft:tropics as @a[tag=building,tag=!given_tools,current_world=true] at @s if data entity @s NeoForgeData.PlayerPersisted.gamemodebuild{active:1b} run function lt:utility/buildmode/give_tools

# Make interaction blocker invisible
execute in tropicraft:tropics run effect give @e[type=slime,tag=interact_blocker] invisibility infinite 1 true
Expand Down
4 changes: 2 additions & 2 deletions data/lt/function/utility/buildmode/checker.mcfunction
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
execute if entity @s[tag=building] if data entity @s ForgeData.PlayerPersisted.gamemodebuild{active:0b} run tellraw @s {"text":"lt.build.mode.inside.message","color":"green"}
execute if entity @s[tag=building] if data entity @s NeoForgeData.PlayerPersisted.gamemodebuild{active:0b} run tellraw @s {"text":"lt.build.mode.inside.message","color":"green"}
execute if entity @s[tag=!building] run tellraw @s {"translate":"lt.build.mode.outside.message","color":"green"}
execute as @s[tag=building] at @s if data entity @s ForgeData.PlayerPersisted.gamemodebuild{active:1b} run function lt:utility/buildmode/give_tools
execute as @s[tag=building] at @s if data entity @s NeoForgeData.PlayerPersisted.gamemodebuild{active:1b} run function lt:utility/buildmode/give_tools

0 comments on commit 6dfe1b7

Please sign in to comment.