-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed derp when adding. Two hole blocking
- Loading branch information
1 parent
b743d71
commit f800b43
Showing
18 changed files
with
54 additions
and
54 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
data/lt/functions/game/minigolf/holes/hole_01/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Stop Them form playing if all ready playing a hole | ||
execute @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
execute if entity @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
# Sends a message if someone else is palying | ||
execute if @s[tag=!golfInGame] if entity @a[tag=hole01Player] run title @p[tag=!hole01Player] actionbar ["",{"selector":"@p[tag=hole01Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
execute if entity @s[tag=!golfInGame] if entity @a[tag=hole01Player] run title @p[tag=!hole01Player] actionbar ["",{"selector":"@p[tag=hole01Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
execute if @s[tag=!golfInGame] unless entity @a[tag=hole01Player] run function lt:game/minigolf/holes/hole_01/start_hole | ||
execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole01Player] run function lt:game/minigolf/holes/hole_01/start_hole |
6 changes: 3 additions & 3 deletions
6
data/lt/functions/game/minigolf/holes/hole_02/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Stop Them form playing if all ready playing a hole | ||
execute @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
execute if entity @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
# Sends a message if someone else is palying | ||
execute if @s[tag=!golfInGame] if entity @a[tag=hole02Player] run title @p[tag=!hole02Player] actionbar ["",{"selector":"@p[tag=hole02Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
execute if entity @s[tag=!golfInGame] if entity @a[tag=hole02Player] run title @p[tag=!hole02Player] actionbar ["",{"selector":"@p[tag=hole02Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
execute if @s[tag=!golfInGame] unless entity @a[tag=hole02Player] run function lt:game/minigolf/holes/hole_02/start_hole | ||
execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole02Player] run function lt:game/minigolf/holes/hole_02/start_hole |
6 changes: 3 additions & 3 deletions
6
data/lt/functions/game/minigolf/holes/hole_03/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Stop Them form playing if all ready playing a hole | ||
execute @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
execute if entity @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
# Sends a message if someone else is palying | ||
execute if @s[tag=!golfInGame] if entity @a[tag=hole03Player] run title @p[tag=!hole03Player] actionbar ["",{"selector":"@p[tag=hole03Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
execute if entity @s[tag=!golfInGame] if entity @a[tag=hole03Player] run title @p[tag=!hole03Player] actionbar ["",{"selector":"@p[tag=hole03Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
execute if @s[tag=!golfInGame] unless entity @a[tag=hole03Player] run function lt:game/minigolf/holes/hole_03/start_hole | ||
execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole03Player] run function lt:game/minigolf/holes/hole_03/start_hole |
6 changes: 3 additions & 3 deletions
6
data/lt/functions/game/minigolf/holes/hole_04/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Stop Them form playing if all ready playing a hole | ||
execute @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
execute if entity @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
# Sends a message if someone else is palying | ||
execute if @s[tag=!golfInGame] if entity @a[tag=hole04Player] run title @p[tag=!hole04Player] actionbar ["",{"selector":"@p[tag=hole04Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
execute if entity @s[tag=!golfInGame] if entity @a[tag=hole04Player] run title @p[tag=!hole04Player] actionbar ["",{"selector":"@p[tag=hole04Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
execute if @s[tag=!golfInGame] unless entity @a[tag=hole04Player] run function lt:game/minigolf/holes/hole_04/start_hole | ||
execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole04Player] run function lt:game/minigolf/holes/hole_04/start_hole |
6 changes: 3 additions & 3 deletions
6
data/lt/functions/game/minigolf/holes/hole_05/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Stop Them form playing if all ready playing a hole | ||
execute @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
execute if entity @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
# Sends a message if someone else is palying | ||
execute if @s[tag=!golfInGame] if entity @a[tag=hole05Player] run title @p[tag=!hole05Player] actionbar ["",{"selector":"@p[tag=hole05Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
execute if entity @s[tag=!golfInGame] if entity @a[tag=hole05Player] run title @p[tag=!hole05Player] actionbar ["",{"selector":"@p[tag=hole05Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
execute if @s[tag=!golfInGame] unless entity @a[tag=hole05Player] run function lt:game/minigolf/holes/hole_05/start_hole | ||
execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole05Player] run function lt:game/minigolf/holes/hole_05/start_hole |
6 changes: 3 additions & 3 deletions
6
data/lt/functions/game/minigolf/holes/hole_06/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Stop Them form playing if all ready playing a hole | ||
execute @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
execute if entity @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
# Sends a message if someone else is palying | ||
execute if @s[tag=!golfInGame] if entity @a[tag=hole06Player] run title @p[tag=!hole06Player] actionbar ["",{"selector":"@p[tag=hole06Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
execute if entity @s[tag=!golfInGame] if entity @a[tag=hole06Player] run title @p[tag=!hole06Player] actionbar ["",{"selector":"@p[tag=hole06Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
execute if @s[tag=!golfInGame] unless entity @a[tag=hole06Player] run function lt:game/minigolf/holes/hole_06/start_hole | ||
execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole06Player] run function lt:game/minigolf/holes/hole_06/start_hole |
6 changes: 3 additions & 3 deletions
6
data/lt/functions/game/minigolf/holes/hole_07/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Stop Them form playing if all ready playing a hole | ||
execute @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
execute if entity @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
# Sends a message if someone else is palying | ||
execute if @s[tag=!golfInGame] if entity @a[tag=hole07Player] run title @p[tag=!hole07Player] actionbar ["",{"selector":"@p[tag=hole07Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
execute if entity @s[tag=!golfInGame] if entity @a[tag=hole07Player] run title @p[tag=!hole07Player] actionbar ["",{"selector":"@p[tag=hole07Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
execute if @s[tag=!golfInGame] unless entity @a[tag=hole07Player] run function lt:game/minigolf/holes/hole_07/start_hole | ||
execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole07Player] run function lt:game/minigolf/holes/hole_07/start_hole |
6 changes: 3 additions & 3 deletions
6
data/lt/functions/game/minigolf/holes/hole_08/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Stop Them form playing if all ready playing a hole | ||
execute @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
execute if entity @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
# Sends a message if someone else is palying | ||
execute if @s[tag=!golfInGame] if entity @a[tag=hole08Player] run title @p[tag=!hole08Player] actionbar ["",{"selector":"@p[tag=hole08Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
execute if entity @s[tag=!golfInGame] if entity @a[tag=hole08Player] run title @p[tag=!hole08Player] actionbar ["",{"selector":"@p[tag=hole08Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
execute if @s[tag=!golfInGame] unless entity @a[tag=hole08Player] run function lt:game/minigolf/holes/hole_08/start_hole | ||
execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole08Player] run function lt:game/minigolf/holes/hole_08/start_hole |
6 changes: 3 additions & 3 deletions
6
data/lt/functions/game/minigolf/holes/hole_09/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Stop Them form playing if all ready playing a hole | ||
execute @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
execute if entity @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
# Sends a message if someone else is palying | ||
execute if @s[tag=!golfInGame] if entity @a[tag=hole09Player] run title @p[tag=!hole09Player] actionbar ["",{"selector":"@p[tag=hole09Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
execute if entity @s[tag=!golfInGame] if entity @a[tag=hole09Player] run title @p[tag=!hole09Player] actionbar ["",{"selector":"@p[tag=hole09Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
execute if @s[tag=!golfInGame] unless entity @a[tag=hole09Player] run function lt:game/minigolf/holes/hole_09/start_hole | ||
execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole09Player] run function lt:game/minigolf/holes/hole_09/start_hole |
6 changes: 3 additions & 3 deletions
6
data/lt/functions/game/minigolf/holes/hole_10/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Stop Them form playing if all ready playing a hole | ||
execute @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
execute if entity @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
# Sends a message if someone else is palying | ||
execute if @s[tag=!golfInGame] if entity @a[tag=hole10Player] run title @p[tag=!hole10Player] actionbar ["",{"selector":"@p[tag=hole10Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
execute if entity @s[tag=!golfInGame] if entity @a[tag=hole10Player] run title @p[tag=!hole10Player] actionbar ["",{"selector":"@p[tag=hole10Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
execute if @s[tag=!golfInGame] unless entity @a[tag=hole10Player] run function lt:game/minigolf/holes/hole_10/start_hole | ||
execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole10Player] run function lt:game/minigolf/holes/hole_10/start_hole |
6 changes: 3 additions & 3 deletions
6
data/lt/functions/game/minigolf/holes/hole_11/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Stop Them form playing if all ready playing a hole | ||
execute @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
execute if entity @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
# Sends a message if someone else is palying | ||
execute if @s[tag=!golfInGame] if entity @a[tag=hole11Player] run title @p[tag=!hole11Player] actionbar ["",{"selector":"@p[tag=hole11Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
execute if entity @s[tag=!golfInGame] if entity @a[tag=hole11Player] run title @p[tag=!hole11Player] actionbar ["",{"selector":"@p[tag=hole11Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
execute if @s[tag=!golfInGame] unless entity @a[tag=hole11Player] run function lt:game/minigolf/holes/hole_11/start_hole | ||
execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole11Player] run function lt:game/minigolf/holes/hole_11/start_hole |
6 changes: 3 additions & 3 deletions
6
data/lt/functions/game/minigolf/holes/hole_12/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Stop Them form playing if all ready playing a hole | ||
execute @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
execute if entity @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
# Sends a message if someone else is palying | ||
execute if @s[tag=!golfInGame] if entity @a[tag=hole12Player] run title @p[tag=!hole12Player] actionbar ["",{"selector":"@p[tag=hole12Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
execute if entity @s[tag=!golfInGame] if entity @a[tag=hole12Player] run title @p[tag=!hole12Player] actionbar ["",{"selector":"@p[tag=hole12Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
execute if @s[tag=!golfInGame] unless entity @a[tag=hole12Player] run function lt:game/minigolf/holes/hole_12/start_hole | ||
execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole12Player] run function lt:game/minigolf/holes/hole_12/start_hole |
6 changes: 3 additions & 3 deletions
6
data/lt/functions/game/minigolf/holes/hole_13/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Stop Them form playing if all ready playing a hole | ||
execute @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
execute if entity @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
# Sends a message if someone else is palying | ||
execute if @s[tag=!golfInGame] if entity @a[tag=hole13Player] run title @p[tag=!hole13Player] actionbar ["",{"selector":"@p[tag=hole13Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
execute if entity @s[tag=!golfInGame] if entity @a[tag=hole13Player] run title @p[tag=!hole13Player] actionbar ["",{"selector":"@p[tag=hole13Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
execute if @s[tag=!golfInGame] unless entity @a[tag=hole13Player] run function lt:game/minigolf/holes/hole_13/start_hole | ||
execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole13Player] run function lt:game/minigolf/holes/hole_13/start_hole |
6 changes: 3 additions & 3 deletions
6
data/lt/functions/game/minigolf/holes/hole_14/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Stop Them form playing if all ready playing a hole | ||
execute @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
execute if entity @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
# Sends a message if someone else is palying | ||
execute if @s[tag=!golfInGame] if entity @a[tag=hole14Player] run title @p[tag=!hole14Player] actionbar ["",{"selector":"@p[tag=hole14Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
execute if entity @s[tag=!golfInGame] if entity @a[tag=hole14Player] run title @p[tag=!hole14Player] actionbar ["",{"selector":"@p[tag=hole14Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
execute if @s[tag=!golfInGame] unless entity @a[tag=hole14Player] run function lt:game/minigolf/holes/hole_14/start_hole | ||
execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole14Player] run function lt:game/minigolf/holes/hole_14/start_hole |
6 changes: 3 additions & 3 deletions
6
data/lt/functions/game/minigolf/holes/hole_15/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Stop Them form playing if all ready playing a hole | ||
execute @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
execute if entity @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
# Sends a message if someone else is palying | ||
execute if @s[tag=!golfInGame] if entity @a[tag=hole15Player] run title @p[tag=!hole15Player] actionbar ["",{"selector":"@p[tag=hole15Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
execute if entity @s[tag=!golfInGame] if entity @a[tag=hole15Player] run title @p[tag=!hole15Player] actionbar ["",{"selector":"@p[tag=hole15Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
execute if @s[tag=!golfInGame] unless entity @a[tag=hole15Player] run function lt:game/minigolf/holes/hole_15/start_hole | ||
execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole15Player] run function lt:game/minigolf/holes/hole_15/start_hole |
6 changes: 3 additions & 3 deletions
6
data/lt/functions/game/minigolf/holes/hole_16/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Stop Them form playing if all ready playing a hole | ||
execute @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
execute if entity @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
# Sends a message if someone else is palying | ||
execute if @s[tag=!golfInGame] if entity @a[tag=hole16Player] run title @p[tag=!hole16Player] actionbar ["",{"selector":"@p[tag=hole16Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
execute if entity @s[tag=!golfInGame] if entity @a[tag=hole16Player] run title @p[tag=!hole16Player] actionbar ["",{"selector":"@p[tag=hole16Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
execute if @s[tag=!golfInGame] unless entity @a[tag=hole16Player] run function lt:game/minigolf/holes/hole_16/start_hole | ||
execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole16Player] run function lt:game/minigolf/holes/hole_16/start_hole |
6 changes: 3 additions & 3 deletions
6
data/lt/functions/game/minigolf/holes/hole_17/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Stop Them form playing if all ready playing a hole | ||
execute @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
execute if entity @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
# Sends a message if someone else is palying | ||
execute if @s[tag=!golfInGame] if entity @a[tag=hole17Player] run title @p[tag=!hole17Player] actionbar ["",{"selector":"@p[tag=hole17Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
execute if entity @s[tag=!golfInGame] if entity @a[tag=hole17Player] run title @p[tag=!hole17Player] actionbar ["",{"selector":"@p[tag=hole17Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
execute if @s[tag=!golfInGame] unless entity @a[tag=hole17Player] run function lt:game/minigolf/holes/hole_17/start_hole | ||
execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole17Player] run function lt:game/minigolf/holes/hole_17/start_hole |
6 changes: 3 additions & 3 deletions
6
data/lt/functions/game/minigolf/holes/hole_18/start.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Stop Them form playing if all ready playing a hole | ||
execute @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
execute if entity @s[tag=golfInGame] run function lt:game/minigolf/core/in_hole | ||
# Sends a message if someone else is palying | ||
execute if @s[tag=!golfInGame] if entity @a[tag=hole18Player] run title @p[tag=!hole18Player] actionbar ["",{"selector":"@p[tag=hole18Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
execute if entity @s[tag=!golfInGame] if entity @a[tag=hole18Player] run title @p[tag=!hole18Player] actionbar ["",{"selector":"@p[tag=hole18Player]"},{"text":" Is already on this hole. Please wait your turn.","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
execute if @s[tag=!golfInGame] unless entity @a[tag=hole18Player] run function lt:game/minigolf/holes/hole_18/start_hole | ||
execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole18Player] run function lt:game/minigolf/holes/hole_18/start_hole |