sp614x / optifine

1.81k stars 418 forks source link

[Suggestion] Overwrite item models with JEM #4986

Open OfficialMajonese opened 4 years ago

OfficialMajonese commented 4 years ago

The Possibility to use a model in the custom entity model format for Items. Basically like builtin/entity, but in not completely bugged.

That would allow for more fluid and multiple rotations, and would also allow Items to be animated (like flies flying around rotten flesh)

ZenithRogue commented 4 years ago

You can already model items with block models tho...

Can you explain the difference this would present?

OfficialMajonese commented 4 years ago

With .jem models, you can add animations in 3D space that arent just transparent textures. Also, it allows for rotation other than in 22.5° steps, and multiple rotations onto one element. Personally, I find it much easier to use that format over the standard minecraft format.

ZenithRogue commented 3 years ago

Some items are already paired to entity models, IE mob heads, shields, tridents, beds, etc.

This issue suggests that we should be able to overwrite the item model (the block model would be untouched) with a JEM file.

This would allow items to receive custom animation when held, or in a frame.

Model overwrites should be stored within the optifine folder optifine/overwrites/items with the name of the JEM corresponding to the name of the item json being replaced.

(IE models/items/diamond_sword.json would be replaced by optifine/overwrites/items/diamond_sword.jem)