diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2015-12-06 21:01:38 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2015-12-06 21:01:38 +0000 |
commit | a0bdf03918d0fa63062aa385660a9e903a525521 (patch) | |
tree | 6bdfbb286418bcae6095f0f6c64e03bd7779cfec /init.lua | |
parent | 804847c542d2aa25b1a675c08f2e9adda7a52010 (diff) |
New barrel model, wine glass can be placed
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 30 |
1 files changed, 27 insertions, 3 deletions
@@ -1,8 +1,28 @@ --- wine glass +--[[ wine glass minetest.register_craftitem("wine:glass_wine", { description = "Glass of Wine", inventory_image = "wine.png", on_use = minetest.item_eat(2), +})]] + +minetest.register_node("wine:glass_wine", { + description = "Glass of Wine", + drawtype = "plantlike", + visual_scale = 0.8, + tiles = {"wine.png"}, + inventory_image = "wine.png", + wield_image = "wine.png", + paramtype = "light", + is_ground_content = false, + sunlight_propagates = true, + walkable = false, + selection_box = { + type = "fixed", + fixed = {-0.2, -0.5, -0.2, 0.2, 0.3, 0.2} + }, + groups = {vessel = 1, dig_immediate = 3, attached_node = 1}, + sounds = default.node_sound_glass_defaults(), + on_use = minetest.item_eat(2), }) -- bottle of wine @@ -50,8 +70,12 @@ winebarrel_formspec = "size[8,9]" minetest.register_node("wine:wine_barrel", { description = "Winebarrel", - tiles = {"barrel_side.png", "barrel_side.png", "barrel_side.png^[transformR90", - "barrel_side.png^[transformR90", "barrel_bottom.png", "barrel_front.png"}, +-- tiles = {"barrel_side.png", "barrel_side.png", "barrel_side.png^[transformR90", +-- "barrel_side.png^[transformR90", "barrel_bottom.png", "barrel_front.png"}, + tiles = {"wine_barrel.png" }, + drawtype = "mesh", + mesh = "wine_barrel.obj", + paramtype = "light", paramtype2 = "facedir", groups = {choppy = 2, oddly_breakable_by_hand = 1}, legacy_facedir_simple = true, |