Started by
MagyTheMage
on
Topic category: Help with MCreator software
The idea is simple,as a part of a mod im working with, you can join the Illagers and become evil,
however i want to make it so that Illager players cannot trade with villagers..does anyone have an idea on how i can pull this off?
ive tried spawning another GUI, Closing the GUI using the "close GUI" Process, but i cant figure anything out.
anyone got an idea of a way i could find some way to do this?
Edited by MagyTheMage on Fri, 06/05/2020 - 02:12
I think it isn't possible without coding, sorry
You could make a procedure that executes /data remove @s Offers.Recipes as any villager around the player, although that'll completely erase their trades for all players. Searching for a better way to do this myself.
Not even 10 minutes later I found the answer: After detecting that the player right-clicked a villager wait 1 tick server-side for the Trade GUI to open and immediately close it and if you want you could even play the entity.villager.no sound