MarkusBordihn / BOs-Easy-NPC

Create easily NPC for your world or for your mod.
Other
20 stars 8 forks source link

[Feature Request] Levelling Up #263

Open Popcornboy333 opened 3 months ago

Popcornboy333 commented 3 months ago

💡 Check the Wiki and Feature Request Tracker before reporting a feature request. There you can find a lot of useful information and solutions for common problems.

Is your feature request related to a problem? Please describe. 🤔 I'd like to make it so you need to level up the npc to unlock new items like you can do with villagers, I tried the wiki but there was nothing that mentioned it, and in-game I tried playing with some of the values in advanced trading but none of them changed anything related to my issue

Describe the solution you'd like 💭 I'd like there to be a similar system to how villagers work, giving you basic items at their lowest level, needing you to buy things from them to level them up and unlock better equipment

Describe alternatives you've considered 🔄 I've tried making the items needed for the better equipment harder to find but I'd prefer just using emeralds

MarkusBordihn commented 3 months ago

Thank you for the feedback; I like the idea.

Currently, this feature is not implemented. Technically, NPCs cannot gain experience to ensure they don't collect XP meant for players.

However, the progression system for Villagers is more of a custom implementation. Here's how it works: trades are defined for each profession and level of the villager. Depending on the profession and level, you get specific trades.

Implementing this would require the following steps:

Technically, this is feasible and doable, but it will take some time to implement all the necessary steps.