1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-24 00:18:53 -05:00

Rename textures of default mod

This commit is contained in:
Perttu Ahola 2011-12-03 21:10:02 +02:00
parent fc6c00cbe1
commit 9fa567a6ce
91 changed files with 242 additions and 266 deletions

View File

@ -47,7 +47,7 @@
-- Textures
-- --------
-- Mods should generally prefix their textures with modname_, eg. given
-- the mod name "foomod", a texture could be called "foomod_superfurnace.png"
-- the mod name "foomod", a texture could be called "default_foomod_superfurnace.png"
--
-- This is not crucial and a conflicting name will not corrupt maps.
--
@ -220,7 +220,7 @@
--
-- Tool definition:
-- {
-- image = "tool_steelaxe.png",
-- image = "default_tool_steelaxe.png",
-- full_punch_interval = 1.0,
-- basetime = 1.0,
-- dt_weight = 0.5,
@ -239,8 +239,8 @@
-- name = "modname:somenode",
-- drawtype = "normal",
-- visual_scale = 1.0,
-- tile_images = {"unknown_block.png"},
-- inventory_image = "unknown_block.png",
-- tile_images = {"default_unknown_block.png"},
-- inventory_image = "default_unknown_block.png",
-- special_materials = {
-- {image="", backface_culling=true},
-- {image="", backface_culling=true},
@ -284,7 +284,7 @@
--
-- Craftitem definition options:
-- minetest.register_craftitem("modname_name", {
-- image = "image.png",
-- image = "default_image.png",
-- stack_max = <maximum number of items in stack>,
-- cookresult_itemstring = itemstring (result of cooking),
-- furnace_cooktime = <cooking time>,
@ -346,7 +346,7 @@ minetest.register_tool(":", {
})
minetest.register_tool("default:pick_wood", {
image = "tool_woodpick.png",
image = "default_tool_woodpick.png",
basetime = 2.0,
dt_weight = 0,
dt_crackiness = -0.5,
@ -359,7 +359,7 @@ minetest.register_tool("default:pick_wood", {
dd_cuttability = 0,
})
minetest.register_tool("default:pick_stone", {
image = "tool_stonepick.png",
image = "default_tool_stonepick.png",
basetime = 1.5,
dt_weight = 0,
dt_crackiness = -0.5,
@ -372,7 +372,7 @@ minetest.register_tool("default:pick_stone", {
dd_cuttability = 0,
})
minetest.register_tool("default:pick_steel", {
image = "tool_steelpick.png",
image = "default_tool_steelpick.png",
basetime = 1.0,
dt_weight = 0,
dt_crackiness = -0.5,
@ -385,7 +385,7 @@ minetest.register_tool("default:pick_steel", {
dd_cuttability = 0,
})
minetest.register_tool("default:pick_mese", {
image = "tool_mesepick.png",
image = "default_tool_mesepick.png",
basetime = 0,
dt_weight = 0,
dt_crackiness = 0,
@ -398,7 +398,7 @@ minetest.register_tool("default:pick_mese", {
dd_cuttability = 0,
})
minetest.register_tool("default:shovel_wood", {
image = "tool_woodshovel.png",
image = "default_tool_woodshovel.png",
basetime = 2.0,
dt_weight = 0.5,
dt_crackiness = 2,
@ -411,7 +411,7 @@ minetest.register_tool("default:shovel_wood", {
dd_cuttability = 0,
})
minetest.register_tool("default:shovel_stone", {
image = "tool_stoneshovel.png",
image = "default_tool_stoneshovel.png",
basetime = 1.5,
dt_weight = 0.5,
dt_crackiness = 2,
@ -424,7 +424,7 @@ minetest.register_tool("default:shovel_stone", {
dd_cuttability = 0,
})
minetest.register_tool("default:shovel_steel", {
image = "tool_steelshovel.png",
image = "default_tool_steelshovel.png",
basetime = 1.0,
dt_weight = 0.5,
dt_crackiness = 2,
@ -437,7 +437,7 @@ minetest.register_tool("default:shovel_steel", {
dd_cuttability = 0,
})
minetest.register_tool("default:axe_wood", {
image = "tool_woodaxe.png",
image = "default_tool_woodaxe.png",
basetime = 2.0,
dt_weight = 0.5,
dt_crackiness = -0.2,
@ -450,7 +450,7 @@ minetest.register_tool("default:axe_wood", {
dd_cuttability = 0,
})
minetest.register_tool("default:axe_stone", {
image = "tool_stoneaxe.png",
image = "default_tool_stoneaxe.png",
basetime = 1.5,
dt_weight = 0.5,
dt_crackiness = -0.2,
@ -463,7 +463,7 @@ minetest.register_tool("default:axe_stone", {
dd_cuttability = 0,
})
minetest.register_tool("default:axe_steel", {
image = "tool_steelaxe.png",
image = "default_tool_steelaxe.png",
basetime = 1.0,
dt_weight = 0.5,
dt_crackiness = -0.2,
@ -476,7 +476,7 @@ minetest.register_tool("default:axe_steel", {
dd_cuttability = 0,
})
minetest.register_tool("default:sword_wood", {
image = "tool_woodsword.png",
image = "default_tool_woodsword.png",
basetime = 3.0,
dt_weight = 3,
dt_crackiness = 0,
@ -489,7 +489,7 @@ minetest.register_tool("default:sword_wood", {
dd_cuttability = 0,
})
minetest.register_tool("default:sword_stone", {
image = "tool_stonesword.png",
image = "default_tool_stonesword.png",
basetime = 2.5,
dt_weight = 3,
dt_crackiness = 0,
@ -502,7 +502,7 @@ minetest.register_tool("default:sword_stone", {
dd_cuttability = 0,
})
minetest.register_tool("default:sword_steel", {
image = "tool_steelsword.png",
image = "default_tool_steelsword.png",
basetime = 2.0,
dt_weight = 3,
dt_crackiness = 0,
@ -783,8 +783,8 @@ minetest.register_craft({
--
minetest.register_node("default:stone", {
tile_images = {"stone.png"},
inventory_image = minetest.inventorycube("stone.png"),
tile_images = {"default_stone.png"},
inventory_image = minetest.inventorycube("default_stone.png"),
paramtype = "mineral",
is_ground_content = true,
often_contains_mineral = true, -- Texture atlas hint
@ -793,70 +793,70 @@ minetest.register_node("default:stone", {
})
minetest.register_node("default:dirt_with_grass", {
tile_images = {"grass.png", "mud.png", "mud.png^grass_side.png"},
inventory_image = minetest.inventorycube("mud.png^grass_side.png"),
tile_images = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
inventory_image = minetest.inventorycube("default_dirt.png^default_grass_side.png"),
is_ground_content = true,
material = minetest.digprop_dirtlike(1.0),
dug_item = 'node "dirt" 1',
})
minetest.register_node("default:dirt_with_grass_footsteps", {
tile_images = {"grass_footsteps.png", "mud.png", "mud.png^grass_side.png"},
inventory_image = "grass_footsteps.png",
tile_images = {"default_grass_footsteps.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
inventory_image = "default_grass_footsteps.png",
is_ground_content = true,
material = minetest.digprop_dirtlike(1.0),
dug_item = 'node "dirt" 1',
})
minetest.register_node("default:dirt", {
tile_images = {"mud.png"},
inventory_image = minetest.inventorycube("mud.png"),
tile_images = {"default_dirt.png"},
inventory_image = minetest.inventorycube("default_dirt.png"),
is_ground_content = true,
material = minetest.digprop_dirtlike(1.0),
})
minetest.register_node("default:sand", {
tile_images = {"sand.png"},
inventory_image = minetest.inventorycube("sand.png"),
tile_images = {"default_sand.png"},
inventory_image = minetest.inventorycube("default_sand.png"),
is_ground_content = true,
material = minetest.digprop_dirtlike(1.0),
cookresult_itemstring = 'node "glass" 1',
})
minetest.register_node("default:gravel", {
tile_images = {"gravel.png"},
inventory_image = minetest.inventorycube("gravel.png"),
tile_images = {"default_gravel.png"},
inventory_image = minetest.inventorycube("default_gravel.png"),
is_ground_content = true,
material = minetest.digprop_gravellike(1.0),
})
minetest.register_node("default:sandstone", {
tile_images = {"sandstone.png"},
inventory_image = minetest.inventorycube("sandstone.png"),
tile_images = {"default_sandstone.png"},
inventory_image = minetest.inventorycube("default_sandstone.png"),
is_ground_content = true,
material = minetest.digprop_dirtlike(1.0), -- FIXME should this be stonelike?
dug_item = 'node "sand" 1', -- FIXME is this intentional?
})
minetest.register_node("default:clay", {
tile_images = {"clay.png"},
inventory_image = minetest.inventorycube("clay.png"),
tile_images = {"default_clay.png"},
inventory_image = minetest.inventorycube("default_clay.png"),
is_ground_content = true,
material = minetest.digprop_dirtlike(1.0),
dug_item = 'craft "default:lump_of_clay" 4',
})
minetest.register_node("default:brick", {
tile_images = {"brick.png"},
inventory_image = minetest.inventorycube("brick.png"),
tile_images = {"default_brick.png"},
inventory_image = minetest.inventorycube("default_brick.png"),
is_ground_content = true,
material = minetest.digprop_stonelike(1.0),
dug_item = 'craft "default:clay_brick" 4',
})
minetest.register_node("default:tree", {
tile_images = {"tree_top.png", "tree_top.png", "tree.png"},
inventory_image = minetest.inventorycube("tree_top.png", "tree.png", "tree.png"),
tile_images = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
inventory_image = minetest.inventorycube("default_tree_top.png", "default_tree.png", "default_tree.png"),
is_ground_content = true,
material = minetest.digprop_woodlike(1.0),
cookresult_itemstring = 'craft "default:lump_of_coal" 1',
@ -864,8 +864,8 @@ minetest.register_node("default:tree", {
})
minetest.register_node("default:jungletree", {
tile_images = {"jungletree_top.png", "jungletree_top.png", "jungletree.png"},
inventory_image = minetest.inventorycube("jungletree_top.png", "jungletree.png", "jungletree.png"),
tile_images = {"default_jungletree_top.png", "default_jungletree_top.png", "default_jungletree.png"},
inventory_image = minetest.inventorycube("default_jungletree_top.png", "default_jungletree.png", "default_jungletree.png"),
is_ground_content = true,
material = minetest.digprop_woodlike(1.0),
cookresult_itemstring = 'craft "default:lump_of_coal" 1',
@ -875,8 +875,8 @@ minetest.register_node("default:jungletree", {
minetest.register_node("default:junglegrass", {
drawtype = "plantlike",
visual_scale = 1.3,
tile_images = {"junglegrass.png"},
inventory_image = "junglegrass.png",
tile_images = {"default_junglegrass.png"},
inventory_image = "default_junglegrass.png",
light_propagates = true,
paramtype = "light",
walkable = false,
@ -887,8 +887,8 @@ minetest.register_node("default:junglegrass", {
minetest.register_node("default:leaves", {
drawtype = "allfaces_optional",
visual_scale = 1.3,
tile_images = {"leaves.png"},
inventory_image = minetest.inventorycube("leaves.png"),
tile_images = {"default_leaves.png"},
inventory_image = minetest.inventorycube("default_leaves.png"),
light_propagates = true,
paramtype = "light",
material = minetest.digprop_leaveslike(1.0),
@ -898,8 +898,8 @@ minetest.register_node("default:leaves", {
})
minetest.register_node("default:cactus", {
tile_images = {"cactus_top.png", "cactus_top.png", "cactus_side.png"},
inventory_image = minetest.inventorycube("cactus_top.png", "cactus_side.png", "cactus_side.png"),
tile_images = {"default_cactus_top.png", "default_cactus_top.png", "default_cactus_side.png"},
inventory_image = minetest.inventorycube("default_cactus_top.png", "default_cactus_side.png", "default_cactus_side.png"),
is_ground_content = true,
material = minetest.digprop_woodlike(0.75),
furnace_burntime = 15,
@ -907,8 +907,8 @@ minetest.register_node("default:cactus", {
minetest.register_node("default:papyrus", {
drawtype = "plantlike",
tile_images = {"papyrus.png"},
inventory_image = "papyrus.png",
tile_images = {"default_papyrus.png"},
inventory_image = "default_papyrus.png",
light_propagates = true,
paramtype = "light",
is_ground_content = true,
@ -918,8 +918,8 @@ minetest.register_node("default:papyrus", {
})
minetest.register_node("default:bookshelf", {
tile_images = {"wood.png", "wood.png", "bookshelf.png"},
inventory_image = minetest.inventorycube("wood.png", "bookshelf.png", "bookshelf.png"),
tile_images = {"default_wood.png", "default_wood.png", "default_bookshelf.png"},
inventory_image = minetest.inventorycube("default_wood.png", "default_bookshelf.png", "default_bookshelf.png"),
is_ground_content = true,
material = minetest.digprop_woodlike(0.75),
furnace_burntime = 30,
@ -927,8 +927,8 @@ minetest.register_node("default:bookshelf", {
minetest.register_node("default:glass", {
drawtype = "glasslike",
tile_images = {"glass.png"},
inventory_image = minetest.inventorycube("glass.png"),
tile_images = {"default_glass.png"},
inventory_image = minetest.inventorycube("default_glass.png"),
light_propagates = true,
paramtype = "light",
sunlight_propagates = true,
@ -938,8 +938,8 @@ minetest.register_node("default:glass", {
minetest.register_node("default:fence_wooden", {
drawtype = "fencelike",
tile_images = {"wood.png"},
inventory_image = "fence.png",
tile_images = {"default_wood.png"},
inventory_image = "default_fence.png",
light_propagates = true,
paramtype = "light",
is_ground_content = true,
@ -953,8 +953,8 @@ minetest.register_node("default:fence_wooden", {
minetest.register_node("default:rail", {
drawtype = "raillike",
tile_images = {"rail.png", "rail_curved.png", "rail_t_junction.png", "rail_crossing.png"},
inventory_image = "rail.png",
tile_images = {"default_rail.png", "default_rail_curved.png", "default_rail_t_junction.png", "default_rail_crossing.png"},
inventory_image = "default_rail.png",
light_propagates = true,
paramtype = "light",
is_ground_content = true,
@ -968,8 +968,8 @@ minetest.register_node("default:rail", {
minetest.register_node("default:ladder", {
drawtype = "signlike",
tile_images = {"ladder.png"},
inventory_image = "ladder.png",
tile_images = {"default_ladder.png"},
inventory_image = "default_ladder.png",
light_propagates = true,
paramtype = "light",
is_ground_content = true,
@ -994,32 +994,32 @@ minetest.register_node("default:coalstone", {
})
minetest.register_node("default:wood", {
tile_images = {"wood.png"},
inventory_image = minetest.inventorycube("wood.png"),
tile_images = {"default_wood.png"},
inventory_image = minetest.inventorycube("default_wood.png"),
is_ground_content = true,
furnace_burntime = 7,
material = minetest.digprop_woodlike(0.75),
})
minetest.register_node("default:mese", {
tile_images = {"mese.png"},
inventory_image = minetest.inventorycube("mese.png"),
tile_images = {"default_mese.png"},
inventory_image = minetest.inventorycube("default_mese.png"),
is_ground_content = true,
furnace_burntime = 30,
material = minetest.digprop_stonelike(0.5),
})
minetest.register_node("default:cloud", {
tile_images = {"cloud.png"},
inventory_image = minetest.inventorycube("cloud.png"),
tile_images = {"default_cloud.png"},
inventory_image = minetest.inventorycube("default_cloud.png"),
is_ground_content = true,
})
minetest.register_node("default:water_flowing", {
drawtype = "flowingliquid",
tile_images = {"water.png"},
tile_images = {"default_water.png"},
alpha = WATER_ALPHA,
inventory_image = minetest.inventorycube("water.png"),
inventory_image = minetest.inventorycube("default_water.png"),
paramtype = "light",
light_propagates = true,
walkable = false,
@ -1032,16 +1032,16 @@ minetest.register_node("default:water_flowing", {
liquid_viscosity = WATER_VISC,
post_effect_color = {a=64, r=100, g=100, b=200},
special_materials = {
{image="water.png", backface_culling=false},
{image="water.png", backface_culling=true},
{image="default_water.png", backface_culling=false},
{image="default_water.png", backface_culling=true},
},
})
minetest.register_node("default:water_source", {
drawtype = "liquid",
tile_images = {"water.png"},
tile_images = {"default_water.png"},
alpha = WATER_ALPHA,
inventory_image = minetest.inventorycube("water.png"),
inventory_image = minetest.inventorycube("default_water.png"),
paramtype = "light",
light_propagates = true,
walkable = false,
@ -1055,14 +1055,14 @@ minetest.register_node("default:water_source", {
post_effect_color = {a=64, r=100, g=100, b=200},
special_materials = {
-- New-style water source material (mostly unused)
{image="water.png", backface_culling=false},
{image="default_water.png", backface_culling=false},
},
})
minetest.register_node("default:lava_flowing", {
drawtype = "flowingliquid",
tile_images = {"lava.png"},
inventory_image = minetest.inventorycube("lava.png"),
tile_images = {"default_lava.png"},
inventory_image = minetest.inventorycube("default_lava.png"),
paramtype = "light",
light_propagates = false,
light_source = LIGHT_MAX - 1,
@ -1077,15 +1077,15 @@ minetest.register_node("default:lava_flowing", {
damage_per_second = 4*2,
post_effect_color = {a=192, r=255, g=64, b=0},
special_materials = {
{image="lava.png", backface_culling=false},
{image="lava.png", backface_culling=true},
{image="default_lava.png", backface_culling=false},
{image="default_lava.png", backface_culling=true},
},
})
minetest.register_node("default:lava_source", {
drawtype = "liquid",
tile_images = {"lava.png"},
inventory_image = minetest.inventorycube("lava.png"),
tile_images = {"default_lava.png"},
inventory_image = minetest.inventorycube("default_lava.png"),
paramtype = "light",
light_propagates = false,
light_source = LIGHT_MAX - 1,
@ -1101,15 +1101,15 @@ minetest.register_node("default:lava_source", {
post_effect_color = {a=192, r=255, g=64, b=0},
special_materials = {
-- New-style lava source material (mostly unused)
{image="lava.png", backface_culling=false},
{image="default_lava.png", backface_culling=false},
},
furnace_burntime = 60,
})
minetest.register_node("default:torch", {
drawtype = "torchlike",
tile_images = {"torch_on_floor.png", "torch_on_ceiling.png", "torch.png"},
inventory_image = "torch_on_floor.png",
tile_images = {"default_torch_on_floor.png", "default_torch_on_ceiling.png", "default_torch.png"},
inventory_image = "default_torch_on_floor.png",
paramtype = "light",
light_propagates = true,
sunlight_propagates = true,
@ -1128,8 +1128,8 @@ minetest.register_node("default:torch", {
minetest.register_node("default:sign_wall", {
drawtype = "signlike",
tile_images = {"sign_wall.png"},
inventory_image = "sign_wall.png",
tile_images = {"default_sign_wall.png"},
inventory_image = "default_sign_wall.png",
paramtype = "light",
light_propagates = true,
sunlight_propagates = true,
@ -1147,68 +1147,68 @@ minetest.register_node("default:sign_wall", {
})
minetest.register_node("default:chest", {
tile_images = {"chest_top.png", "chest_top.png", "chest_side.png",
"chest_side.png", "chest_side.png", "chest_front.png"},
inventory_image = minetest.inventorycube("chest_top.png", "chest_front.png", "chest_side.png"),
tile_images = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
"default_chest_side.png", "default_chest_side.png", "default_chest_front.png"},
inventory_image = minetest.inventorycube("default_chest_top.png", "default_chest_front.png", "default_chest_side.png"),
paramtype = "facedir_simple",
metadata_name = "default:chest",
metadata_name = "chest",
material = minetest.digprop_woodlike(1.0),
furnace_burntime = 30,
})
minetest.register_node("default:chest_locked", {
tile_images = {"chest_top.png", "chest_top.png", "chest_side.png",
"chest_side.png", "chest_side.png", "chest_lock.png"},
inventory_image = minetest.inventorycube("chest_top.png", "chest_lock.png", "chest_side.png"),
tile_images = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
"default_chest_side.png", "default_chest_side.png", "default_chest_lock.png"},
inventory_image = minetest.inventorycube("default_chest_top.png", "default_chest_lock.png", "default_chest_side.png"),
paramtype = "facedir_simple",
metadata_name = "default:chest_locked",
metadata_name = "locked_chest",
material = minetest.digprop_woodlike(1.0),
furnace_burntime = 30,
})
minetest.register_node("default:furnace", {
tile_images = {"furnace_side.png", "furnace_side.png", "furnace_side.png",
"furnace_side.png", "furnace_side.png", "furnace_front.png"},
inventory_image = minetest.inventorycube("furnace_side.png", "furnace_front.png", "furnace_side.png"),
tile_images = {"default_furnace_side.png", "default_furnace_side.png", "default_furnace_side.png",
"default_furnace_side.png", "default_furnace_side.png", "default_furnace_front.png"},
inventory_image = minetest.inventorycube("default_furnace_side.png", "default_furnace_front.png", "default_furnace_side.png"),
paramtype = "facedir_simple",
metadata_name = "default:furnace",
metadata_name = "furnace",
material = minetest.digprop_stonelike(3.0),
})
minetest.register_node("default:cobble", {
tile_images = {"cobble.png"},
inventory_image = minetest.inventorycube("cobble.png"),
tile_images = {"default_cobble.png"},
inventory_image = minetest.inventorycube("default_cobble.png"),
is_ground_content = true,
cookresult_itemstring = 'node "stone" 1',
material = minetest.digprop_stonelike(0.9),
})
minetest.register_node("default:mossycobble", {
tile_images = {"mossycobble.png"},
inventory_image = minetest.inventorycube("mossycobble.png"),
tile_images = {"default_mossycobble.png"},
inventory_image = minetest.inventorycube("default_mossycobble.png"),
is_ground_content = true,
material = minetest.digprop_stonelike(0.8),
})
minetest.register_node("default:steelblock", {
tile_images = {"steel_block.png"},
inventory_image = minetest.inventorycube("steel_block.png"),
tile_images = {"default_steel_block.png"},
inventory_image = minetest.inventorycube("default_steel_block.png"),
is_ground_content = true,
material = minetest.digprop_stonelike(5.0),
})
minetest.register_node("default:nyancat", {
tile_images = {"nc_side.png", "nc_side.png", "nc_side.png",
"nc_side.png", "nc_back.png", "nc_front.png"},
inventory_image = "nc_front.png",
tile_images = {"default_nc_side.png", "default_nc_side.png", "default_nc_side.png",
"default_nc_side.png", "default_nc_back.png", "default_nc_front.png"},
inventory_image = "default_nc_front.png",
paramtype = "facedir_simple",
material = minetest.digprop_stonelike(3.0),
furnace_burntime = 1,
})
minetest.register_node("default:nyancat_rainbow", {
tile_images = {"nc_rb.png"},
inventory_image = "nc_rb.png",
tile_images = {"default_nc_rb.png"},
inventory_image = "default_nc_rb.png",
material = minetest.digprop_stonelike(3.0),
furnace_burntime = 1,
})
@ -1216,8 +1216,8 @@ minetest.register_node("default:nyancat_rainbow", {
minetest.register_node("default:sapling", {
drawtype = "plantlike",
visual_scale = 1.0,
tile_images = {"sapling.png"},
inventory_image = "sapling.png",
tile_images = {"default_sapling.png"},
inventory_image = "default_sapling.png",
paramtype = "light",
light_propagates = true,
walkable = false,
@ -1228,8 +1228,8 @@ minetest.register_node("default:sapling", {
minetest.register_node("default:apple", {
drawtype = "plantlike",
visual_scale = 1.0,
tile_images = {"apple.png"},
inventory_image = "apple.png",
tile_images = {"default_apple.png"},
inventory_image = "default_apple.png",
paramtype = "light",
light_propagates = true,
sunlight_propagates = true,
@ -1244,80 +1244,56 @@ minetest.register_node("default:apple", {
--
minetest.register_craftitem("default:stick", {
image = "stick.png",
image = "default_stick.png",
--furnace_burntime = ...,
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem("default:paper", {
image = "paper.png",
image = "default_paper.png",
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem("default:book", {
image = "book.png",
image = "default_book.png",
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem("default:lump_of_coal", {
image = "lump_of_coal.png",
image = "default_lump_of_coal.png",
furnace_burntime = 40;
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem("default:lump_of_iron", {
image = "lump_of_iron.png",
image = "default_lump_of_iron.png",
cookresult_itemstring = 'craft "default:steel_ingot" 1',
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem("default:lump_of_clay", {
image = "lump_of_clay.png",
image = "default_lump_of_clay.png",
cookresult_itemstring = 'craft "default:clay_brick" 1',
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem("default:steel_ingot", {
image = "steel_ingot.png",
image = "default_steel_ingot.png",
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem("default:clay_brick", {
image = "clay_brick.png",
image = "default_clay_brick.png",
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem("default:rat", {
image = "rat.png",
cookresult_itemstring = 'craft "cooked_rat" 1',
on_drop = function(item, dropper, pos)
minetest.env:add_rat(pos)
return true
end,
})
minetest.register_craftitem("default:cooked_rat", {
image = "cooked_rat.png",
cookresult_itemstring = 'craft "scorched_stuff" 1',
on_place_on_ground = minetest.craftitem_place_item,
on_use = minetest.craftitem_eat(6),
})
minetest.register_craftitem("default:scorched_stuff", {
image = "scorched_stuff.png",
image = "default_scorched_stuff.png",
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem("default:firefly", {
image = "firefly.png",
on_drop = function(item, dropper, pos)
minetest.env:add_firefly(pos)
return true
end,
})
minetest.register_craftitem("default:apple", {
image = "apple.png",
image = "default_apple.png",
on_place_on_ground = minetest.craftitem_place_item,
on_use = minetest.craftitem_eat(4),
})
@ -1419,8 +1395,8 @@ function default.register_falling_node(nodename, texture)
})
end
default.register_falling_node("default:sand", "sand.png")
default.register_falling_node("default:gravel", "gravel.png")
default.register_falling_node("default:sand", "default_sand.png")
default.register_falling_node("default:gravel", "default_gravel.png")
--
-- Global callbacks

View File

Before

Width:  |  Height:  |  Size: 203 B

After

Width:  |  Height:  |  Size: 203 B

View File

Before

Width:  |  Height:  |  Size: 292 B

After

Width:  |  Height:  |  Size: 292 B

View File

Before

Width:  |  Height:  |  Size: 597 B

After

Width:  |  Height:  |  Size: 597 B

View File

Before

Width:  |  Height:  |  Size: 604 B

After

Width:  |  Height:  |  Size: 604 B

View File

Before

Width:  |  Height:  |  Size: 279 B

After

Width:  |  Height:  |  Size: 279 B

View File

Before

Width:  |  Height:  |  Size: 236 B

After

Width:  |  Height:  |  Size: 236 B

View File

Before

Width:  |  Height:  |  Size: 167 B

After

Width:  |  Height:  |  Size: 167 B

View File

Before

Width:  |  Height:  |  Size: 224 B

After

Width:  |  Height:  |  Size: 224 B

View File

Before

Width:  |  Height:  |  Size: 151 B

After

Width:  |  Height:  |  Size: 151 B

View File

Before

Width:  |  Height:  |  Size: 142 B

After

Width:  |  Height:  |  Size: 142 B

View File

Before

Width:  |  Height:  |  Size: 613 B

After

Width:  |  Height:  |  Size: 613 B

View File

Before

Width:  |  Height:  |  Size: 249 B

After

Width:  |  Height:  |  Size: 249 B

View File

Before

Width:  |  Height:  |  Size: 118 B

After

Width:  |  Height:  |  Size: 118 B

View File

Before

Width:  |  Height:  |  Size: 830 B

After

Width:  |  Height:  |  Size: 830 B

View File

Before

Width:  |  Height:  |  Size: 239 B

After

Width:  |  Height:  |  Size: 239 B

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

Before

Width:  |  Height:  |  Size: 539 B

After

Width:  |  Height:  |  Size: 539 B

View File

Before

Width:  |  Height:  |  Size: 603 B

After

Width:  |  Height:  |  Size: 603 B

View File

Before

Width:  |  Height:  |  Size: 246 B

After

Width:  |  Height:  |  Size: 246 B

View File

Before

Width:  |  Height:  |  Size: 236 B

After

Width:  |  Height:  |  Size: 236 B

View File

Before

Width:  |  Height:  |  Size: 978 B

After

Width:  |  Height:  |  Size: 978 B

View File

Before

Width:  |  Height:  |  Size: 874 B

After

Width:  |  Height:  |  Size: 874 B

View File

Before

Width:  |  Height:  |  Size: 856 B

After

Width:  |  Height:  |  Size: 856 B

View File

Before

Width:  |  Height:  |  Size: 878 B

After

Width:  |  Height:  |  Size: 878 B

View File

Before

Width:  |  Height:  |  Size: 591 B

After

Width:  |  Height:  |  Size: 591 B

View File

Before

Width:  |  Height:  |  Size: 672 B

After

Width:  |  Height:  |  Size: 672 B

View File

Before

Width:  |  Height:  |  Size: 502 B

After

Width:  |  Height:  |  Size: 502 B

View File

Before

Width:  |  Height:  |  Size: 507 B

After

Width:  |  Height:  |  Size: 507 B

View File

Before

Width:  |  Height:  |  Size: 395 B

After

Width:  |  Height:  |  Size: 395 B

View File

Before

Width:  |  Height:  |  Size: 357 B

After

Width:  |  Height:  |  Size: 357 B

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 210 B

After

Width:  |  Height:  |  Size: 210 B

View File

Before

Width:  |  Height:  |  Size: 933 B

After

Width:  |  Height:  |  Size: 933 B

View File

Before

Width:  |  Height:  |  Size: 936 B

After

Width:  |  Height:  |  Size: 936 B

View File

Before

Width:  |  Height:  |  Size: 203 B

After

Width:  |  Height:  |  Size: 203 B

View File

Before

Width:  |  Height:  |  Size: 952 B

After

Width:  |  Height:  |  Size: 952 B

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 965 B

After

Width:  |  Height:  |  Size: 965 B

View File

Before

Width:  |  Height:  |  Size: 303 B

After

Width:  |  Height:  |  Size: 303 B

View File

Before

Width:  |  Height:  |  Size: 410 B

After

Width:  |  Height:  |  Size: 410 B

View File

Before

Width:  |  Height:  |  Size: 203 B

After

Width:  |  Height:  |  Size: 203 B

View File

Before

Width:  |  Height:  |  Size: 260 B

After

Width:  |  Height:  |  Size: 260 B

View File

Before

Width:  |  Height:  |  Size: 242 B

After

Width:  |  Height:  |  Size: 242 B

View File

Before

Width:  |  Height:  |  Size: 366 B

After

Width:  |  Height:  |  Size: 366 B

View File

Before

Width:  |  Height:  |  Size: 507 B

After

Width:  |  Height:  |  Size: 507 B

View File

Before

Width:  |  Height:  |  Size: 555 B

After

Width:  |  Height:  |  Size: 555 B

View File

Before

Width:  |  Height:  |  Size: 545 B

After

Width:  |  Height:  |  Size: 545 B

View File

Before

Width:  |  Height:  |  Size: 542 B

After

Width:  |  Height:  |  Size: 542 B

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 772 B

After

Width:  |  Height:  |  Size: 772 B

View File

Before

Width:  |  Height:  |  Size: 502 B

After

Width:  |  Height:  |  Size: 502 B

View File

Before

Width:  |  Height:  |  Size: 233 B

After

Width:  |  Height:  |  Size: 233 B

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 489 B

After

Width:  |  Height:  |  Size: 489 B

View File

Before

Width:  |  Height:  |  Size: 219 B

After

Width:  |  Height:  |  Size: 219 B

View File

Before

Width:  |  Height:  |  Size: 207 B

After

Width:  |  Height:  |  Size: 207 B

View File

Before

Width:  |  Height:  |  Size: 182 B

After

Width:  |  Height:  |  Size: 182 B

View File

Before

Width:  |  Height:  |  Size: 806 B

After

Width:  |  Height:  |  Size: 806 B

View File

Before

Width:  |  Height:  |  Size: 161 B

After

Width:  |  Height:  |  Size: 161 B

View File

Before

Width:  |  Height:  |  Size: 186 B

After

Width:  |  Height:  |  Size: 186 B

View File

Before

Width:  |  Height:  |  Size: 264 B

After

Width:  |  Height:  |  Size: 264 B

View File

Before

Width:  |  Height:  |  Size: 252 B

After

Width:  |  Height:  |  Size: 252 B

View File

Before

Width:  |  Height:  |  Size: 927 B

After

Width:  |  Height:  |  Size: 927 B

View File

Before

Width:  |  Height:  |  Size: 271 B

After

Width:  |  Height:  |  Size: 271 B

View File

Before

Width:  |  Height:  |  Size: 216 B

After

Width:  |  Height:  |  Size: 216 B

View File

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 291 B

View File

Before

Width:  |  Height:  |  Size: 931 B

After

Width:  |  Height:  |  Size: 931 B

View File

Before

Width:  |  Height:  |  Size: 262 B

After

Width:  |  Height:  |  Size: 262 B

View File

Before

Width:  |  Height:  |  Size: 203 B

After

Width:  |  Height:  |  Size: 203 B

View File

Before

Width:  |  Height:  |  Size: 301 B

After

Width:  |  Height:  |  Size: 301 B

View File

Before

Width:  |  Height:  |  Size: 927 B

After

Width:  |  Height:  |  Size: 927 B

View File

Before

Width:  |  Height:  |  Size: 245 B

After

Width:  |  Height:  |  Size: 245 B

View File

Before

Width:  |  Height:  |  Size: 203 B

After

Width:  |  Height:  |  Size: 203 B

View File

Before

Width:  |  Height:  |  Size: 255 B

After

Width:  |  Height:  |  Size: 255 B

View File

Before

Width:  |  Height:  |  Size: 925 B

After

Width:  |  Height:  |  Size: 925 B

View File

Before

Width:  |  Height:  |  Size: 913 B

After

Width:  |  Height:  |  Size: 913 B

View File

Before

Width:  |  Height:  |  Size: 917 B

After

Width:  |  Height:  |  Size: 917 B

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 518 B

After

Width:  |  Height:  |  Size: 518 B

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -12,7 +12,7 @@ LIGHT_MAX = 14
--
minetest.register_tool(":WPick", {
image = "tool_woodpick.png",
image = "default_tool_woodpick.png",
basetime = 2.0,
dt_weight = 0,
dt_crackiness = -0.5,
@ -25,7 +25,7 @@ minetest.register_tool(":WPick", {
dd_cuttability = 0,
})
minetest.register_tool(":STPick", {
image = "tool_stonepick.png",
image = "default_tool_stonepick.png",
basetime = 1.5,
dt_weight = 0,
dt_crackiness = -0.5,
@ -38,7 +38,7 @@ minetest.register_tool(":STPick", {
dd_cuttability = 0,
})
minetest.register_tool(":SteelPick", {
image = "tool_steelpick.png",
image = "default_tool_steelpick.png",
basetime = 1.0,
dt_weight = 0,
dt_crackiness = -0.5,
@ -51,7 +51,7 @@ minetest.register_tool(":SteelPick", {
dd_cuttability = 0,
})
minetest.register_tool(":MesePick", {
image = "tool_mesepick.png",
image = "default_tool_mesepick.png",
basetime = 0,
dt_weight = 0,
dt_crackiness = 0,
@ -64,7 +64,7 @@ minetest.register_tool(":MesePick", {
dd_cuttability = 0,
})
minetest.register_tool(":WShovel", {
image = "tool_woodshovel.png",
image = "default_tool_woodshovel.png",
basetime = 2.0,
dt_weight = 0.5,
dt_crackiness = 2,
@ -77,7 +77,7 @@ minetest.register_tool(":WShovel", {
dd_cuttability = 0,
})
minetest.register_tool(":STShovel", {
image = "tool_stoneshovel.png",
image = "default_tool_stoneshovel.png",
basetime = 1.5,
dt_weight = 0.5,
dt_crackiness = 2,
@ -90,7 +90,7 @@ minetest.register_tool(":STShovel", {
dd_cuttability = 0,
})
minetest.register_tool(":SteelShovel", {
image = "tool_steelshovel.png",
image = "default_tool_steelshovel.png",
basetime = 1.0,
dt_weight = 0.5,
dt_crackiness = 2,
@ -103,7 +103,7 @@ minetest.register_tool(":SteelShovel", {
dd_cuttability = 0,
})
minetest.register_tool(":WAxe", {
image = "tool_woodaxe.png",
image = "default_tool_woodaxe.png",
basetime = 2.0,
dt_weight = 0.5,
dt_crackiness = -0.2,
@ -116,7 +116,7 @@ minetest.register_tool(":WAxe", {
dd_cuttability = 0,
})
minetest.register_tool(":STAxe", {
image = "tool_stoneaxe.png",
image = "default_tool_stoneaxe.png",
basetime = 1.5,
dt_weight = 0.5,
dt_crackiness = -0.2,
@ -129,7 +129,7 @@ minetest.register_tool(":STAxe", {
dd_cuttability = 0,
})
minetest.register_tool(":SteelAxe", {
image = "tool_steelaxe.png",
image = "default_tool_steelaxe.png",
basetime = 1.0,
dt_weight = 0.5,
dt_crackiness = -0.2,
@ -142,7 +142,7 @@ minetest.register_tool(":SteelAxe", {
dd_cuttability = 0,
})
minetest.register_tool(":WSword", {
image = "tool_woodsword.png",
image = "default_tool_woodsword.png",
basetime = 3.0,
dt_weight = 3,
dt_crackiness = 0,
@ -155,7 +155,7 @@ minetest.register_tool(":WSword", {
dd_cuttability = 0,
})
minetest.register_tool(":STSword", {
image = "tool_stonesword.png",
image = "default_tool_stonesword.png",
basetime = 2.5,
dt_weight = 3,
dt_crackiness = 0,
@ -168,7 +168,7 @@ minetest.register_tool(":STSword", {
dd_cuttability = 0,
})
minetest.register_tool(":SteelSword", {
image = "tool_steelsword.png",
image = "default_tool_steelsword.png",
basetime = 2.0,
dt_weight = 3,
dt_crackiness = 0,
@ -450,8 +450,8 @@ minetest.register_craft({
--
minetest.register_node(":stone", {
tile_images = {"stone.png"},
inventory_image = minetest.inventorycube("stone.png"),
tile_images = {"default_stone.png"},
inventory_image = minetest.inventorycube("default_stone.png"),
paramtype = "mineral",
is_ground_content = true,
often_contains_mineral = true, -- Texture atlas hint
@ -460,90 +460,90 @@ minetest.register_node(":stone", {
})
minetest.register_node(":dirt_with_grass", {
tile_images = {"grass.png", "mud.png", "mud.png^grass_side.png"},
inventory_image = minetest.inventorycube("mud.png^grass_side.png"),
tile_images = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
inventory_image = minetest.inventorycube("default_dirt.png^default_grass_side.png"),
is_ground_content = true,
material = minetest.digprop_dirtlike(1.0),
dug_item = 'node "dirt" 1',
})
minetest.register_node(":dirt_with_grass_footsteps", {
tile_images = {"grass_footsteps.png", "mud.png", "mud.png^grass_side.png"},
inventory_image = "grass_footsteps.png",
tile_images = {"default_grass_footsteps.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
inventory_image = "default_grass_footsteps.png",
is_ground_content = true,
material = minetest.digprop_dirtlike(1.0),
dug_item = 'node "dirt" 1',
})
minetest.register_node(":dirt", {
tile_images = {"mud.png"},
inventory_image = minetest.inventorycube("mud.png"),
tile_images = {"default_dirt.png"},
inventory_image = minetest.inventorycube("default_dirt.png"),
is_ground_content = true,
material = minetest.digprop_dirtlike(1.0),
})
minetest.register_node(":sand", {
tile_images = {"sand.png"},
inventory_image = minetest.inventorycube("sand.png"),
tile_images = {"default_sand.png"},
inventory_image = minetest.inventorycube("default_sand.png"),
is_ground_content = true,
material = minetest.digprop_dirtlike(1.0),
cookresult_itemstring = 'node "glass" 1',
cookresult_itemstring = 'node "default:glass" 1',
})
minetest.register_node(":gravel", {
tile_images = {"gravel.png"},
inventory_image = minetest.inventorycube("gravel.png"),
tile_images = {"default_gravel.png"},
inventory_image = minetest.inventorycube("default_gravel.png"),
is_ground_content = true,
material = minetest.digprop_gravellike(1.0),
})
minetest.register_node(":sandstone", {
tile_images = {"sandstone.png"},
inventory_image = minetest.inventorycube("sandstone.png"),
tile_images = {"default_sandstone.png"},
inventory_image = minetest.inventorycube("default_sandstone.png"),
is_ground_content = true,
material = minetest.digprop_dirtlike(1.0),
dug_item = 'node "sand" 1',
})
minetest.register_node(":clay", {
tile_images = {"clay.png"},
inventory_image = minetest.inventorycube("clay.png"),
tile_images = {"default_clay.png"},
inventory_image = minetest.inventorycube("default_clay.png"),
is_ground_content = true,
material = minetest.digprop_dirtlike(1.0),
dug_item = 'craft "lump_of_clay" 4',
})
minetest.register_node(":brick", {
tile_images = {"brick.png"},
inventory_image = minetest.inventorycube("brick.png"),
tile_images = {"default_brick.png"},
inventory_image = minetest.inventorycube("default_brick.png"),
is_ground_content = true,
material = minetest.digprop_stonelike(1.0),
dug_item = 'craft "clay_brick" 4',
})
minetest.register_node(":tree", {
tile_images = {"tree_top.png", "tree_top.png", "tree.png"},
inventory_image = minetest.inventorycube("tree_top.png", "tree.png", "tree.png"),
tile_images = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
inventory_image = minetest.inventorycube("default_tree_top.png", "default_tree.png", "default_tree.png"),
is_ground_content = true,
material = minetest.digprop_woodlike(1.0),
cookresult_itemstring = 'craft "lump_of_coal" 1',
cookresult_itemstring = 'craft "default:lump_of_coal" 1',
furnace_burntime = 30,
})
minetest.register_node(":jungletree", {
tile_images = {"jungletree_top.png", "jungletree_top.png", "jungletree.png"},
inventory_image = minetest.inventorycube("jungletree_top.png", "jungletree.png", "jungletree.png"),
tile_images = {"default_jungletree_top.png", "default_jungletree_top.png", "default_jungletree.png"},
inventory_image = minetest.inventorycube("default_jungletree_top.png", "default_jungletree.png", "default_jungletree.png"),
is_ground_content = true,
material = minetest.digprop_woodlike(1.0),
cookresult_itemstring = 'craft "lump_of_coal" 1',
cookresult_itemstring = 'craft "default:lump_of_coal" 1',
furnace_burntime = 30,
})
minetest.register_node(":junglegrass", {
drawtype = "plantlike",
visual_scale = 1.3,
tile_images = {"junglegrass.png"},
inventory_image = "junglegrass.png",
tile_images = {"default_junglegrass.png"},
inventory_image = "default_junglegrass.png",
light_propagates = true,
paramtype = "light",
walkable = false,
@ -554,19 +554,19 @@ minetest.register_node(":junglegrass", {
minetest.register_node(":leaves", {
drawtype = "allfaces_optional",
visual_scale = 1.3,
tile_images = {"leaves.png"},
inventory_image = minetest.inventorycube("leaves.png"),
tile_images = {"default_leaves.png"},
inventory_image = minetest.inventorycube("default_leaves.png"),
light_propagates = true,
paramtype = "light",
material = minetest.digprop_leaveslike(1.0),
extra_dug_item = 'node "sapling" 1',
extra_dug_item = 'node "default:sapling" 1',
extra_dug_item_rarity = 20,
furnace_burntime = 1,
})
minetest.register_node(":cactus", {
tile_images = {"cactus_top.png", "cactus_top.png", "cactus_side.png"},
inventory_image = minetest.inventorycube("cactus_top.png", "cactus_side.png", "cactus_side.png"),
tile_images = {"default_cactus_top.png", "default_cactus_top.png", "default_cactus_side.png"},
inventory_image = minetest.inventorycube("default_cactus_top.png", "default_cactus_side.png", "default_cactus_side.png"),
is_ground_content = true,
material = minetest.digprop_woodlike(0.75),
furnace_burntime = 15,
@ -574,8 +574,8 @@ minetest.register_node(":cactus", {
minetest.register_node(":papyrus", {
drawtype = "plantlike",
tile_images = {"papyrus.png"},
inventory_image = "papyrus.png",
tile_images = {"default_papyrus.png"},
inventory_image = "default_papyrus.png",
light_propagates = true,
paramtype = "light",
is_ground_content = true,
@ -585,8 +585,8 @@ minetest.register_node(":papyrus", {
})
minetest.register_node(":bookshelf", {
tile_images = {"wood.png", "wood.png", "bookshelf.png"},
inventory_image = minetest.inventorycube("wood.png", "bookshelf.png", "bookshelf.png"),
tile_images = {"default_wood.png", "default_wood.png", "default_bookshelf.png"},
inventory_image = minetest.inventorycube("default_wood.png", "default_bookshelf.png", "default_bookshelf.png"),
is_ground_content = true,
material = minetest.digprop_woodlike(0.75),
furnace_burntime = 30,
@ -594,8 +594,8 @@ minetest.register_node(":bookshelf", {
minetest.register_node(":glass", {
drawtype = "glasslike",
tile_images = {"glass.png"},
inventory_image = minetest.inventorycube("glass.png"),
tile_images = {"default_glass.png"},
inventory_image = minetest.inventorycube("default_glass.png"),
light_propagates = true,
paramtype = "light",
sunlight_propagates = true,
@ -605,8 +605,8 @@ minetest.register_node(":glass", {
minetest.register_node(":wooden_fence", {
drawtype = "fencelike",
tile_images = {"wood.png"},
inventory_image = "fence.png",
tile_images = {"default_wood.png"},
inventory_image = "default_fence.png",
light_propagates = true,
paramtype = "light",
is_ground_content = true,
@ -620,8 +620,8 @@ minetest.register_node(":wooden_fence", {
minetest.register_node(":rail", {
drawtype = "raillike",
tile_images = {"rail.png", "rail_curved.png", "rail_t_junction.png", "rail_crossing.png"},
inventory_image = "rail.png",
tile_images = {"default_rail.png", "default_rail_curved.png", "default_rail_t_junction.png", "default_rail_crossing.png"},
inventory_image = "default_rail.png",
light_propagates = true,
paramtype = "light",
is_ground_content = true,
@ -635,8 +635,8 @@ minetest.register_node(":rail", {
minetest.register_node(":ladder", {
drawtype = "signlike",
tile_images = {"ladder.png"},
inventory_image = "ladder.png",
tile_images = {"default_ladder.png"},
inventory_image = "default_ladder.png",
light_propagates = true,
paramtype = "light",
is_ground_content = true,
@ -661,32 +661,32 @@ minetest.register_node(":coalstone", {
})
minetest.register_node(":wood", {
tile_images = {"wood.png"},
inventory_image = minetest.inventorycube("wood.png"),
tile_images = {"default_wood.png"},
inventory_image = minetest.inventorycube("default_wood.png"),
is_ground_content = true,
furnace_burntime = 7,
material = minetest.digprop_woodlike(0.75),
})
minetest.register_node(":mese", {
tile_images = {"mese.png"},
inventory_image = minetest.inventorycube("mese.png"),
tile_images = {"default_mese.png"},
inventory_image = minetest.inventorycube("default_mese.png"),
is_ground_content = true,
furnace_burntime = 30,
material = minetest.digprop_stonelike(0.5),
})
minetest.register_node(":cloud", {
tile_images = {"cloud.png"},
inventory_image = minetest.inventorycube("cloud.png"),
tile_images = {"default_cloud.png"},
inventory_image = minetest.inventorycube("default_cloud.png"),
is_ground_content = true,
})
minetest.register_node(":water_flowing", {
drawtype = "flowingliquid",
tile_images = {"water.png"},
tile_images = {"default_water.png"},
alpha = WATER_ALPHA,
inventory_image = minetest.inventorycube("water.png"),
inventory_image = minetest.inventorycube("default_water.png"),
paramtype = "light",
light_propagates = true,
walkable = false,
@ -699,16 +699,16 @@ minetest.register_node(":water_flowing", {
liquid_viscosity = WATER_VISC,
post_effect_color = {a=64, r=100, g=100, b=200},
special_materials = {
{image="water.png", backface_culling=false},
{image="water.png", backface_culling=true},
{image="default_water.png", backface_culling=false},
{image="default_water.png", backface_culling=true},
},
})
minetest.register_node(":water_source", {
drawtype = "liquid",
tile_images = {"water.png"},
tile_images = {"default_water.png"},
alpha = WATER_ALPHA,
inventory_image = minetest.inventorycube("water.png"),
inventory_image = minetest.inventorycube("default_water.png"),
paramtype = "light",
light_propagates = true,
walkable = false,
@ -722,14 +722,14 @@ minetest.register_node(":water_source", {
post_effect_color = {a=64, r=100, g=100, b=200},
special_materials = {
-- New-style water source material (mostly unused)
{image="water.png", backface_culling=false},
{image="default_water.png", backface_culling=false},
},
})
minetest.register_node(":lava_flowing", {
drawtype = "flowingliquid",
tile_images = {"lava.png"},
inventory_image = minetest.inventorycube("lava.png"),
tile_images = {"default_lava.png"},
inventory_image = minetest.inventorycube("default_lava.png"),
paramtype = "light",
light_propagates = false,
light_source = LIGHT_MAX - 1,
@ -744,15 +744,15 @@ minetest.register_node(":lava_flowing", {
damage_per_second = 4*2,
post_effect_color = {a=192, r=255, g=64, b=0},
special_materials = {
{image="lava.png", backface_culling=false},
{image="lava.png", backface_culling=true},
{image="default_lava.png", backface_culling=false},
{image="default_lava.png", backface_culling=true},
},
})
minetest.register_node(":lava_source", {
drawtype = "liquid",
tile_images = {"lava.png"},
inventory_image = minetest.inventorycube("lava.png"),
tile_images = {"default_lava.png"},
inventory_image = minetest.inventorycube("default_lava.png"),
paramtype = "light",
light_propagates = false,
light_source = LIGHT_MAX - 1,
@ -768,15 +768,15 @@ minetest.register_node(":lava_source", {
post_effect_color = {a=192, r=255, g=64, b=0},
special_materials = {
-- New-style lava source material (mostly unused)
{image="lava.png", backface_culling=false},
{image="default_lava.png", backface_culling=false},
},
furnace_burntime = 60,
})
minetest.register_node(":torch", {
drawtype = "torchlike",
tile_images = {"torch_on_floor.png", "torch_on_ceiling.png", "torch.png"},
inventory_image = "torch_on_floor.png",
tile_images = {"default_torch_on_floor.png", "default_torch_on_ceiling.png", "default_torch.png"},
inventory_image = "default_torch_on_floor.png",
paramtype = "light",
light_propagates = true,
sunlight_propagates = true,
@ -795,8 +795,8 @@ minetest.register_node(":torch", {
minetest.register_node(":sign_wall", {
drawtype = "signlike",
tile_images = {"sign_wall.png"},
inventory_image = "sign_wall.png",
tile_images = {"default_sign_wall.png"},
inventory_image = "default_sign_wall.png",
paramtype = "light",
light_propagates = true,
sunlight_propagates = true,
@ -814,9 +814,9 @@ minetest.register_node(":sign_wall", {
})
minetest.register_node(":chest", {
tile_images = {"chest_top.png", "chest_top.png", "chest_side.png",
"chest_side.png", "chest_side.png", "chest_front.png"},
inventory_image = minetest.inventorycube("chest_top.png", "chest_front.png", "chest_side.png"),
tile_images = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
"default_chest_side.png", "default_chest_side.png", "default_chest_front.png"},
inventory_image = minetest.inventorycube("default_chest_top.png", "default_chest_front.png", "default_chest_side.png"),
paramtype = "facedir_simple",
metadata_name = "chest",
material = minetest.digprop_woodlike(1.0),
@ -824,9 +824,9 @@ minetest.register_node(":chest", {
})
minetest.register_node(":locked_chest", {
tile_images = {"chest_top.png", "chest_top.png", "chest_side.png",
"chest_side.png", "chest_side.png", "chest_lock.png"},
inventory_image = minetest.inventorycube("chest_top.png", "chest_lock.png", "chest_side.png"),
tile_images = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
"default_chest_side.png", "default_chest_side.png", "default_chest_lock.png"},
inventory_image = minetest.inventorycube("default_chest_top.png", "default_chest_lock.png", "default_chest_side.png"),
paramtype = "facedir_simple",
metadata_name = "locked_chest",
material = minetest.digprop_woodlike(1.0),
@ -834,48 +834,48 @@ minetest.register_node(":locked_chest", {
})
minetest.register_node(":furnace", {
tile_images = {"furnace_side.png", "furnace_side.png", "furnace_side.png",
"furnace_side.png", "furnace_side.png", "furnace_front.png"},
inventory_image = minetest.inventorycube("furnace_side.png", "furnace_front.png", "furnace_side.png"),
tile_images = {"default_furnace_side.png", "default_furnace_side.png", "default_furnace_side.png",
"default_furnace_side.png", "default_furnace_side.png", "default_furnace_front.png"},
inventory_image = minetest.inventorycube("default_furnace_side.png", "default_furnace_front.png", "default_furnace_side.png"),
paramtype = "facedir_simple",
metadata_name = "furnace",
material = minetest.digprop_stonelike(3.0),
})
minetest.register_node(":cobble", {
tile_images = {"cobble.png"},
inventory_image = minetest.inventorycube("cobble.png"),
tile_images = {"default_cobble.png"},
inventory_image = minetest.inventorycube("default_cobble.png"),
is_ground_content = true,
cookresult_itemstring = 'node "stone" 1',
cookresult_itemstring = 'node "default:stone" 1',
material = minetest.digprop_stonelike(0.9),
})
minetest.register_node(":mossycobble", {
tile_images = {"mossycobble.png"},
inventory_image = minetest.inventorycube("mossycobble.png"),
tile_images = {"default_mossycobble.png"},
inventory_image = minetest.inventorycube("default_mossycobble.png"),
is_ground_content = true,
material = minetest.digprop_stonelike(0.8),
})
minetest.register_node(":steelblock", {
tile_images = {"steel_block.png"},
inventory_image = minetest.inventorycube("steel_block.png"),
tile_images = {"default_steel_block.png"},
inventory_image = minetest.inventorycube("default_steel_block.png"),
is_ground_content = true,
material = minetest.digprop_stonelike(5.0),
})
minetest.register_node(":nyancat", {
tile_images = {"nc_side.png", "nc_side.png", "nc_side.png",
"nc_side.png", "nc_back.png", "nc_front.png"},
inventory_image = "nc_front.png",
tile_images = {"default_nc_side.png", "default_nc_side.png", "default_nc_side.png",
"default_nc_side.png", "default_nc_back.png", "default_nc_front.png"},
inventory_image = "default_nc_front.png",
paramtype = "facedir_simple",
material = minetest.digprop_stonelike(3.0),
furnace_burntime = 1,
})
minetest.register_node(":nyancat_rainbow", {
tile_images = {"nc_rb.png"},
inventory_image = "nc_rb.png",
tile_images = {"default_nc_rb.png"},
inventory_image = "default_nc_rb.png",
material = minetest.digprop_stonelike(3.0),
furnace_burntime = 1,
})
@ -883,8 +883,8 @@ minetest.register_node(":nyancat_rainbow", {
minetest.register_node(":sapling", {
drawtype = "plantlike",
visual_scale = 1.0,
tile_images = {"sapling.png"},
inventory_image = "sapling.png",
tile_images = {"default_sapling.png"},
inventory_image = "default_sapling.png",
paramtype = "light",
light_propagates = true,
walkable = false,
@ -895,8 +895,8 @@ minetest.register_node(":sapling", {
minetest.register_node(":apple", {
drawtype = "plantlike",
visual_scale = 1.0,
tile_images = {"apple.png"},
inventory_image = "apple.png",
tile_images = {"default_apple.png"},
inventory_image = "default_apple.png",
paramtype = "light",
light_propagates = true,
sunlight_propagates = true,
@ -912,46 +912,46 @@ minetest.register_node(":apple", {
--
minetest.register_craftitem(":Stick", {
image = "stick.png",
image = "default_stick.png",
--furnace_burntime = ...,
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem(":paper", {
image = "paper.png",
image = "default_paper.png",
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem(":book", {
image = "book.png",
image = "default_book.png",
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem(":lump_of_coal", {
image = "lump_of_coal.png",
image = "default_lump_of_coal.png",
furnace_burntime = 40;
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem(":lump_of_iron", {
image = "lump_of_iron.png",
cookresult_itemstring = 'craft "steel_ingot" 1',
image = "default_lump_of_iron.png",
cookresult_itemstring = 'craft "default:steel_ingot" 1',
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem(":lump_of_clay", {
image = "lump_of_clay.png",
cookresult_itemstring = 'craft "clay_brick" 1',
image = "default_lump_of_clay.png",
cookresult_itemstring = 'craft "default:clay_brick" 1',
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem(":steel_ingot", {
image = "steel_ingot.png",
image = "default_steel_ingot.png",
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem(":clay_brick", {
image = "clay_brick.png",
image = "default_clay_brick.png",
on_place_on_ground = minetest.craftitem_place_item,
})
@ -972,7 +972,7 @@ minetest.register_craftitem(":cooked_rat", {
})
minetest.register_craftitem(":scorched_stuff", {
image = "scorched_stuff.png",
image = "default_scorched_stuff.png",
on_place_on_ground = minetest.craftitem_place_item,
})
@ -985,13 +985,13 @@ minetest.register_craftitem(":firefly", {
})
minetest.register_craftitem(":apple", {
image = "apple.png",
image = "default_apple.png",
on_place_on_ground = minetest.craftitem_place_item,
on_use = minetest.craftitem_eat(4),
})
minetest.register_craftitem(":apple_iron", {
image = "apple_iron.png",
image = "default_apple_iron.png",
on_place_on_ground = minetest.craftitem_place_item,
on_use = minetest.craftitem_eat(8),
})
@ -1000,8 +1000,8 @@ minetest.register_craftitem(":apple_iron", {
-- Falling stuff
--
default.register_falling_node("sand", "sand.png")
default.register_falling_node("gravel", "gravel.png")
default.register_falling_node("sand", "default_sand.png")
default.register_falling_node("gravel", "default_gravel.png")
--
-- Global callbacks

View File

Before

Width:  |  Height:  |  Size: 116 B

After

Width:  |  Height:  |  Size: 116 B

View File

Before

Width:  |  Height:  |  Size: 250 B

After

Width:  |  Height:  |  Size: 250 B

View File

Before

Width:  |  Height:  |  Size: 341 B

After

Width:  |  Height:  |  Size: 341 B

View File

Before

Width:  |  Height:  |  Size: 920 B

After

Width:  |  Height:  |  Size: 920 B