Add Steel sign

This commit is contained in:
addi 2016-07-23 06:35:59 +02:00
parent 5e27234790
commit e74f54c342
5 changed files with 46 additions and 0 deletions

Binary file not shown.

View File

@ -162,6 +162,8 @@ local MODPATH = minetest.get_modpath("arrow_signs")
-- Wooden Sign
dofile(MODPATH.."/wood.lua")
-- Steel Sign
dofile(MODPATH.."/steel.lua")
--Shared Locked sign
if minetest.get_modpath("locks") then

44
steel.lua Normal file
View File

@ -0,0 +1,44 @@
--[[
Steel Arrow Sign
This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
]]
minetest.register_node("arrow_signs:steel", {
description = "Steel Arrow Sign",
drawtype = "nodebox",
node_box = arrow_signs.nodebox,
selection_box = arrow_signs.selection_box,
tiles = {"arrow_signs_steel.png^arrow_signs_steel_border.png"},
inventory_image = "arrow_signs_steel.png",
wield_image = "arrow_signs_steel.png",
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
walkable = false,
groups = {cracky = 2},
sounds = default.node_sound_defaults(),
on_place = arrow_signs.on_place,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", arrow_signs.formspec)
meta:set_string("infotext", [[""]])
end,
on_receive_fields = arrow_signs.savetext,
})
--Recipe
minetest.register_craft({
type = "shapeless",
output = "arrow_signs:steel",
recipe = {"default:sign_wall_steel", "group:stick"},
})
--Recycling
minetest.register_craft({
output = "default:sign_wall_steel",
recipe = {
{"arrow_signs:steel"},
}
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B