From d8d2fe86d6856ed90b8faea122280ce37b19cd81 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 30 Apr 2017 20:34:01 +0100 Subject: [PATCH] Make hemp oil bottle placable --- corn.lua | 2 +- hemp.lua | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/corn.lua b/corn.lua index 75a4278..402ec82 100644 --- a/corn.lua +++ b/corn.lua @@ -32,7 +32,7 @@ minetest.register_craft({ -- ethanol (thanks to JKMurray for this idea) minetest.register_node("farming:bottle_ethanol", { - description = "Bottle of Ethanol", + description = S("Bottle of Ethanol"), drawtype = "plantlike", tiles = {"farming_bottle_ethanol.png"}, inventory_image = "farming_bottle_ethanol.png", 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( {