stujones11 / minetest-3d_armor

Visible player armor & wielded items for minetest
Other
55 stars 97 forks source link

Add a little info about how to use the mod #69

Closed ensonic closed 7 years ago

ensonic commented 8 years ago

I just installed the mod and I can see the items in the inventory, but can't figure how to put them on. I've placed an armor stand and put items on it and that part works.

The README says "Recommends: inventory_plus or unified_inventory (use only one)", but I wonder it this is perhaps a hard requirement to have any of those.

stujones11 commented 8 years ago

If you are not using an inventory mod then the armor slots should be visible in you main inventory window just to the left of the crafting grid. It is recommended, however, that you do use one of inventory mods for better overall compatibility.

ensonic commented 8 years ago

Thanks, I can indeed see them in the normal inventory, but not next to the crafting grid: screenshot from 2016-08-08 23 07 30

What I can't figure is how to put them on. When I press F7 to see my player character, I can't see the armor.

stujones11 commented 8 years ago

I am not sure why the armor slots are not showing, perhaps a conflicting mod or something has changed in minetest game. I will look into this asap but for now I suggest you install one of the inventory mods and that should allow you to equip your armor in the meantime.

Edit: It looks like you might be using creative mode? iirc, armor does not show in the creative inventory without one of the inventory mods. I will update the documentation accordingly.

Note: An alternative to using an inventory mod: https://github.com/indriApollo/armor_stand

ensonic commented 8 years ago

Ohh yes, I had creative mode enabled. My kids liked the purely decorative aspect of having armor. I'll file a bug against minetest_game, since also in creative mode one can have damage.

stujones11 commented 8 years ago

This is not a minetest or minetest_game bug, it is simply a shortcoming of this mod since it was never intended to be used as part of a creative game. You can use it in creative mode but you will need to install one of the suggested inventory mods. My apologies for not making this clear in the documentation.

ensonic commented 7 years ago

The code in question seems to be https://github.com/stujones11/minetest-3d_armor/blob/master/3d_armor/armor.lua#L70-L108 Would it be possible to make this work with the normal inventory (from creative_mod)? See creative.formspec_add in https://github.com/minetest/minetest_game/blob/master/mods/creative/inventory.lua#L76

stujones11 commented 7 years ago

8b8a554ff7ec66d4c4dfb577f05734ae653a4135