diff options
author | acmgit <undertakers_help@yahoo.com> | 2016-07-28 21:14:55 +0200 |
---|---|---|
committer | acmgit <undertakers_help@yahoo.com> | 2016-07-28 21:16:03 +0200 |
commit | c49a4564605fb2d036852718ccfdb1b770fe9c92 (patch) | |
tree | 96d1d6fc0dfb0af6a75891506c74e481e3b39382 /init.lua | |
parent | a232685e09b0c072a855bd2100117ba0f22539cf (diff) |
Billboards and Recipes added.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 52 |
1 files changed, 46 insertions, 6 deletions
@@ -1,10 +1,10 @@ -minetest.register_node("bilboard:4x6", { - description = "4x6 Bilboard", +minetest.register_node("billboard:bb_white", { + description = "Billboard white", drawtype = "signlike", - visual_scale = 5, - tiles = {"bb.png"}, - inventory_image = "bb.png", - wield_image = "bb.png", + visual_scale = 5, + tiles = {"bb_white.png"}, + inventory_image = "bb_white.png", + wield_image = "bb_white.png", wield_scale = {x=1, y=1, z=1}, paramtype = "light", paramtype2 = "wallmounted", @@ -19,3 +19,43 @@ minetest.register_node("bilboard:4x6", { legacy_wallmounted = true, }) + +minetest.register_craft({ + output = "billboard:bb_white", + recipe = { + {"group:stick", "group:stick"}, + {"default:sign_wall_wood", "wool:white"}, + {"group:stick", "group:stick"} + } +}) + +minetest.register_node("billboard:bb_yellow", { + description = "Billboard yellow", + drawtype = "signlike", + visual_scale = 5, + tiles = {"bb_yellow.png"}, + inventory_image = "bb_yellow.png", + wield_image = "bb_yellow.png", + wield_scale = {x=1, y=1, z=1}, + paramtype = "light", + paramtype2 = "wallmounted", + sunlight_propagates = true, + walkable = false, + light_source = 1, -- reflecting a bit of light might be expected + selection_box = { + type = "wallmounted", + wall_side = {-0.45, -1.5, -2.5, -.4, 1.5, 2.5}, -- NodeBox + }, + groups = {choppy=2,dig_immediate=3,attached_node=1}, + legacy_wallmounted = true, + +}) + +minetest.register_craft({ + output = "billboard:bb_yellow", + recipe = { + {"group:stick", "group:stick"}, + {"default:sign_wall_wood", "wool:yellow"}, + {"group:stick", "group:stick"} + } +}) |