aboutsummaryrefslogtreecommitdiff
path: root/data/mods/default/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'data/mods/default/init.lua')
-rw-r--r--data/mods/default/init.lua266
1 files changed, 121 insertions, 145 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua
index 44048835d..68de378c6 100644
--- a/data/mods/default/init.lua
+++ b/data/mods/default/init.lua
@@ -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