-
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
74fd116
commit f163892
Showing
4 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 @@ | ||
$data modify block ~ ~-1 ~ name set value "lt:golf/$(year)/hole_$(hole)" |
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,2 @@ | ||
execute store result storage golf hole int 1 run scoreboard players set @s golf.global 0 | ||
execute store result storage golf year int 1 run scoreboard players set @s golf.timer 2022 |
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,5 +1,5 @@ | ||
setblock ~ ~ ~ stone | ||
setblock ~7 ~ ~ stone | ||
setblock ~ ~ ~7 stone | ||
setblock ~-7 ~ ~ stone | ||
setblock ~ ~ ~-7 stone | ||
execute store result storage golf hole int 1 run scoreboard players add @s golf.global 1 | ||
execute as @s at @s run function lt:world_games/minigolf/data with storage minecraft:golf | ||
execute if score @s golf.global matches 18.. run say hi | ||
execute if score @s golf.global matches 18.. store result storage golf year int 1 run scoreboard players add @s golf.timer 1 | ||
execute if score @s golf.global matches 18.. run scoreboard players set @s golf.global 0 |