[Modpack] 3D Armor [0.4.11] [minetest-3d_armor]

User avatar
stu
Member
 
Posts: 870
Joined: Sat Feb 02, 2013 02:51
Location: United Kingdom
GitHub: stujones11

Re: [Modpack] 3D Armor [0.4.11] [minetest-3d_armor]

by stu » Tue Mar 13, 2018 19:00

GreenDimond wrote:I'd like to set an armor texture to a vertical frames animation, but the `gsub` on L229 in the api.lua prevents me. Is there some way I can use minetest.override_item to set `self.textures[name].armor` to the texture I want?
This doesn't work:
Code: Select all
minetest.override_item("mymod:shield_mymod", {
   self.textures[name].armor = {
      {
            name = "mymod_shield_mymod_anim.png",
            animation = {
                type = "vertical_frames",
                aspect_w = 3,
                aspect_h = 3,
                length = 1,
            },
        },
    },)
})


This is not possible anyway since entities do not support animated textures. Otherwise, you should be able to use 'override' on armor items, just as you can any other.

bell07 wrote:ok, tenplus closed the issue without changes. Seems the inventory_plus requires sfinv for creative.
Now I created new issue on 3d_armor site with solution proposal: https://github.com/stujones11/minetest- ... issues/134


@bell07 Thanks, I have replied in the issue tracker.
Last edited by stu on Tue Mar 13, 2018 19:08, edited 4 times in total.
 

User avatar
stu
Member
 
Posts: 870
Joined: Sat Feb 02, 2013 02:51
Location: United Kingdom
GitHub: stujones11
 

Previous

Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 6 guests