summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2015-12-06 21:01:38 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2015-12-06 21:01:38 +0000
commita0bdf03918d0fa63062aa385660a9e903a525521 (patch)
tree6bdfbb286418bcae6095f0f6c64e03bd7779cfec /init.lua
parent804847c542d2aa25b1a675c08f2e9adda7a52010 (diff)
New barrel model, wine glass can be placed
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua30
1 files changed, 27 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 3793536..e4d1015 100644
--- a/init.lua
+++ b/init.lua
@@ -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,