MarkusBordihn / BOs-Easy-NPC

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

[Bug] command block can't use preset import unless a player use it a 1st time #191

Closed pandadorable closed 4 months ago

pandadorable commented 6 months ago

I'm currently working on an adventure map on curseforge with a rpg gamepley. So I need multiple use of the command preset import by command block and the feature work well until I export my modpack.

When the modpack is import and the player play on it the command blocks can't use preset import unless the player use at least 1 time the command himself or modify the content of a command block with an easy npc command inside.

I also try to use execute as @p to force the command to be execute by the player but that didn't work to

MarkusBordihn commented 6 months ago

Thanks for the report. Was not really able to reproduce the issue on my side. :(

Please use the following steps, to provide more details about the issue:

The debug.log should show exactly why the import command fails. Depending on the loading order, it could be that the command block gets executed before the data packs are loaded.

This could be normally solved by using a function within the data pack instead of the raw command. Like: /function easy_npc:tests/import_npc

However the error should be clearly visible in the corresponding debug.log.