-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add wolf variants to balloon animals (#1040)
* Add armadillo to Balloon Animal pool * Add wolf variants to Balloon Animals * Separate Bat Leather into separate loot table * Revert "Separate Bat Leather into separate loot table" This reverts commit e8f3740. Accidentally committed onto wrong branch... * Revert "Add armadillo to Balloon Animal pool" This reverts commit d41190f. * Fix wolves not showing up in villager trades * Swap rarity weights to correct values * Revert "Swap rarity weights to correct values" This reverts commit 84a95ca.
- Loading branch information
Showing
6 changed files
with
32 additions
and
4 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
24 changes: 24 additions & 0 deletions
24
...oon_animals/data/gm4_balloon_animals/function/wandering_trader/trade/init_wolf.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,24 @@ | ||
# @s = wolf to be attached to trader, type=#gm4_balloon_animals:balloon_animal | ||
# at wandering trader with no llamas, tag=gm4_balloon_animal_trader,tag=gm4_balloon_animal_trader_new | ||
# run from wandering_trader/trade/pick_animal | ||
|
||
tag @s add gm4_balloon_animal | ||
|
||
effect give @s levitation infinite 0 true | ||
effect give @s slow_falling infinite 0 true | ||
effect give @s resistance infinite 4 true | ||
|
||
data modify entity @s Age set value -2147483648 | ||
data modify entity @s leash.UUID set from storage gm4_balloon_animals:temp trader.uuid | ||
|
||
execute store result score $variant_id gm4_balloon_animals_data run random value 0..8 | ||
for index, wolf_variant in enumerate(ctx.meta['wolf_variants']): | ||
execute if score $variant_id gm4_balloon_animals_data matches index run data modify entity @s variant set value f"{wolf_variant}" | ||
|
||
scoreboard players add $id gm4_balloon_animals_id 1 | ||
scoreboard players operation @s gm4_balloon_animals_id = $id gm4_balloon_animals_id | ||
execute store result storage gm4_balloon_animals:temp gm4_balloon_animals.id int 1 run scoreboard players get $id gm4_balloon_animals_id | ||
|
||
execute summon trader_llama run function gm4_balloon_animals:wandering_trader/trade/spawn_trade_llama | ||
|
||
data modify entity @s CustomName set from storage gm4_balloon_animals:temp name_spliced |
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
2 changes: 1 addition & 1 deletion
2
...als/data/gm4_balloon_animals/function/wandering_trader/trade/spawn_trade_llama.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
2 changes: 1 addition & 1 deletion
2
gm4_balloon_animals/data/gm4_balloon_animals/loot_table/lead.json
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