diff options
author | Brandon <brandon@bremaweb.com> | 2013-08-17 22:27:13 -0500 |
---|---|---|
committer | Brandon <brandon@bremaweb.com> | 2013-08-17 22:27:13 -0500 |
commit | a96edfbbbec85c3219046c37af50d0af3017522a (patch) | |
tree | 4a304497b713ebd7fb7ffebb81d3b49693103cc0 | |
parent | fa897b60cf15e18c60787d09997aa44b9af03727 (diff) |
door blue texture, add unlocked sign
-rw-r--r-- | init.lua | 47 | ||||
-rw-r--r-- | textures/door_blue.png | bin | 0 -> 152 bytes |
2 files changed, 45 insertions, 2 deletions
@@ -363,8 +363,51 @@ end -- End of fix ---landrush.register_claimnode("landclaim", "landrush_landclaim.png") ---landrush.register_claimnode("landclaim_b", "landrush_landclaim.png") +-- create a new type of sign that is not protected by landrush mod +minetest.register_node("landrush:unlocked_sign", { + description = "Unprotected Sign", + drawtype = "signlike", + tiles = {"default_sign_wall.png"}, + inventory_image = "default_sign_wall.png", + wield_image = "default_sign_wall.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, + sounds = default.node_sound_defaults(), + on_construct = function(pos) + --local n = minetest.get_node(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec", "field[text;;${text}]") + meta:set_string("infotext", "\"\"") + end, + on_receive_fields = function(pos, formname, fields, sender) + local meta = minetest.get_meta(pos) + fields.text = fields.text or "" + print((sender:get_player_name() or "").." wrote \""..fields.text.. + "\" to sign at "..minetest.pos_to_string(pos)) + meta:set_string("text", fields.text) + meta:set_string("infotext", '"'..fields.text..'"') + end, +}) + + +minetest.register_craft({ + output = 'landrush:unlocked_sign', + recipe = { + {'default:wood','default:wood','default:wood'}, + {'default:wood','default:wood','landrush:landclaim'}, + {'','default:stick',''} + } +}) minetest.register_entity("landrush:showarea",{ on_activate = function(self, staticdata, dtime_s) diff --git a/textures/door_blue.png b/textures/door_blue.png Binary files differnew file mode 100644 index 0000000..ab3d8aa --- /dev/null +++ b/textures/door_blue.png |