Villager Trades

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Meggy_Mode

Active Member
Aug 30, 2024
204
8
18
I had a good idea for a skript where the player cant access blocks that haven't been traded for from villagers, so I looked at the docs and can't find anything really to allow editing of villager trades. I want to just stick with SkBee and Skript.
 
Do you mean not allowing access to blocks that haven't been (previously) obtained through villagers? You could probably do that with these events:

1. On trade select (might be outdated)
2. On player trade

My idea is that you can update an nbt tag with the name of the last selected trade, then add that to a whitelist if the player trades.