PluginBugs / Issues-ItemsAdder

Repository used to keep track of issues of my plugin ItemsAdder
https://itemsadder.devs.beer
52 stars 21 forks source link

Entity model file not read according to configuration #1616

Closed yebanme closed 2 years ago

yebanme commented 2 years ago

Terms

Discord tag (optional)

yeban#6144

What happened?

Add a custom entity, but the entity name is inconsistent with the model file path, and the model file path pointed to by the entity in the file packaged with the "/iazip" command is wrong

Steps to reproduce the issue

  1. Add a new entity configuration, the entity name is inconsistent with the model file path
  2. Regenerate the package with the command "/iareload" "/iazip"
  3. The model path generated by the plugin is "entity/test/body", which should actually be "entity/npc_timid_slim/body"

Server version

This server is running Paper version git-Paper-283 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT) (Git: f8e8d6c)

ItemsAdder Version

ItemsAdder version 3.1.0c

ProtocolLib Version

ProtocolLib version 4.8.0

LoneLibs Version

LoneLibs version 1.0.18

LightAPI Version (optional)

No response

LibsDisguises Version (optional)

No response

FULL server log

No response

Error (optional)

No response

ItemsAdder config.yml

entities:
  test:
    display_name: "Ninja Skeleton"
    type: ZOMBIE
    model_folder: entity/ninja_skeleton

Problematic items yml configuration file (optional)

No response

Other files, you can drag and drop them here to upload. (optional)

No response

Screenshots/Videos (you can drag and drop files or paste links)

No response

LoneDev6 commented 2 years ago

I really need your model in order to help you identifying the issue. Seems your entity id might be different from the one in the .yml file. Make sure to use the same naming.

image

image

yebanme commented 2 years ago

The root of the problem is like you said, at the beginning I thought the entity id in the model was only used to identify the entity unique. Thanks for your answer, I will close this issue