added apple
This commit is contained in:
parent
b00dee4b8d
commit
c0837e4144
@ -53,7 +53,6 @@ minetest.override_item("default:plant_grass", {drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {'farming:sugarcane'},rarity = 20},
|
||||
{items = {'farming:wheat_seeds'},rarity = 5},
|
||||
{items = {'default:plant_grass'}},
|
||||
}
|
||||
}})
|
||||
@ -62,7 +61,6 @@ minetest.override_item("default:plant_grass_2", {drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {'farming:wheat_seeds'},rarity = 5},
|
||||
{items = {'farming:sugarcane'},rarity = 20},
|
||||
{items = {'default:plant_grass'}},
|
||||
}
|
||||
}})
|
||||
@ -71,7 +69,6 @@ minetest.override_item("default:plant_grass_3", {drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {'farming:wheat_seeds'},rarity = 5},
|
||||
{items = {'farming:sugarcane'},rarity = 20},
|
||||
{items = {'default:plant_grass'}},
|
||||
}
|
||||
}})
|
||||
@ -80,7 +77,6 @@ minetest.override_item("default:plant_grass_4", {drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {'farming:wheat_seeds'},rarity = 5},
|
||||
{items = {'farming:sugarcane'},rarity = 20},
|
||||
{items = {'default:plant_grass'}},
|
||||
}
|
||||
}})
|
||||
@ -89,13 +85,24 @@ minetest.override_item("default:plant_grass_5", {drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {'farming:wheat_seeds'},rarity = 5},
|
||||
{items = {'farming:sugarcane'},rarity = 20},
|
||||
{items = {'default:plant_grass'}},
|
||||
}
|
||||
}})
|
||||
|
||||
-- other plants
|
||||
|
||||
minetest.register_node("farming:apple", {
|
||||
description = "Apple",
|
||||
tiles = {"farming_apple.png"},
|
||||
drawtype = "plantlike",
|
||||
paramtype = "light",
|
||||
inventory_image = "farming_apple.png",
|
||||
groups = {crumbly=3},
|
||||
walkable = false,
|
||||
on_use = minetest.item_eat(2),
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("farming:sugarcane", {
|
||||
description = "Sugarcane",
|
||||
tiles = {"farming_sugarcane.png"},
|
||||
@ -108,7 +115,7 @@ minetest.register_node("farming:sugarcane", {
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"farming:sugarcane"},
|
||||
neighbors = {"default:dirt", "default:grass"},
|
||||
neighbors = {"default:dirt", "default:grass", "default:sand"},
|
||||
interval = 10.0,
|
||||
chance = 5,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
@ -117,6 +124,21 @@ minetest.register_abm({
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"default:sand"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.04,
|
||||
biomes = {
|
||||
"beach"
|
||||
},
|
||||
spawn_by = "default:water_source",
|
||||
num_spawn_by = 1,
|
||||
y_min = 0,
|
||||
y_max = 31000,
|
||||
decoration = "farming:sugarcane",
|
||||
})
|
||||
|
||||
minetest.register_node("farming:cactus", {
|
||||
description = "Cactus",
|
||||
tiles = {"farming_cactus_top.png", "farming_cactus_top.png", "farming_cactus.png"},
|
||||
|
BIN
mods/farming/textures/farming_apple.png
Normal file
BIN
mods/farming/textures/farming_apple.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 314 B |
Loading…
x
Reference in New Issue
Block a user