Page 1 of 1

"plantlike" textures not loading :/

PostPosted: Fri Jun 15, 2012 04:55
by InfinityProject
Ok so for a mod I'm working on, the textures for a plantlike item only work in the inventory. When I place the item textures don't load. Help?

PostPosted: Fri Jun 15, 2012 09:43
by LolManKuba
wrong section

PostPosted: Fri Jun 15, 2012 12:19
by Calinou
LolManKuba wrote:wrong section


Why would it be in the wrong section?

InfinityProject, see the sapling lua code:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_node("default:sapling", {
    description = "Sapling",
    drawtype = "plantlike",
    visual_scale = 1.0,
    tile_images = {"default_sapling.png"},
    inventory_image = "default_sapling.png",
    wield_image = "default_sapling.png",
    paramtype = "light",
    walkable = false,
    groups = {snappy=2,dig_immediate=3,flammable=2},
    sounds = default.node_sound_defaults(),
})


This, especially:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
    tile_images = {"default_sapling.png"},
    inventory_image = "default_sapling.png",
    wield_image = "default_sapling.png",


Usually you want all the 3 to be the same. "tile_images" is the texture when placed in the world, "inventory_image" in inventory, "weild_image" when held in hand.

PostPosted: Fri Jun 15, 2012 18:48
by InfinityProject
I was doing it all from scratch and forgot to use tile image. Thanks Calinou.