1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2025-07-03 00:30:39 +02:00

most recipes work with mineclone

This commit is contained in:
tenplus1
2023-09-01 10:04:33 +01:00
parent fd58dcaab1
commit 5107d18079
48 changed files with 715 additions and 659 deletions

View File

@ -5,6 +5,7 @@
]]
local S = farming.translate
local a = farming.recipe_items
-- place beans
local function place_beans(itemstack, placer, pointed_thing, plantname)
@ -71,7 +72,7 @@ end
minetest.register_craftitem("farming:beans", {
description = S("Green Beans"),
inventory_image = "farming_beans.png",
groups = {compostability = 65, seed = 2, food_beans = 1, flammable = 2},
groups = {compostability = 48, seed = 2, food_beans = 1, flammable = 2},
on_use = minetest.item_eat(1),
on_place = function(itemstack, placer, pointed_thing)
return place_beans(itemstack, placer, pointed_thing, "farming:beanpole_1")
@ -80,7 +81,7 @@ minetest.register_craftitem("farming:beans", {
-- beans can be used for green dye
minetest.register_craft({
output = "dye:green",
output = a.dye_green,
recipe = {{"farming:beans"}}
})
@ -159,8 +160,8 @@ minetest.register_craft({
output = "farming:beanpole",
recipe = {
{"", "", ""},
{"default:stick", "", "default:stick"},
{"default:stick", "", "default:stick"}
{"group:stick", "", "group:stick"},
{"group:stick", "", "group:stick"}
}
})
@ -249,7 +250,7 @@ minetest.register_node("farming:beanbush", {
},
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 = farming.sounds.node_sound_leaves_defaults()
@ -258,7 +259,7 @@ minetest.register_node("farming:beanbush", {
-- mapgen
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
sidelen = 16,
noise_params = {
offset = 0,