summaryrefslogtreecommitdiff
path: root/hemp.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-04-30 20:34:01 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-04-30 20:34:01 +0100
commitd8d2fe86d6856ed90b8faea122280ce37b19cd81 (patch)
treef04ef95b2b286a2016294e1274a19d7de9f63a55 /hemp.lua
parentd2a9e695e104aa7020b24a9693a2d3288d1ff59b (diff)
Make hemp oil bottle placable
Diffstat (limited to 'hemp.lua')
-rw-r--r--hemp.lua16
1 files changed, 14 insertions, 2 deletions
diff --git a/hemp.lua b/hemp.lua
index 7bb2e2b..29b6a42 100644
--- a/hemp.lua
+++ b/hemp.lua
@@ -26,9 +26,21 @@ minetest.register_craftitem("farming:hemp_leaf", {
})
-- hemp oil
-minetest.register_craftitem("farming:hemp_oil", {
- description = S("Hemp Oil"),
+minetest.register_node("farming:hemp_oil", {
+ description = S("Bottle of Hemp Oil"),
+ drawtype = "plantlike",
+ tiles = {"farming_hemp_oil.png"},
inventory_image = "farming_hemp_oil.png",
+ wield_image = "farming_hemp_oil.png",
+ paramtype = "light",
+ is_ground_content = false,
+ walkable = false,
+ selection_box = {
+ type = "fixed",
+ fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
+ },
+ groups = {vessel = 1, dig_immediate = 3, attached_node = 1},
+ sounds = default.node_sound_glass_defaults(),
})
minetest.register_craft( {