forked from mtcontrib/farming
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
756b4417ea
@ -15,13 +15,6 @@ minetest.override_item("default:apple", {
|
|||||||
leafdecay = 3, leafdecay_drop = 1}
|
leafdecay = 3, leafdecay_drop = 1}
|
||||||
})
|
})
|
||||||
|
|
||||||
if minetest.registered_nodes["flowers:mushroom_brown"] then
|
|
||||||
minetest.override_item("flowers:mushroom_brown", {
|
|
||||||
light_source = 1,
|
|
||||||
groups = {food_mushroom = 1, snappy = 3, attached_node = 1, flammable = 2}
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
--= Aliases
|
--= Aliases
|
||||||
|
|
||||||
-- Banana
|
-- Banana
|
||||||
|
@ -71,22 +71,22 @@ def.tiles = {"farming_melon_7.png"}
|
|||||||
minetest.register_node("farming:melon_7", table.copy(def))
|
minetest.register_node("farming:melon_7", table.copy(def))
|
||||||
|
|
||||||
-- stage 8 (final)
|
-- stage 8 (final)
|
||||||
def.drawtype = "nodebox"
|
minetest.register_node("farming:melon_8", {
|
||||||
def.description = S("Melon")
|
description = S("Melon"),
|
||||||
def.tiles = {
|
tiles = {
|
||||||
"farming_melon_top.png", "farming_melon_bottom.png", "farming_melon_side.png"
|
"farming_melon_top.png",
|
||||||
}
|
"farming_melon_bottom.png",
|
||||||
def.selection_box = {-.5, -.5, -.5, .5, .5, .5}
|
"farming_melon_side.png"
|
||||||
def.walkable = true
|
},
|
||||||
def.buildable_to = false
|
groups = {
|
||||||
def.paramtype2 = "facedir"
|
|
||||||
def.groups = {
|
|
||||||
food_melon = 1, snappy = 2, oddly_breakable_by_hand = 1,
|
food_melon = 1, snappy = 2, oddly_breakable_by_hand = 1,
|
||||||
flammable = 2, plant = 1
|
flammable = 2, plant = 1
|
||||||
}
|
},
|
||||||
def.drop = "farming:melon_8"
|
drop = "farming:melon_8",
|
||||||
def.on_place = minetest.rotate_node
|
sounds = default.node_sound_wood_defaults(),
|
||||||
minetest.register_node("farming:melon_8", table.copy(def))
|
paramtype2 = "facedir",
|
||||||
|
on_place = minetest.rotate_node
|
||||||
|
})
|
||||||
|
|
||||||
-- add to registered_plants
|
-- add to registered_plants
|
||||||
farming.registered_plants["farming:melon"] = {
|
farming.registered_plants["farming:melon"] = {
|
||||||
|
@ -183,7 +183,7 @@ minetest.register_node("farming:pumpkin_8", {
|
|||||||
description = S("Pumpkin"),
|
description = S("Pumpkin"),
|
||||||
tiles = {
|
tiles = {
|
||||||
"farming_pumpkin_top.png",
|
"farming_pumpkin_top.png",
|
||||||
"farming_pumpkin_top.png",
|
"farming_pumpkin_bottom.png",
|
||||||
"farming_pumpkin_side.png"
|
"farming_pumpkin_side.png"
|
||||||
},
|
},
|
||||||
groups = {
|
groups = {
|
||||||
@ -191,7 +191,9 @@ minetest.register_node("farming:pumpkin_8", {
|
|||||||
flammable = 2, plant = 1
|
flammable = 2, plant = 1
|
||||||
},
|
},
|
||||||
drop = "farming:pumpkin_8",
|
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")
|
minetest.register_alias("farming:pumpkin", "farming:pumpkin_8")
|
||||||
|
@ -42,15 +42,26 @@ minetest.register_node("farming:soy_sauce", {
|
|||||||
sounds = default.node_sound_glass_defaults()
|
sounds = default.node_sound_glass_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- river water availability check
|
||||||
|
local bucket_water
|
||||||
|
|
||||||
|
if minetest.get_mapgen_setting("mgname") == "valleys"
|
||||||
|
or minetest.get_modpath("ethereal") then
|
||||||
|
bucket_water = "bucket:bucket_river_water"
|
||||||
|
else
|
||||||
|
bucket_water = "bucket:bucket_water"
|
||||||
|
end
|
||||||
|
|
||||||
|
-- soy sauce recipe
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "farming:soy_sauce",
|
output = "farming:soy_sauce",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"group:food_soy", "group:food_salt", "group:food_soy"},
|
{"group:food_soy", "group:food_salt", "group:food_soy"},
|
||||||
{"", "group:food_juicer", ""},
|
{"", "group:food_juicer", ""},
|
||||||
{"", "bucket:bucket_river_water", "vessels:glass_bottle"}
|
{"", bucket_water, "vessels:glass_bottle"}
|
||||||
},
|
},
|
||||||
replacements = {
|
replacements = {
|
||||||
{"bucket:bucket_river_water", "bucket:bucket_empty"},
|
{bucket_water, "bucket:bucket_empty"},
|
||||||
{"group:food_juicer", "farming:juicer"}
|
{"group:food_juicer", "farming:juicer"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
2
hoes.lua
2
hoes.lua
@ -361,7 +361,7 @@ farming.add_to_scythe_not_drops = function(item)
|
|||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_tool("farming:scythe_mithril", {
|
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",
|
inventory_image = "farming_scythe_mithril.png",
|
||||||
sound = {breaks = "default_tool_breaks"},
|
sound = {breaks = "default_tool_breaks"},
|
||||||
|
|
||||||
|
BIN
textures/farming_pumpkin_bottom.png
Normal file
BIN
textures/farming_pumpkin_bottom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 258 B |
Loading…
Reference in New Issue
Block a user