"plantlike" textures not loading :/

User avatar
InfinityProject
Member
 
Posts: 1009
Joined: Sat Mar 17, 2012 00:52

"plantlike" textures not loading :/

by InfinityProject » Fri Jun 15, 2012 04:55

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?
 

User avatar
LolManKuba
Member
 
Posts: 939
Joined: Fri Feb 10, 2012 22:36

by LolManKuba » Fri Jun 15, 2012 09:43

wrong section
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Fri Jun 15, 2012 12:19

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.
 

User avatar
InfinityProject
Member
 
Posts: 1009
Joined: Sat Mar 17, 2012 00:52

by InfinityProject » Fri Jun 15, 2012 18:48

I was doing it all from scratch and forgot to use tile image. Thanks Calinou.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 9 guests

cron