Thutmose / ThutWearables

Wearables for Minecraft.
3 stars 0 forks source link

the development of the addon #6

Open metal-overlord opened 6 years ago

metal-overlord commented 6 years ago

Hi.I really liked your mod.It has great potential, both for those who just want to wear clothes and for those who want to make a MMORPG server with mods.

Tell me please, is there any library that will allow me to do things that will fall into these slots? The problem is that I can not understand that it is necessary that things from my fashion lay down in slots from your fashion.

Thutmose commented 6 years ago

What you need to do is write an IActiveWearable implementation, and example would be this:

https://github.com/Thutmose/ThutWearables/blob/1.12/src/main/java/thut/wearables/impl/ConfigWearable.java

then you attach it to your item like this: https://github.com/Thutmose/ThutWearables/blob/1.12/src/main/java/thut/wearables/ThutWearables.java#L404-L412

then your item should be wearable.

If you want effects while wearing the object, you use these methods in your IActiveWearable implementation: https://github.com/Thutmose/ThutWearables/blob/1.12/src/main/java/thut/wearables/IActiveWearable.java#L13-L23