summaryrefslogtreecommitdiff
path: root/corn.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-04-29 20:35:33 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-04-29 20:35:33 +0100
commitd2a9e695e104aa7020b24a9693a2d3288d1ff59b (patch)
tree66a665e8401c090958ec0c209a445d00d16d96b6 /corn.lua
parent34f61731fa90275d479d8cd76943bc71e816445e (diff)
Ethanol Bottle can now be placed
Diffstat (limited to 'corn.lua')
-rw-r--r--corn.lua16
1 files changed, 14 insertions, 2 deletions
diff --git a/corn.lua b/corn.lua
index 3c27ea3..75a4278 100644
--- a/corn.lua
+++ b/corn.lua
@@ -31,9 +31,21 @@ minetest.register_craft({
})
-- ethanol (thanks to JKMurray for this idea)
-minetest.register_craftitem("farming:bottle_ethanol", {
- description = S("Bottle of Ethanol"),
+minetest.register_node("farming:bottle_ethanol", {
+ description = "Bottle of Ethanol",
+ drawtype = "plantlike",
+ tiles = {"farming_bottle_ethanol.png"},
inventory_image = "farming_bottle_ethanol.png",
+ wield_image = "farming_bottle_ethanol.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( {