Can someone tell me how to do this? (Or if it's even possible)

Started by Brazolne on

Topic category: Help with modding (Java Edition)

Last seen on 22:49, 26. Nov 2022
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can someone tell me how to do this? (Or if it's even possible)

So there's this idea I've had for my mod in which I'm making an emerald armor, but I wanted to add some mechanics to it to make it unique. What I've thought on doing is making so each piece of emerald armor you wear makes villagers give you more stuff on trades, but I'm not even sure if that's possible with MCreator.

If it is, I'd like some help on how to do it
If it isn't, well, at least let me know if there's something similar that I can do.

Last seen on 19:15, 8. Feb 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you could make so when you…
Sat, 11/19/2022 - 18:23

you could make so when you have the armor on it gives you the hero of the village effect witch makes trades cheaper

Last seen on 17:34, 2. Oct 2023
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Like someone69 said, closest…
Sun, 11/20/2022 - 05:54

Like someone69 said, closest thing to this would have to be applying the "hero of the village" effect when wearing the armor.
 

I recommend making it a full set bonus though, otherwise, player would just make boots to get the effect. 

Last seen on 20:08, 17. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Villager trades are kind of…
Sun, 11/20/2022 - 06:12

Villager trades are kind of hardcoded into the villagers. I can think of a couple ways around this, with varying amounts of annoyance:

  • Just give the Hero of the Village Effect. (Though this has balancing issues, and will also cause villagers to throw gifts at you constantly, as it's intended to be a temporary boost.)
  • Mess around with NBT data commands. Using data commands, you can alter or merge NBT data- if the trades are stored as such, (and I'm pretty sure they are), you could possibly modify them using procedures that execute commands, though this would be by far the most technically challenging option.
  • ...And if you've really got a lot of time on your hands, you could just rewrite the entire trade system from scratch, and override the existing GUI. Ironically, making an alternate version of the trade GUI, or just adding additional trade GUI that requires emerald equipment would probably be less time consuming then the second option.

...Of course, since Emeralds are extremely easy to obtain, they might be better off with other ambient effects. Say, being weak but increasing EXP gains, decreasing energy expenditure at the expense of armor, offering ambient potion effects, etc.