Skip to content

Commit

Permalink
Clean Crab Golf Up
Browse files Browse the repository at this point in the history
So I can add events to the game
  • Loading branch information
DinnerBeef committed Oct 13, 2024
1 parent 7361218 commit c32a469
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 172 deletions.
11 changes: 5 additions & 6 deletions data/lt/function/world_games/minigolf/core/start_hole.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ gamemode adventure @s[gamemode=creative]
tag @s add golfInGame
title @s times 1s 2s 1s
# Summon the crab an tags it
$execute as @e[tag=hole$(hole)Start] at @s run summon tropicraft:fiddler_crab ~ ~ ~ {RollingDownTown:true,Silent:true,Health:500f,Tags:["golfCrab","hole$(hole)Crab"],ForcedAge:$(hole),attributes:[{id:"minecraft:generic.max_health",base:500},{id:"minecraft:generic.knockback_resistance",base:0.75},{id:"minecraft:generic.movement_speed",base:0}]}
$execute as @e[tag=hole$(hole)Start] at @s run function lt:world_games/minigolf/core/utils/spawn_crab
$execute as @e[tag=hole$(hole)Start] at @s run tag @e[type=tropicraft:fiddler_crab,distance=..2,limit=1] add hole$(hole)Crab
$team join anticrabcollision @e[tag=hole$(hole)Crab]
$data merge entity @e[tag=hole$(hole)Crab,limit=1] {ForcedAge:$(hole)}
$data modify entity @e[tag=hole$(hole)Crab,limit=1] Owner set from entity @p[tag=hole$(hole)Player] UUID
$scoreboard players set @e[tag=hole$(hole)Crab] golf.timer 120
$scoreboard players set @e[tag=hole$(hole)Crab] golf.hits 0

give @s minecraft:stone_hoe[custom_name='{"translate":"lt.golf.gentle_putter","color":"light_purple","italic":false}',lore=['{"translate":"lt.golf.gentle_putter.info","color":"white"}'],ltextras:undroppable={},hide_additional_tooltip={},minecraft:custom_data={lt:golf},unbreakable={},enchantments={levels:{knockback:1},show_in_tooltip:false}]
give @s minecraft:golden_hoe[custom_name='{"translate":"lt.golf.soft_putter","color":"light_purple","italic":false}',lore=['{"translate":"lt.golf.soft_putter.info","color":"white"}'],ltextras:undroppable={},hide_additional_tooltip={},minecraft:custom_data={lt:golf},unbreakable={},enchantments={levels:{knockback:2},show_in_tooltip:false}]
give @s minecraft:iron_hoe[custom_name='{"translate":"lt.golf.putter","color":"light_purple","italic":false}',lore=['{"translate":"lt.golf.putter.info","color":"white"}'],ltextras:undroppable={},hide_additional_tooltip={},minecraft:custom_data={lt:golf},unbreakable={},enchantments={levels:{knockback:3},show_in_tooltip:false}]
give @s minecraft:diamond_hoe[custom_name='{"translate":"lt.golf.powerful_driver","color":"light_purple","italic":false}',lore=['{"translate":"lt.golf.powerful_driver.info","color":"white"}'],ltextras:undroppable={},hide_additional_tooltip={},minecraft:custom_data={lt:golf},unbreakable={},enchantments={levels:{knockback:4},show_in_tooltip:false}]
give @s minecraft:netherite_hoe[custom_name='{"translate":"lt.golf.potent_driver","color":"light_purple","italic":false}',lore=['{"translate":"lt.golf.potent_driver.info","color":"white"}'],ltextras:undroppable={},hide_additional_tooltip={},minecraft:custom_data={lt:golf},unbreakable={},enchantments={levels:{knockback:5},show_in_tooltip:false}]

execute as @s run function lt:world_games/minigolf/core/utils/give_putters
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
give @s minecraft:stone_hoe[custom_name='{"translate":"lt.golf.gentle_putter","color":"light_purple","italic":false}',lore=['{"translate":"lt.golf.gentle_putter.info","color":"white"}'],ltextras:undroppable={},hide_additional_tooltip={},minecraft:custom_data={lt:golf},unbreakable={},enchantments={levels:{knockback:1},show_in_tooltip:false}]
give @s minecraft:golden_hoe[custom_name='{"translate":"lt.golf.soft_putter","color":"light_purple","italic":false}',lore=['{"translate":"lt.golf.soft_putter.info","color":"white"}'],ltextras:undroppable={},hide_additional_tooltip={},minecraft:custom_data={lt:golf},unbreakable={},enchantments={levels:{knockback:2},show_in_tooltip:false}]
give @s minecraft:iron_hoe[custom_name='{"translate":"lt.golf.putter","color":"light_purple","italic":false}',lore=['{"translate":"lt.golf.putter.info","color":"white"}'],ltextras:undroppable={},hide_additional_tooltip={},minecraft:custom_data={lt:golf},unbreakable={},enchantments={levels:{knockback:3},show_in_tooltip:false}]
give @s minecraft:diamond_hoe[custom_name='{"translate":"lt.golf.powerful_driver","color":"light_purple","italic":false}',lore=['{"translate":"lt.golf.powerful_driver.info","color":"white"}'],ltextras:undroppable={},hide_additional_tooltip={},minecraft:custom_data={lt:golf},unbreakable={},enchantments={levels:{knockback:4},show_in_tooltip:false}]
give @s minecraft:netherite_hoe[custom_name='{"translate":"lt.golf.potent_driver","color":"light_purple","italic":false}',lore=['{"translate":"lt.golf.potent_driver.info","color":"white"}'],ltextras:undroppable={},hide_additional_tooltip={},minecraft:custom_data={lt:golf},unbreakable={},enchantments={levels:{knockback:5},show_in_tooltip:false}]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
summon tropicraft:fiddler_crab ~ ~ ~ {RollingDownTown:true,Silent:true,Health:500f,Tags:["golfCrab"],attributes:[{id:"minecraft:generic.max_health",base:500},{id:"minecraft:generic.knockback_resistance",base:0.75},{id:"minecraft:generic.movement_speed",base:0}]}
1 change: 0 additions & 1 deletion data/lt/function/world_games/minigolf/data.mcfunction

This file was deleted.

This file was deleted.

34 changes: 0 additions & 34 deletions data/lt/function/world_games/minigolf/debug/reset_dummy.mcfunction

This file was deleted.

24 changes: 0 additions & 24 deletions data/lt/function/world_games/minigolf/debug/reset_plays.mcfunction

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions data/lt/function/world_games/minigolf/set_defualt.mcfunction

This file was deleted.

5 changes: 0 additions & 5 deletions data/lt/function/world_games/minigolf/test.mcfunction

This file was deleted.

0 comments on commit c32a469

Please sign in to comment.