MarkusBordihn / BOs-Easy-NPC

Create easily NPC for your world or for your mod.
Other
19 stars 7 forks source link

[Feature Request] Ability to Use and Configure NPCs in Survival Mode #295

Open Lothrazar opened 1 month ago

Lothrazar commented 1 month ago

💡 Check the Bug Tracker and Crash Tracker before reporting a new issue. There you can find a lot of useful information and solutions for common problems.

Note: Please make sure to fill out the following template to the best of your ability. This will help us to identify and fix the issue faster.

Minecraft and Mod version 🐞 easy_npc-forge-1.20.1-5.5.4

Describe the bug 🐞 impossible to use mod in survival mode

To Reproduce ⚙️ Steps to reproduce the behavior:

  1. install the mod
  2. Try craft an npc egg. its impossible, no recipes
  3. Survival player gets an egg and spawns an npc
  4. still impossible to interact with the NPC or configure it or use the mod

Expected behavior ✔️ I expect a config similar to 'mainConfigurationAllowInCreative' except it would say 'mainConfigurationAllowInSurvival mode'

Right now the mod is not useable by survival players

If i am in survival, and survival config == true, i should be able configure an npc, everything except maybe trading can be unlocked.

MarkusBordihn commented 1 month ago

Thank you for your report. To ensure compatibility with Fabric, Forge, and NeoForge, the Forge Config system was removed in version 5.x, as noted in the changelog. Consequently, the current version does not support "allow in creative" or "allow in survival" configuration options.

I will convert this to a feature request to include these settings in a way that works across all versions.

Regarding crafting, you can create your own recipes to provide players with the desired spawn eggs. NPCs spawned from these eggs are owned by the player, allowing them to edit the NPCs. However, please note that there are limited safeguards for the new NPC features at the moment, which could potentially allow users to create automated systems or duplicators.

Please share more details about your specific use case so I can ensure appropriate safeguards are implemented.