1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2025-06-29 23:01:00 +02:00

change minetest. to core.

This commit is contained in:
tenplus1
2025-05-04 11:48:08 +01:00
parent 1e72348a48
commit 2b5df9bad0
51 changed files with 982 additions and 982 deletions

View File

@ -1,13 +1,13 @@
local S = minetest.get_translator("farming")
local S = core.get_translator("farming")
-- item/seed
minetest.register_craftitem(":ethereal:strawberry", {
core.register_craftitem(":ethereal:strawberry", {
description = S("Strawberry"),
inventory_image = "ethereal_strawberry.png",
groups = {compostability = 48, seed = 2, food_strawberry = 1, food_berry = 1},
on_use = minetest.item_eat(1),
on_use = core.item_eat(1),
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "ethereal:strawberry_1")
@ -43,32 +43,32 @@ local def = {
--stage 1
minetest.register_node(":ethereal:strawberry_1", table.copy(def))
core.register_node(":ethereal:strawberry_1", table.copy(def))
-- stage 2
def.tiles = {"ethereal_strawberry_2.png"}
minetest.register_node(":ethereal:strawberry_2", table.copy(def))
core.register_node(":ethereal:strawberry_2", table.copy(def))
-- stage 3
def.tiles = {"ethereal_strawberry_3.png"}
minetest.register_node(":ethereal:strawberry_3", table.copy(def))
core.register_node(":ethereal:strawberry_3", table.copy(def))
-- stage 4
def.tiles = {"ethereal_strawberry_4.png"}
minetest.register_node(":ethereal:strawberry_4", table.copy(def))
core.register_node(":ethereal:strawberry_4", table.copy(def))
-- stage 5
def.tiles = {"ethereal_strawberry_5.png"}
minetest.register_node(":ethereal:strawberry_5", table.copy(def))
core.register_node(":ethereal:strawberry_5", table.copy(def))
-- stage 6
def.tiles = {"ethereal_strawberry_6.png"}
minetest.register_node(":ethereal:strawberry_6", table.copy(def))
core.register_node(":ethereal:strawberry_6", table.copy(def))
-- stage 7
@ -79,7 +79,7 @@ def.drop = {
{items = {"ethereal:strawberry"}, rarity = 3}
}
}
minetest.register_node(":ethereal:strawberry_7", table.copy(def))
core.register_node(":ethereal:strawberry_7", table.copy(def))
-- stage 8 (final)
@ -94,7 +94,7 @@ def.drop = {
{items = {"ethereal:strawberry"}, rarity = 4},
}
}
minetest.register_node(":ethereal:strawberry_8", table.copy(def))
core.register_node(":ethereal:strawberry_8", table.copy(def))
-- add to registered_plants
@ -108,7 +108,7 @@ farming.registered_plants["ethereal:strawberry"] = {
-- mapgen
minetest.register_decoration({
core.register_decoration({
deco_type = "simple",
place_on = {
"default:dirt_with_grass", "mcl_core:dirt_with_grass", "ethereal:prairie_dirt"