Need some help with using the gossip mechanic and a few other things

Started by xXEndermiteXx on

Topic category: Help with MCreator software

Joined Oct 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need some help with using the gossip mechanic and a few other things

So, I'm working on this mod that in theory would let you get more trust from villagers. For example, my mod has this special armor and I want it to boost your reputation with the villagers and even the golems so they will love you and give you discounts on items. For the armor I want it to work when you wear the full set and then for just two pieces so you can mix and match armor while still getting the desired effect. I sadly have no idea how to achieve this and i would love any help i can get.

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
My best guess is having theā€¦
Thu, 09/24/2020 - 20:49

My best guess is having the while armor on tick, or player tick, check to see if any villagers are near, and if they are, have it use the run command procedure block to run a data merge entity command to edit the gossip of the villagers. I dont really know exactly how villagers gossip mechanic works, but yeah. 
Something like this might work:
data merge entity @e[type=villager,limit=1,sort=nearest,distance=0..15] {Gossips:[{Type:"minor_positive",Value:20}]}

That's my best guess of how one would do this anyway.