-
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.
- Loading branch information
1 parent
4d22dfb
commit 5a5ef88
Showing
72 changed files
with
39 additions
and
171 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
data/lt/function/game/minigolf/core/played_all_holes.mcfunction
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
data/lt/function/game/minigolf/holes/hole_01/start.mcfunction
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
data/lt/function/game/minigolf/holes/hole_01/start_hole.mcfunction
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
data/lt/function/game/minigolf/holes/hole_01/timer.mcfunction
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
data/lt/function/game/minigolf/milestones/hole_23.mcfunction
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
data/lt/function/game/minigolf/milestones/reset.mcfunction
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Stop Them form playing if all ready playing a 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 entity @s[tag=!golfInGame] if entity @a[tag=hole$(hole_number)Player,current_world=true] run title @p[tag=!hole$(hole_number)Player] actionbar ["",{"selector":"@p[tag=hole$(hole_number)Player]"},{"translate":"lt.golf.in_use","color":"#ED8754"}] | ||
# Start hole if no one else is playing | ||
$execute if entity @s[tag=!golfInGame] unless entity @a[tag=hole$(hole_number)Player,current_world=true] run function lt:world_games/minigolf/holes/start_hole {"hole_number": $(hole_number)} |
15 changes: 15 additions & 0 deletions
15
data/lt/function/world_games/minigolf/holes/start_hole.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
$scoreboard players set hole$(hole_number)Hits golf.global 0 | ||
$scoreboard players set hole$(hole_number)EndCounter golf.global 0 | ||
$scoreboard players operation hole$(hole_number)Timer golf.global = maxTime golf.global | ||
# Give player tag showing what hole they are on | ||
$tag @s add hole$(hole_number)Player | ||
# Makes creavite players go to survival | ||
function lt:world_games/minigolf/core/hole_start | ||
# Summon the crab an tags it | ||
$execute at @e[tag=hole$(hole_number)Start] run function lt:world_games/minigolf/core/summon_crab | ||
$execute at @e[tag=hole$(hole_number)Start] run tag @e[tag=golfCrab,distance=..5] add hole$(hole_number)Crab | ||
# Gives the player the putters | ||
# Starts the round of golf | ||
$function lt:world_games/minigolf/holes/timer {"hole_number": $(hole_number)} | ||
scoreboard players add total_holes_played golf.global 1 | ||
$scoreboard players add $(hole_number)_total_times_played golf.global 1 |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
data/lt/function/world_games/minigolf/holes/timer.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Removes 1 Second | ||
$scoreboard players remove hole$(hole_number)Timer golf.global 1 | ||
# Shows Time and Hits to the Player | ||
$title @p[tag=hole01Player] actionbar [{"translate":"lt.golf.seconds_left","color":"dark_gray"},{"score":{"name":"hole$(hole_number)Timer","objective":"golf.global"},"color":"yellow"},{"text":" | "},{"translate":"lt.golf.hits","color":"dark_gray"},{"score":{"name":"hole$(hole_number)Hits","objective":"golf.global"},"color":"green"}] | ||
# Tests if carb is near the hole | ||
$execute as @e[tag=hole$(hole_number)Crab] at @s if entity @e[tag=hole$(hole_number)End,distance=..0.65] run scoreboard players add hole$(hole_number)EndCounter golf.global 1 | ||
$execute as @e[tag=hole$(hole_number)Crab] at @s if entity @e[tag=hole$(hole_number)End,distance=0.65..] unless entity @e[tag=hole$(hole_number)End,distance=..0.65] run scoreboard players set hole$(hole_number)EndCounter golf.global 0 | ||
# Runs this function until out of time or the carb in the near hole for 2 seconds | ||
$execute as @e[tag=hole$(hole_number)Crab] unless score hole$(hole_number)EndCounter golf.global matches 2 run schedule lt:world_games/minigolf/holes/timer {"hole_number": $(hole_number)} | ||
# Runs if player ran out of time | ||
$execute if score hole$(hole_number)Timer golf.global matches 0 run tag @a[tag=hole$(hole_number)Player] add hole$(hole_number)Timeup | ||
execute if score hole$(hole_number)Timer golf.global matches 0 run function lt:world_games/minigolf/holes/end_hole | ||
# Runs if crab is in the hole for 2 seconds | ||
$execute if score hole$(hole_number)EndCounter golf.global matches 2 run function lt:world_games/minigolf/holes/end_hole |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.