mirror of
https://codeberg.org/tenplus1/farming.git
synced 2025-06-29 23:01:00 +02:00
add initial MineClone2 support (thx usrib)
This commit is contained in:
@ -67,7 +67,7 @@ minetest.register_craftitem("farming:grapes", {
|
||||
description = S("Grapes"),
|
||||
inventory_image = "farming_grapes.png",
|
||||
on_use = minetest.item_eat(2),
|
||||
groups = {seed = 2, food_grapes = 1, flammable = 3},
|
||||
groups = {compostability = 65, seed = 2, food_grapes = 1, flammable = 3},
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return place_grapes(itemstack, placer, pointed_thing, "farming:grapes_1")
|
||||
end
|
||||
@ -75,7 +75,7 @@ minetest.register_craftitem("farming:grapes", {
|
||||
|
||||
-- grapes can be used for violet dye
|
||||
minetest.register_craft({
|
||||
output = "dye:violet",
|
||||
output = farming.mcl and "mcl_dye:violet" or "dye:violet",
|
||||
recipe = {{"farming:grapes"}}
|
||||
})
|
||||
|
||||
@ -92,8 +92,8 @@ minetest.register_node("farming:trellis", {
|
||||
sunlight_propagates = true,
|
||||
drop = "farming:trellis",
|
||||
selection_box = farming.select,
|
||||
groups = {snappy = 3, flammable = 2, attached_node = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
groups = {handy = 1, snappy = 3, flammable = 2, attached_node = 1},
|
||||
sounds = farming.sounds.node_sound_leaves_defaults(),
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
|
||||
@ -181,10 +181,10 @@ local def = {
|
||||
},
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 3, not_in_creative_inventory = 1,
|
||||
handy = 1, snappy = 3, flammable = 3, not_in_creative_inventory = 1,
|
||||
attached_node = 1, growing = 1, plant = 1
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults()
|
||||
sounds = farming.sounds.node_sound_leaves_defaults()
|
||||
}
|
||||
|
||||
-- stage 1
|
||||
@ -256,10 +256,10 @@ minetest.register_node("farming:grapebush", {
|
||||
},
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
handy = 1, snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
not_in_creative_inventory = 1
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults()
|
||||
sounds = farming.sounds.node_sound_leaves_defaults()
|
||||
})
|
||||
|
||||
-- mapgen
|
||||
|
Reference in New Issue
Block a user