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

Started by xXEndermiteXx on Thu, 09/24/2020 - 20:06

Topic category: Help with MCreator software

Last seen on 22:38, 24. Sep 2020
Joined Oct 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Need some help with using the gossip mechanic and a few other things
Thu, 09/24/2020 - 20:06

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.

Last seen on 15:08, 30. Oct 2020
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.