Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wandering Trader Trades #21

Open
10 tasks
belathus opened this issue Jul 7, 2023 · 1 comment
Open
10 tasks

Wandering Trader Trades #21

belathus opened this issue Jul 7, 2023 · 1 comment

Comments

@belathus
Copy link
Owner

belathus commented Jul 7, 2023

Note about how wandering traders work: they get 5 common trades and 1 special trade. Which of each is determined randomly; these are not weighted or anything like that. That's it.

Common Trades

  • Mutandi dust - since this can get you all of the flowers and saplings.
  • Seed bags - since this can get you all of the seeds.
  • Cage - with animal (assuming I can figure out how to get the right NBT tag on the cage to make it look right)
  • Duck sack - both empty and full
  • Ars Nouveau - starbuncle shards, drigmy shards, whirlisprig shards.
  • Blocks of rocksalt (several)
  • Curry powder
  • Ginger flowers

Special Trades

  • Mysterious Cube
  • Angelheart Vials
@belathus
Copy link
Owner Author

belathus commented Jul 14, 2023

#priority 20

import crafttweaker.api.villagers.VillagerTrades;


villagerTrades.removeAllWanderingTrades(1);

# rarity (1 or 2), price, forSale, maxTrades, XP
villagerTrades.addWanderingTrade(1, <item:minecraft:emerald>, <item:transfiguration:mutandi_dust> * 4, 4, 5);
villagerTrades.addWanderingTrade(1, <item:minecraft:emerald>, <item:tombstone:seed_bag> * 3, 4, 5);
villagerTrades.addWanderingTrade(1, <item:minecraft:emerald>, <item:supplementaries:cage>, 4, 5);

villagerTrades.addWanderingTrade(1, <item:minecraft:emerald>, <item:minecraft:sand> * 8, 4, 5);
villagerTrades.addWanderingTrade(1, <item:minecraft:emerald>, <item:minecraft:red_sand> * 8, 4, 5);
villagerTrades.addWanderingTrade(1, <item:minecraft:emerald>, <item:minecraft:glowstone>, 4, 5);
villagerTrades.addWanderingTrade(1, <item:minecraft:emerald>, <item:minecraft:cactus>, 4, 5);
villagerTrades.addWanderingTrade(1, <item:minecraft:emerald>, <item:minecraft:slime_ball>, 4, 5);
villagerTrades.addWanderingTrade(1, <item:minecraft:emerald>, <item:minecraft:nautilus_shell>, 4, 5);

(I didn't commit this because I don't have access to the item IDs right now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant