-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
5 changes: 4 additions & 1 deletion
5
craftycannoneers/data/tutorial/functions/combatarea/returnharpoon.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,4 +1,7 @@ | ||
execute store result score $tempuuid playerUUID run data get entity @s Owner[0] | ||
execute as @a[team=Lobby,tag=InCombat] if score @s playerUUID = $tempuuid playerUUID run loot give @s loot weapons:harpoon | ||
execute as @a[team=Lobby,tag=InCombat] if score @s playerUUID = $tempuuid playerUUID run tag @s add owner | ||
execute as @a[tag=owner,limit=1] run clear @s trident | ||
execute as @a[tag=owner,limit=1] run loot give @s loot weapons:harpoon | ||
tag @a[tag=owner,limit=1] remove owner | ||
scoreboard players reset $tempuuid playerUUID | ||
kill @s |