summaryrefslogtreecommitdiff
path: root/maptools/nodes.lua
diff options
context:
space:
mode:
Diffstat (limited to 'maptools/nodes.lua')
-rw-r--r--maptools/nodes.lua51
1 files changed, 25 insertions, 26 deletions
diff --git a/maptools/nodes.lua b/maptools/nodes.lua
index 3a2ebf5..200107f 100644
--- a/maptools/nodes.lua
+++ b/maptools/nodes.lua
@@ -5,11 +5,11 @@ Copyright © 2012-2019 Hugo Locurcio and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
-local S = maptools.intllib
+local S = maptools.S
maptools.creative = maptools.config["hide_from_creative_inventory"]
--- Redefine cloud so that the admin pickaxe can mine it:
+-- Redefine cloud so that the admin pickaxe can mine it
minetest.register_node(":default:cloud", {
description = S("Cloud"),
tiles = {"default_cloud.png"},
@@ -20,7 +20,6 @@ minetest.register_node(":default:cloud", {
})
-- Nodes
--- =====
minetest.register_node("maptools:black", {
description = S("Black"),
@@ -239,29 +238,29 @@ minetest.register_node("maptools:playerclip_top", {
})
for pusher_num=1,10,1 do
-minetest.register_node("maptools:pusher_" .. pusher_num, {
- description = S("Pusher (%s)"):format(pusher_num),
- range = 12,
- stack_max = 10000,
- inventory_image = "default_steel_block.png^default_apple.png",
- drawtype = "nodebox",
- tiles = {"invisible.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {-0.5, -0.5, -0.5, 0.5, -0.4999, 0.5},
- },
- drop = "",
- groups = {
- unbreakable = 1,
- not_in_creative_inventory = maptools.creative,
- fall_damage_add_percent = -100,
- bouncy = pusher_num * 100,
- },
- on_drop = maptools.drop_msg
-})
+ minetest.register_node("maptools:pusher_" .. pusher_num, {
+ description = S("Pusher (%s)"):format(pusher_num),
+ range = 12,
+ stack_max = 10000,
+ inventory_image = "default_steel_block.png^default_apple.png",
+ drawtype = "nodebox",
+ tiles = {"invisible.png"},
+ paramtype = "light",
+ paramtype2 = "facedir",
+ sunlight_propagates = true,
+ node_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.4999, 0.5},
+ },
+ drop = "",
+ groups = {
+ unbreakable = 1,
+ not_in_creative_inventory = maptools.creative,
+ fall_damage_add_percent = -100,
+ bouncy = pusher_num * 100,
+ },
+ on_drop = maptools.drop_msg
+ })
end
minetest.register_node("maptools:lightbulb", {