From 86ad3e7c6a37699f7f8297a387bf08af74e36629 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 1 Apr 2016 22:10:20 -0400 Subject: Update all core mods --- prefab/description.txt | 1 + prefab/init.lua | 9 +++++++-- prefab/mod.conf | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 prefab/description.txt create mode 100644 prefab/mod.conf (limited to 'prefab') diff --git a/prefab/description.txt b/prefab/description.txt new file mode 100644 index 0000000..74d899a --- /dev/null +++ b/prefab/description.txt @@ -0,0 +1 @@ +Adds pre-fabricated concrete elements. diff --git a/prefab/init.lua b/prefab/init.lua index d1c7918..abc88bd 100644 --- a/prefab/init.lua +++ b/prefab/init.lua @@ -7,6 +7,11 @@ dofile(minetest.get_modpath("prefab").."/other.lua") print("Prefab Other loaded!") print("Prefab Loaded!") +local creative = minetest.setting_getbool("creative_mode") + +local damage = 30 +if creative then damage = 0 end + minetest.register_node("prefab:concrete", { drawtype = "normal", description = "Block of Prefab Concrete", @@ -333,7 +338,7 @@ minetest.register_node("prefab:electric_fence", { sunlight_propagates = true, paramtype = "light", paramtype2 = "facedir", - + damage_per_second = damage, node_box = { type = "fixed", fixed = { @@ -358,7 +363,7 @@ minetest.register_node("prefab:electric_fence_corner", { sunlight_propagates = true, paramtype = "light", paramtype2 = "facedir", - + damage_per_second = damage, node_box = { type = "fixed", fixed = { diff --git a/prefab/mod.conf b/prefab/mod.conf new file mode 100644 index 0000000..3843864 --- /dev/null +++ b/prefab/mod.conf @@ -0,0 +1 @@ +name = prefab -- cgit v1.2.3