mirror of
https://codeberg.org/tenplus1/farming.git
synced 2025-06-29 14:50:52 +02:00
added spinach; eggplant; asparagus; Chili Powder; new Onigiri (thanks Atlante for new textures), mapgen now inside own crop file, added new lucky blocks
This commit is contained in:
@ -33,6 +33,22 @@ minetest.register_craft({
|
||||
recipe = {{"farming:chili_pepper"}}
|
||||
})
|
||||
|
||||
-- chili powder
|
||||
minetest.register_craftitem("farming:chili_powder", {
|
||||
description = S("Chili Powder"),
|
||||
on_use = minetest.item_eat(-1),
|
||||
inventory_image = "farming_chili_powder.png"
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:chili_powder",
|
||||
recipe = {
|
||||
{"farming:chili_pepper", "farming:mortar_pestle"}
|
||||
},
|
||||
replacements = {{"farming:mortar_pestle", "farming:mortar_pestle"}}
|
||||
})
|
||||
|
||||
|
||||
-- chili definition
|
||||
local def = {
|
||||
drawtype = "plantlike",
|
||||
@ -96,3 +112,23 @@ farming.registered_plants["farming:chili_pepper"] = {
|
||||
maxlight = farming.max_light,
|
||||
steps = 8
|
||||
}
|
||||
|
||||
-- mapgen
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass", "default:dirt_with_rainforest_litter"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = 0,
|
||||
scale = farming.chili,
|
||||
spread = {x = 100, y = 100, z = 100},
|
||||
seed = 760,
|
||||
octaves = 3,
|
||||
persist = 0.6
|
||||
},
|
||||
y_min = 5,
|
||||
y_max = 35,
|
||||
decoration = {"farming:chili_8"},
|
||||
spawn_by = "group:tree",
|
||||
num_spawn_by = 1
|
||||
})
|
||||
|
Reference in New Issue
Block a user