aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua29
1 files changed, 20 insertions, 9 deletions
diff --git a/init.lua b/init.lua
index 40fee2a..4fc120f 100644
--- a/init.lua
+++ b/init.lua
@@ -1,3 +1,13 @@
+--[[
+****
+More Blocks
+by Calinou
+Licensed under the zlib/libpng license for code and CC BY-SA for textures, see LICENSE.txt for info.
+****
+--]]
+
+moreblocks = {}
+
-- Load translation library if intllib is installed
local S
@@ -7,9 +17,11 @@ if (minetest.get_modpath("intllib")) then
else
S = function ( s ) return s end
end
+moreblocks.gettext = S
dofile(minetest.get_modpath("moreblocks").."/_config.txt")
+dofile(minetest.get_modpath("moreblocks").."/ownership.lua")
dofile(minetest.get_modpath("moreblocks").."/redefinitions.lua")
dofile(minetest.get_modpath("moreblocks").."/crafting.lua")
dofile(minetest.get_modpath("moreblocks").."/aliases.lua")
@@ -22,14 +34,6 @@ dofile(minetest.get_modpath("moreblocks").."/stairsplus/aliases.lua")
dofile(minetest.get_modpath("moreblocks").."/stairsplus.lua")
dofile(minetest.get_modpath("moreblocks").."/circular_saw.lua")
---[[
-****
-More Blocks
-by Calinou
-Licensed under the zlib/libpng license for code and CC BY-SA for textures, see LICENSE.txt for info.
-****
---]]
-
-- Blocks
minetest.register_node("moreblocks:wood_tile", {
@@ -108,6 +112,13 @@ minetest.register_node("moreblocks:circle_stone_bricks", {
sounds = default.node_sound_stone_defaults(),
})
+minetest.register_node("moreblocks:coal_stone_bricks", {
+ description = S("Coal Stone Bricks"),
+ tiles = {"moreblocks_coal_stone_bricks.png"},
+ groups = {cracky=3},
+ sounds = default.node_sound_stone_defaults(),
+})
+
minetest.register_node("moreblocks:iron_stone_bricks", {
description = S("Iron Stone Bricks"),
tiles = {"moreblocks_iron_stone_bricks.png"},
@@ -353,10 +364,10 @@ minetest.register_craftitem("moreblocks:sweeper", {
minetest.register_craftitem("moreblocks:jungle_stick", {
description = S("Jungle Stick"),
inventory_image = "moreblocks_junglestick.png",
+ groups = {stick=1},
})
minetest.register_craftitem("moreblocks:nothing", {
- inventory_image = "invisible.png",
on_use = minetest.item_eat(0),
})