Minerz wrote:This will be the last post here. Could ya show me how to manually add the inventory images to the node registrations? It would be a great help, really.
minetest.register_node("modname:itemname", {
description = "itemname", --needed if item is to be in the creative inventory
inventory_image = "modname_itemname.png", --2d image for inventory
wield_image = "modname_itemname.png",
draw_type = "normal",
tiles = {"modname_itemname_top.png", --top
"modname_itemname_top.png", --bottom
"modname_itemname_side.png", --right
"modname_itemname_side.png", --left
"modname_itemname.png", --back
"modname_itemname.png"}, --front
paramtype = "light",
paramtype2 = "facedir", --node is positionable with screwdriver tool
sunlight_propagates = true, --light may pass through it if bright enough
light_source =default.LIGHT_MAX - 1, --(1-15max)
is_ground_content = true, --will be destroyed by cave gen / generally false for crafted materials like bricks
walkable = false, --player cannot pass thru node
climbable = true, --player can climb node
buildable_to = true, --node will be replaced if another node is set on it
groups = {snappy = 1, cracky = 1, not_in_creative_inventory =1},
drop = "modname:itemname", --not necessary unless drop item is unique
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_gravel_footstep", gain=0.5},
dug = {name="default_gravel_footstep", gain=1.0},
}),
})Users browsing this forum: No registered users and 4 guests