aboutsummaryrefslogtreecommitdiff
path: root/data/mods/default
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-25 22:06:50 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:52 +0200
commit425db289d59d6c9b9be29334a42c1bbb82fab87f (patch)
tree7bdd16ecb239976464b7d45967636c7ee15883eb /data/mods/default
parentd2eed169aed84c8e3860912dfcd8da15db334c79 (diff)
downloadminetest-425db289d59d6c9b9be29334a42c1bbb82fab87f.tar.gz
minetest-425db289d59d6c9b9be29334a42c1bbb82fab87f.tar.bz2
minetest-425db289d59d6c9b9be29334a42c1bbb82fab87f.zip
Fix random node definition stuff
Diffstat (limited to 'data/mods/default')
-rw-r--r--data/mods/default/init.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua
index 3e451b649..d311c4f60 100644
--- a/data/mods/default/init.lua
+++ b/data/mods/default/init.lua
@@ -628,9 +628,9 @@ function inventorycube(img1, img2, img3)
img2 = img2 or img1
img3 = img3 or img1
return "[inventorycube"
- .. "{" .. img1:gsub("^", "&")
- .. "{" .. img2:gsub("^", "&")
- .. "{" .. img3:gsub("^", "&")
+ .. "{" .. img1:gsub("%^", "&")
+ .. "{" .. img2:gsub("%^", "&")
+ .. "{" .. img3:gsub("%^", "&")
end
-- Legacy nodes
@@ -642,6 +642,7 @@ minetest.register_node("stone", {
is_ground_content = true,
often_contains_mineral = true, -- Texture atlas hint
material = digprop_stonelike(1.0),
+ dug_item = 'NodeItem "cobble" 1',
})
minetest.register_node("dirt_with_grass", {
@@ -649,6 +650,7 @@ minetest.register_node("dirt_with_grass", {
inventory_image = inventorycube("mud.png^grass_side.png"),
is_ground_content = true,
material = digprop_dirtlike(1.0),
+ dug_item = 'NodeItem "dirt" 1',
})
minetest.register_node("dirt_with_grass_footsteps", {