-
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
1 parent
af6c71f
commit ffbc76a
Showing
22 changed files
with
52 additions
and
52 deletions.
There are no files selected for viewing
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
4 changes: 2 additions & 2 deletions
4
.../oran9eutan/functions/hats/dog_mechanism/convert_dog_to_hat_if_player_is_owner.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,8 +1,8 @@ | ||
# Converts dog to a hat if it is owned by the Player executing this function | ||
# executor: Dog beeing checked for conversion | ||
# @s: Dog beeing checked for conversion | ||
|
||
# Check if the Owner matches the stored UUID of the player. 0 if matches, 1 otherwise | ||
execute store result score @s hats.math run data modify storage hats uuid set from entity @s Owner | ||
|
||
# Convert dog to hat if the Player is the Owner | ||
execute if score @s hats.math matches 0 run function oran9eutan:hats/dog_mechanism/convert_dog_to_hat | ||
execute if score @s hats.math matches 0 run function oran9eutan:hats/dog_mechanism/convert_dog_to_hat |
4 changes: 2 additions & 2 deletions
4
datapack/data/oran9eutan/functions/hats/dog_mechanism/convert_owned_dogs_nearby.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,8 +1,8 @@ | ||
# Converts all nearby dogs owned by a Player into dog hats | ||
# executor: Player whos dogs are going to be converted | ||
# @s: Player whos dogs are going to be converted | ||
|
||
# Store UUID of the Player | ||
data modify storage hats uuid set from entity @s UUID | ||
|
||
# Try to convert all nearby dogs that have an Owner | ||
execute as @e[tag=!global.ignore,type=minecraft:wolf,distance=..2,predicate=oran9eutan:hats/entity/is_sitting] if data entity @s Owner run function oran9eutan:hats/dog_mechanism/convert_dog_to_hat_if_player_is_owner | ||
execute as @e[tag=!global.ignore,type=minecraft:wolf,distance=..2,predicate=oran9eutan:hats/entity/is_sitting] if data entity @s Owner run function oran9eutan:hats/dog_mechanism/convert_dog_to_hat_if_player_is_owner |
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
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
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
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
6 changes: 3 additions & 3 deletions
6
datapack/data/oran9eutan/functions/hats/dress/drowned.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,7 +1,7 @@ | ||
# executor: Drowned beeing dressed | ||
# descr: Try dressing a Drowned with a hat | ||
# Try dressing a Drowned with a hat | ||
# @s: Drowned beeing dressed | ||
|
||
execute if predicate oran9eutan:hats/chance_hostile_mob_has_hat run loot replace entity @s armor.head loot oran9eutan:hats/dress/drowned | ||
execute if predicate oran9eutan:hats/entity/wears_helmet run data modify entity @s ArmorDropChances[3] set value 1.0f | ||
|
||
tag @s add hats.mob.dont_dress | ||
tag @s add hats.mob.dont_dress |
6 changes: 3 additions & 3 deletions
6
datapack/data/oran9eutan/functions/hats/dress/husk.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,7 +1,7 @@ | ||
# executor: The Husk beeing dressed | ||
# descr: Try dressing a Husk with a hat | ||
# Try dressing a Husk with a hat | ||
# @s: The Husk beeing dressed | ||
|
||
execute if predicate oran9eutan:hats/chance_hostile_mob_has_hat run loot replace entity @s armor.head loot oran9eutan:hats/dress/husk | ||
execute if predicate oran9eutan:hats/entity/wears_helmet run data modify entity @s ArmorDropChances[3] set value 1.0f | ||
|
||
tag @s add hats.mob.dont_dress | ||
tag @s add hats.mob.dont_dress |
8 changes: 4 additions & 4 deletions
8
datapack/data/oran9eutan/functions/hats/dress/mob_as_ghost.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,8 +1,8 @@ | ||
# executor: Mob that is going to be dressed as a ghost | ||
# requires: Executor must have ArmorItems nbt and a hat slot | ||
# descr: Dresses a mob with a ghost hat and gives it invisibility | ||
# Dresses a mob with a ghost hat and gives it invisibility | ||
# @s: Mob that is going to be dressed as a ghost | ||
# requires: @s must have ArmorItems nbt and a hat slot | ||
|
||
loot replace entity @s armor.head loot oran9eutan:hats/hat_on_head/halloween/wiggly_ghast | ||
data modify entity @s ArmorDropChances[3] set value 1.0f | ||
effect give @s minecraft:invisibility 99999 1 true | ||
tag @s add hats.mob.is_ghost | ||
tag @s add hats.mob.is_ghost |
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
6 changes: 3 additions & 3 deletions
6
datapack/data/oran9eutan/functions/hats/dress/stray.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,7 +1,7 @@ | ||
# executor: The Stray beeing dressed | ||
# descr: Try dressing a Stray with a hat | ||
# Try dressing a Stray with a hat | ||
# @s: The Stray beeing dressed | ||
|
||
execute if predicate oran9eutan:hats/chance_hostile_mob_has_hat run loot replace entity @s armor.head loot oran9eutan:hats/dress/stray | ||
execute if predicate oran9eutan:hats/entity/wears_helmet run data modify entity @s ArmorDropChances[3] set value 1.0f | ||
|
||
tag @s add hats.mob.dont_dress | ||
tag @s add hats.mob.dont_dress |
4 changes: 2 additions & 2 deletions
4
datapack/data/oran9eutan/functions/hats/dress/villager/add_fav_cat_trade.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
4 changes: 2 additions & 2 deletions
4
datapack/data/oran9eutan/functions/hats/dress/villager/add_profession_trade.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
4 changes: 2 additions & 2 deletions
4
datapack/data/oran9eutan/functions/hats/dress/vindicator.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,5 +1,5 @@ | ||
# executor: Vindicator being dressed | ||
# @s: Vindicator being dressed | ||
|
||
execute if predicate oran9eutan:hats/is_in_mansion if predicate oran9eutan:hats/is_dark_night if predicate oran9eutan:hats/chance_mob_is_ghost run function oran9eutan:hats/dress/mob_as_ghost | ||
|
||
tag @s add hats.mob.dont_dress | ||
tag @s add hats.mob.dont_dress |
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
4 changes: 2 additions & 2 deletions
4
datapack/data/oran9eutan/functions/hats/dress/wandering_trader/add_fav_cat_trade.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
4 changes: 2 additions & 2 deletions
4
datapack/data/oran9eutan/functions/hats/dress/wandering_trader/add_villager_trade.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
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
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
4 changes: 2 additions & 2 deletions
4
datapack/data/oran9eutan/functions/hats/proxies/equip_player_with_correct_hat.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,5 +1,5 @@ | ||
# executor: World | ||
# descr: This function is scheduled as a proxy, so that another function call can be scheduled with a desired context | ||
# This function is scheduled as a proxy, so that another function call can be scheduled with a desired context | ||
# @s: World | ||
|
||
# Execute proxied function as Players with helmet hats on their head | ||
execute as @a[tag=!global.ignore] if predicate oran9eutan:hats/entity/wears_inventory_hat run function oran9eutan:hats/hat_mechanism/equip_player_with_correct_hat |
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