Mod (danger) sign added

master
Pitriss 2013-10-10 14:29:51 +02:00
parent 6c82b70b38
commit 4a09e8441b
27 changed files with 696 additions and 0 deletions

696
mods/sign/init.lua Normal file
View File

@ -0,0 +1,696 @@
--This mod is WTFPL
print("[Sign] v1.0")
--Node Registering
minetest.register_node("sign:radioactive", {
description = "Radiation Danger Sign",
drawtype = "signlike",
tiles = { "radioactive.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:biohazard", {
description = "BioHazard Danger Sign",
drawtype = "signlike",
tiles = { "biohazard.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:corrosive", {
description = "Corrosive Substances Sign",
drawtype = "signlike",
tiles = { "corrosive.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:irritant", {
description = "Irritants Sign",
drawtype = "signlike",
tiles = { "irritant.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:oxidiser", {
description = "Oxidising Substances Sign",
drawtype = "signlike",
tiles = { "oxidiser.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:toxic", {
description = "Toxic Substances Sign",
drawtype = "signlike",
tiles = { "toxic.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:deadend", {
description = "Dead End Sign",
drawtype = "signlike",
tiles = { "deadend.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:nosmoking", {
description = "No Smoking Sign",
drawtype = "signlike",
tiles = { "nosmoking.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:train", {
description = "Train Warning Sign",
drawtype = "signlike",
tiles = { "train.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:mineshaft", {
description = "Mineshaft Warning Sign",
drawtype = "signlike",
tiles = { "mineshaft.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:deepwater", {
description = "Deep Water Sign",
drawtype = "signlike",
tiles = { "deepwater.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:waterobstructions", {
description = "Underwater Obstructions Sign",
drawtype = "signlike",
tiles = { "waterobstructions.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:flammable", {
description = "Flammable Substances Sign",
tiles = { "flammable.png" },
drawtype = "signlike",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:electricity", {
description = "Electricity Warning Sign",
tiles = { "electricity.png" },
drawtype = "signlike",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:falling", {
description = "Falling Danger Sign",
tiles = { "falling.png" },
drawtype = "signlike",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:mines", {
description = "Mines Danger Sign",
tiles = { "mines.png" },
drawtype = "signlike",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:noentry", {
description = "No Entry Sign",
tiles = { "noentry.png" },
drawtype = "signlike",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:heat", {
description = "Heat Danger Sign",
drawtype = "signlike",
tiles = { "heat.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:machinery", {
description = "Machinery Danger Sign",
drawtype = "signlike",
tiles = { "machinery.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:noise", {
description = "Loud Noise Sign",
drawtype = "signlike",
tiles = { "noise.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:carcinogen", {
description = "Carcinogen Danger Sign",
drawtype = "signlike",
tiles = { "carcinogen.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:fallobject", {
description = "Falling Objects Danger Sign",
drawtype = "signlike",
tiles = { "fallobject.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:mob", {
description = "Mob Danger Sign",
drawtype = "signlike",
tiles = { "mob.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:gas", {
description = "Compressed Gas Danger Sign",
drawtype = "signlike",
tiles = { "gas.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
minetest.register_node("sign:slipfloor", {
description = "Slippery Floor Sign",
drawtype = "signlike",
tiles = { "slipfloor.png" },
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "wallmounted",
--wall_top = <default>
--wall_bottom = <default>
--wall_side = <default>
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
})
--Crafting
minetest.register_craft({
output = 'sign:radioactive',
recipe = {
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
{'', 'default:steel_ingot', ''},
}
})
minetest.register_craft({
output = 'sign:biohazard',
recipe = {
{'', '', ''},
{'', 'sign:radioactive', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:corrosive',
recipe = {
{'', '', ''},
{'', 'sign:biohazard', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:irritant',
recipe = {
{'', '', ''},
{'', 'sign:corrosive', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:oxidiser',
recipe = {
{'', '', ''},
{'', 'sign:irritant', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:toxic',
recipe = {
{'', '', ''},
{'', 'sign:oxidiser', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:deadend',
recipe = {
{'', '', ''},
{'', 'sign:toxic', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:nosmoking',
recipe = {
{'', '', ''},
{'', 'sign:deadend', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:train',
recipe = {
{'', '', ''},
{'', 'sign:nosmoking', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:mineshaft',
recipe = {
{'', '', ''},
{'', 'sign:train', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:deepwater',
recipe = {
{'', '', ''},
{'', 'sign:mineshaft', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:waterobstructions',
recipe = {
{'', '', ''},
{'', 'sign:deepwater', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:flammable',
recipe = {
{'', '', ''},
{'', 'sign:waterobstructions', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:electricity',
recipe = {
{'', '', ''},
{'', 'sign:flammable', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:falling',
recipe = {
{'', '', ''},
{'', 'sign:electricity', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:mines',
recipe = {
{'', '', ''},
{'', 'sign:falling', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:noentry',
recipe = {
{'', '', ''},
{'', 'sign:mines', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:heat',
recipe = {
{'', '', ''},
{'', 'sign:noentry', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:machinery',
recipe = {
{'', '', ''},
{'', 'sign:heat', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:noise',
recipe = {
{'', '', ''},
{'', 'sign:machinery', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:carcinogen',
recipe = {
{'', '', ''},
{'', 'sign:noise', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:fallobject',
recipe = {
{'', '', ''},
{'', 'sign:carcinogen', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:mob',
recipe = {
{'', '', ''},
{'', 'sign:fallobject', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:gas',
recipe = {
{'', '', ''},
{'', 'sign:mob', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:slipfloor',
recipe = {
{'', '', ''},
{'', 'sign:gas', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'sign:radioactive',
recipe = {
{'', '', ''},
{'', 'sign:slipfloor', ''},
{'', '', ''},
}
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

BIN
mods/sign/textures/gas.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

BIN
mods/sign/textures/heat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

BIN
mods/sign/textures/mob.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB