aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalinou <calinou@opmbx.org>2014-05-01 17:43:01 +0200
committerCalinou <calinou@opmbx.org>2014-05-01 17:43:01 +0200
commit34f707d28376d190a942efa6e0abab09d64b9c70 (patch)
treee9d40a2ca162b34e3e7206aed6d5e5eb3a564581
parent3f8d0aa111959fcff5b23e33b241db6833fb0706 (diff)
downloadmoreblocks-34f707d28376d190a942efa6e0abab09d64b9c70.tar.gz
moreblocks-34f707d28376d190a942efa6e0abab09d64b9c70.tar.bz2
moreblocks-34f707d28376d190a942efa6e0abab09d64b9c70.zip
Make glass and obsidian glass framed to suit More Blocks glasses; some code cleanups.
-rw-r--r--redefinitions.lua16
1 files changed, 12 insertions, 4 deletions
diff --git a/redefinitions.lua b/redefinitions.lua
index f3aec3d..1978ceb 100644
--- a/redefinitions.lua
+++ b/redefinitions.lua
@@ -70,8 +70,7 @@ minetest.register_craft({
-- Redefinitions of some default nodes
--- Don't bother overriding nodes if minetest.override_item isn't available
-if minetest.override_item then
+if minetest.override_item then -- Don't bother overriding nodes if minetest.override_item isn't available
if moreblocks.config.wood_facedir then
minetest.override_item("default:wood", {
@@ -79,6 +78,16 @@ if moreblocks.config.wood_facedir then
})
end
+-- Make glass and obsidian glass framed, like the More Blocks glasses
+
+minetest.override_item("default:glass", {
+ drawtype = "glasslike_framed",
+})
+
+minetest.override_item("default:obsidian_glass", {
+ drawtype = "glasslike_framed",
+})
+
-- Let there be light!
minetest.override_item("default:ladder", {
@@ -117,8 +126,7 @@ minetest.override_item("default:junglesapling", {
})
minetest.override_item("default:grass_1", {
- -- Use a bigger inventory image
- inventory_image = "default_grass_3.png",
+ inventory_image = "default_grass_3.png", -- Use a bigger inventory image
wield_image = "default_grass_3.png",
paramtype = "light",
sunlight_propagates = true,