aqua_farming-cd2025/sea_strawberry.lua

64 lines
1.8 KiB
Lua
Raw Normal View History

2020-03-14 05:51:10 +01:00
local S = aqua_farming.S
local step = 8
local light = 8
local del = 10
local chan = 15
2020-03-23 20:30:04 +01:00
local name = "aqua_farming:sea_strawberry"
2020-03-14 17:28:20 +01:00
local desc = S("Sea Strawberry")
2020-03-14 05:51:10 +01:00
2020-03-23 20:30:04 +01:00
local def = {
basenode = "default:dirt",
nodename = name,
description = desc,
steps = step,
min_light = light,
delay = del,
chance = chan,
drop = {items = {
{items = {name .. "_seed 2"}},
{items = {name .. "_item 4"}},
{items = {name .. "_seed 3", rarity = 15}},
},
},
} -- def
aqua_farming.register_plant(def)
minetest.register_craftitem(name .. "_item", {
2020-03-14 17:28:20 +01:00
description = desc,
2020-04-01 02:08:07 +02:00
groups = {food = 1, food_vegan = 1, seafood = 1, food_strawberry = 1},
2020-03-23 20:30:04 +01:00
inventory_image = "aqua_farming_" .. name:split(":")[2] .. "_item.png",
2020-03-14 05:51:10 +01:00
on_use = minetest.item_eat(3),
})
2020-03-23 20:30:04 +01:00
dofile(aqua_farming.modpath .. "/mapgen_" .. name:split(":")[2] .. ".lua")
2020-03-14 05:51:10 +01:00
2022-02-09 16:59:38 +01:00
if(minetest.get_modpath("signs_bot")) then
local fs = signs_bot.register_farming_plant
--local ts = signs_bot.register_tree_saplings
--local fs = signs_bot.register_farming_seed
--local fc = signs_bot.register_farming_crop
fs(name .. "_seed", name .. "_1", name .. "_" .. step)
--fc(name .. "_" .. step, name .. "_item", name .. "_seed")
end
--[[
2020-03-25 04:44:51 +01:00
if(signs_bot) then
local fs = signs_bot.register_farming_seed
local fc = signs_bot.register_farming_crop
2020-04-02 01:19:35 +02:00
2020-03-25 04:44:51 +01:00
fs(name .. "_seed", name .. "_1")
fc(name .. "_" .. step, name .. "_item", name .. "_seed")
end
2022-02-09 16:59:38 +01:00
]]--
2020-03-25 04:44:51 +01:00
2020-04-02 00:58:14 +02:00
dofile(aqua_farming.modpath .. "/sea_strawberry_recipes.lua")
2020-03-14 17:28:20 +01:00
aqua_farming.report(" module " .. name .. ".lua loaded.")