diff --git a/crops/melon.lua b/crops/melon.lua index 4c199da..66decdc 100644 --- a/crops/melon.lua +++ b/crops/melon.lua @@ -71,22 +71,22 @@ def.tiles = {"farming_melon_7.png"} minetest.register_node("farming:melon_7", table.copy(def)) -- stage 8 (final) -def.drawtype = "nodebox" -def.description = S("Melon") -def.tiles = { - "farming_melon_top.png", "farming_melon_bottom.png", "farming_melon_side.png" -} -def.selection_box = {-.5, -.5, -.5, .5, .5, .5} -def.walkable = true -def.buildable_to = false -def.paramtype2 = "facedir" -def.groups = { - food_melon = 1, snappy = 2, oddly_breakable_by_hand = 1, - flammable = 2, plant = 1 -} -def.drop = "farming:melon_8" -def.on_place = minetest.rotate_node -minetest.register_node("farming:melon_8", table.copy(def)) +minetest.register_node("farming:melon_8", { + description = S("Melon"), + tiles = { + "farming_melon_top.png", + "farming_melon_bottom.png", + "farming_melon_side.png" + }, + groups = { + food_melon = 1, snappy = 2, oddly_breakable_by_hand = 1, + flammable = 2, plant = 1 + }, + drop = "farming:melon_8", + sounds = default.node_sound_wood_defaults(), + paramtype2 = "facedir", + on_place = minetest.rotate_node +}) -- add to registered_plants farming.registered_plants["farming:melon"] = { diff --git a/crops/pumpkin.lua b/crops/pumpkin.lua index 0007ac7..2829d47 100644 --- a/crops/pumpkin.lua +++ b/crops/pumpkin.lua @@ -183,7 +183,7 @@ minetest.register_node("farming:pumpkin_8", { description = S("Pumpkin"), tiles = { "farming_pumpkin_top.png", - "farming_pumpkin_top.png", + "farming_pumpkin_bottom.png", "farming_pumpkin_side.png" }, groups = { @@ -191,7 +191,9 @@ minetest.register_node("farming:pumpkin_8", { flammable = 2, plant = 1 }, drop = "farming:pumpkin_8", - sounds = default.node_sound_wood_defaults() + sounds = default.node_sound_wood_defaults(), + paramtype2 = "facedir", + on_place = minetest.rotate_node }) minetest.register_alias("farming:pumpkin", "farming:pumpkin_8") diff --git a/hoes.lua b/hoes.lua index b7dcfd9..9340d55 100644 --- a/hoes.lua +++ b/hoes.lua @@ -361,7 +361,7 @@ farming.add_to_scythe_not_drops = function(item) end minetest.register_tool("farming:scythe_mithril", { - description = S("Mithril Scythe (Right-click to harvest and replant crops)"), + description = S("Mithril Scythe (Use to harvest and replant crops)"), inventory_image = "farming_scythe_mithril.png", sound = {breaks = "default_tool_breaks"}, diff --git a/textures/farming_pumpkin_bottom.png b/textures/farming_pumpkin_bottom.png new file mode 100644 index 0000000..b23d241 Binary files /dev/null and b/textures/farming_pumpkin_bottom.png differ