Add Jungle tree with Cocoa fruit and move seeds to decorations
parent
1b224cab3a
commit
4fe01b8a1f
47
README.md
47
README.md
|
@ -175,35 +175,44 @@ Cactus with Fruits can be found in desert. You will need axe to harvest the frui
|
|||
|
||||
Strawberries can be found in coniferous forest. They drop seeds and strawberries.
|
||||
|
||||
## Seeds
|
||||
## Biomes
|
||||
|
||||
**Obsidian Wart**
|
||||
**Grassland**
|
||||
|
||||
- red mushroom
|
||||
- Melon
|
||||
- Carrot
|
||||
|
||||
**Beetroot and Pumpkin**
|
||||
**Coniferous Forest**
|
||||
|
||||
- dry grass
|
||||
- Strawberry
|
||||
|
||||
**Carrot**
|
||||
**Desert**
|
||||
|
||||
- grass
|
||||
- Large Cactus with Fruit (dragon fruit)
|
||||
|
||||
**Potato**
|
||||
**Savanna**
|
||||
|
||||
- jungle grass
|
||||
- Kiwi Tree
|
||||
- Coffee
|
||||
|
||||
**Coffee**
|
||||
**Rainforest**
|
||||
|
||||
- bush stem
|
||||
- Cocoa
|
||||
|
||||
**Corn and Melon**
|
||||
**Underground**
|
||||
|
||||
- dry shrub
|
||||
- Obsidian Wart (below -1000)
|
||||
|
||||
**Cocoa bean**
|
||||
**Sandstone desert**
|
||||
|
||||
- Corn
|
||||
- Pumpkin
|
||||
|
||||
**Cold desert**
|
||||
|
||||
- Potato
|
||||
- Beetroot
|
||||
|
||||
- bush leaves
|
||||
|
||||
Seeds can be found also in dungeon chests.
|
||||
|
||||
|
@ -322,6 +331,9 @@ GNU Lesser General Public License v2.1 or later (see included LICENSE file)
|
|||
- x_farming_strawberry_2.png (modified by SaKeL)
|
||||
- x_farming_strawberry_3.png (modified by SaKeL)
|
||||
- x_farming_strawberry_4.png (modified by SaKeL)
|
||||
- x_farming_jungle_tree.png (Chorus edit)
|
||||
- x_farming_jungle_tree_top.png (Chorus edit)
|
||||
- x_farming_jungle_wood.png (Chorus edit)
|
||||
|
||||
**LGPL-2.1-or-later, by SaKeL**
|
||||
|
||||
|
@ -357,10 +369,11 @@ GNU Lesser General Public License v2.1 or later (see included LICENSE file)
|
|||
- x_farming_large_cactus_with_fruit_seedling
|
||||
- x_farming_strawberry_seed.png
|
||||
- x_farming_strawberry.png
|
||||
|
||||
- x_farming_jungleleaves.png
|
||||
|
||||
**MIT**
|
||||
- x_farming_kiwi_leaves.png
|
||||
- x_farming_kiwi_leaves.png (MTG - modified by SaKeL)
|
||||
- x_farming_junglesapling.png (MTG - modified by SaKeL)
|
||||
|
||||
**Created by GeMinecraft and edited by TenPlus1**
|
||||
|
||||
|
|
10
api.lua
10
api.lua
|
@ -150,9 +150,17 @@ end
|
|||
-- Grow Large Cactus
|
||||
|
||||
function x_farming.grow_large_cactus(pos)
|
||||
print(dump(pos))
|
||||
local path = minetest.get_modpath("x_farming") ..
|
||||
"/schematics/x_farming_large_cactus_from_seedling.mts"
|
||||
minetest.place_schematic({x = pos.x, y = pos.y, z = pos.z},
|
||||
path, "random", nil, false, "place_center_x, place_center_z")
|
||||
end
|
||||
|
||||
-- Grow Jungle Tree
|
||||
|
||||
function x_farming.grow_jungle_tree(pos)
|
||||
local path = minetest.get_modpath("x_farming") ..
|
||||
"/schematics/x_farming_jungle_tree_with_cocoa_from_sapling.mts"
|
||||
minetest.place_schematic({x = pos.x - 2, y = pos.y - 1, z = pos.z - 2},
|
||||
path, nil, nil, false)
|
||||
end
|
||||
|
|
20
beetroot.lua
20
beetroot.lua
|
@ -20,3 +20,23 @@ minetest.override_item("x_farming:beetroot", {
|
|||
description = "Beetroot" .. "\n" .. minetest.colorize(x_farming.colors.brown, "Hunger: 3"),
|
||||
on_use = minetest.item_eat(3),
|
||||
})
|
||||
|
||||
minetest.register_decoration({
|
||||
name = "x_farming:beetroot_8",
|
||||
deco_type = "simple",
|
||||
place_on = {"default:silver_sand"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = -0.1,
|
||||
scale = 0.1,
|
||||
spread = {x = 50, y = 50, z = 50},
|
||||
seed = 4242,
|
||||
octaves = 3,
|
||||
persist = 0.7
|
||||
},
|
||||
biomes = {"cold_desert"},
|
||||
y_max = 31000,
|
||||
y_min = 1,
|
||||
decoration = "x_farming:beetroot_8",
|
||||
param2 = 3,
|
||||
})
|
20
carrot.lua
20
carrot.lua
|
@ -20,3 +20,23 @@ minetest.override_item("x_farming:carrot", {
|
|||
description = "Carrot" .. "\n" .. minetest.colorize(x_farming.colors.brown, "Hunger: 3"),
|
||||
on_use = minetest.item_eat(3),
|
||||
})
|
||||
|
||||
minetest.register_decoration({
|
||||
name = "x_farming:carrot_8",
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = -0.1,
|
||||
scale = 0.1,
|
||||
spread = {x = 50, y = 50, z = 50},
|
||||
seed = 4242,
|
||||
octaves = 3,
|
||||
persist = 0.7
|
||||
},
|
||||
biomes = {"grassland"},
|
||||
y_max = 31000,
|
||||
y_min = 1,
|
||||
decoration = "x_farming:carrot_8",
|
||||
param2 = 3,
|
||||
})
|
||||
|
|
148
cocoa.lua
148
cocoa.lua
|
@ -22,7 +22,7 @@ function x_farming.grow_cocoa_plant(pos, elapsed)
|
|||
local direction = minetest.facedir_to_dir(node.param2)
|
||||
local below_pos = vector.add(pos, direction)
|
||||
local below = minetest.get_node(below_pos)
|
||||
if below.name ~= "default:jungletree" then
|
||||
if below.name ~= "default:jungletree" and below.name ~= "x_farming:jungle_tree" then
|
||||
tick_again(pos)
|
||||
return
|
||||
end
|
||||
|
@ -97,7 +97,7 @@ function x_farming.place_cocoa_bean(itemstack, placer, pointed_thing)
|
|||
end
|
||||
|
||||
-- check if pointing at soil
|
||||
if under.name ~= "default:jungletree" then
|
||||
if under.name ~= "default:jungletree" and under.name ~= "x_farming:jungle_tree" then
|
||||
return itemstack
|
||||
end
|
||||
|
||||
|
@ -273,9 +273,8 @@ minetest.register_node("x_farming:cocoa_3", {
|
|||
{-0.25, -0.3125, -0.0625, 0.25, 0.5, 0.5},
|
||||
},
|
||||
},
|
||||
groups = {choppy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1},
|
||||
groups = {choppy = 3, flammable = 2, plant = 1, not_in_creative_inventory = 1, leafdecay = 3, leafdecay_drop = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_timer = x_farming.grow_cocoa_plant,
|
||||
minlight = 13,
|
||||
maxlight = 15
|
||||
})
|
||||
|
@ -291,3 +290,144 @@ minetest.register_lbm({
|
|||
tick_again(pos)
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node("x_farming:jungle_with_cocoa_sapling", {
|
||||
description = "Jungle Tree with Cocoa Sapling",
|
||||
drawtype = "plantlike",
|
||||
tiles = {"x_farming_junglesapling.png"},
|
||||
inventory_image = "x_farming_junglesapling.png",
|
||||
wield_image = "x_farming_junglesapling.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
on_timer = x_farming.grow_jungle_tree,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
|
||||
},
|
||||
groups = {snappy = 2, dig_immediate = 3, flammable = 2,
|
||||
attached_node = 1, sapling = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
|
||||
on_construct = function(pos)
|
||||
minetest.get_node_timer(pos):start(math.random(300, 1500))
|
||||
end,
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
itemstack = default.sapling_on_place(itemstack, placer, pointed_thing,
|
||||
"x_farming:jungle_with_cocoa_sapling",
|
||||
-- minp, maxp to be checked, relative to sapling pos
|
||||
{x = -3, y = -5, z = -3},
|
||||
{x = 3, y = 31, z = 3},
|
||||
-- maximum interval of interior volume check
|
||||
4)
|
||||
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
|
||||
-- trunk
|
||||
minetest.register_node("x_farming:jungle_tree", {
|
||||
description = "Jungle Tree",
|
||||
tiles = {"x_farming_jungle_tree_top.png", "x_farming_jungle_tree_top.png", "x_farming_jungle_tree.png"},
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
|
||||
-- leaves
|
||||
minetest.register_node("x_farming:jungle_leaves", {
|
||||
description = "Jungle Tree Leaves",
|
||||
drawtype = "allfaces_optional",
|
||||
waving = 1,
|
||||
tiles = {"x_farming_jungleleaves.png"},
|
||||
special_tiles = {"x_farming_jungleleaves.png"},
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{
|
||||
-- player will get sapling with 1/20 chance
|
||||
items = {"x_farming:jungle_with_cocoa_sapling"},
|
||||
rarity = 20,
|
||||
},
|
||||
{
|
||||
-- player will get leaves only if he get no saplings,
|
||||
-- this is because max_items is 1
|
||||
items = {"x_farming:jungle_leaves"},
|
||||
}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
-- leafdecay
|
||||
default.register_leafdecay({
|
||||
trunks = {"x_farming:jungle_tree"},
|
||||
leaves = {"x_farming:cocoa_3", "x_farming:jungle_leaves"},
|
||||
radius = 2,
|
||||
})
|
||||
|
||||
-- planks
|
||||
minetest.register_node("x_farming:jungle_wood", {
|
||||
description = "Jungle Wood Planks",
|
||||
paramtype2 = "facedir",
|
||||
place_param2 = 0,
|
||||
tiles = {"x_farming_jungle_wood.png"},
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "x_farming:jungle_wood 4",
|
||||
recipe = {
|
||||
{"x_farming:jungle_tree"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "x_farming:jungle_tree",
|
||||
burntime = 38,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "x_farming:jungle_wood",
|
||||
burntime = 9,
|
||||
})
|
||||
|
||||
if minetest.global_exists("stairs") and minetest.get_modpath("stairs") then
|
||||
stairs.register_stair_and_slab(
|
||||
"jungle_wood",
|
||||
"x_farming:jungle_wood",
|
||||
{choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
{"x_farming_jungle_wood.png"},
|
||||
"Jungle Wooden Stair",
|
||||
"Jungle Wooden Slab",
|
||||
default.node_sound_wood_defaults(),
|
||||
false
|
||||
)
|
||||
end
|
||||
|
||||
minetest.register_decoration({
|
||||
name = "x_farming:jungle_tree",
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:dirt_with_rainforest_litter"},
|
||||
sidelen = 80,
|
||||
fill_ratio = 0.025,
|
||||
biomes = {"rainforest"},
|
||||
y_max = 31000,
|
||||
y_min = 1,
|
||||
schematic = minetest.get_modpath("x_farming") .. "/schematics/x_farming_jungle_tree_with_cocoa.mts",
|
||||
flags = "place_center_x, place_center_z",
|
||||
rotation = "0",
|
||||
})
|
||||
|
|
20
coffee.lua
20
coffee.lua
|
@ -52,3 +52,23 @@ minetest.register_node("x_farming:coffee_cup_hot", {
|
|||
on_use = minetest.item_eat(6, "vessels:drinking_glass"),
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_decoration({
|
||||
name = "x_farming:coffee_5",
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dry_dirt_with_dry_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = -0.1,
|
||||
scale = 0.1,
|
||||
spread = {x = 50, y = 50, z = 50},
|
||||
seed = 4242,
|
||||
octaves = 3,
|
||||
persist = 0.7
|
||||
},
|
||||
biomes = {"savanna"},
|
||||
y_max = 31000,
|
||||
y_min = 1,
|
||||
decoration = "x_farming:coffee_5",
|
||||
param2 = 3,
|
||||
})
|
||||
|
|
20
corn.lua
20
corn.lua
|
@ -68,3 +68,23 @@ minetest.register_node("x_farming:corn_popcorn", {
|
|||
on_use = minetest.item_eat(5),
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_decoration({
|
||||
name = "x_farming:corn_10",
|
||||
deco_type = "simple",
|
||||
place_on = {"default:sand"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = -0.1,
|
||||
scale = 0.1,
|
||||
spread = {x = 50, y = 50, z = 50},
|
||||
seed = 4242,
|
||||
octaves = 3,
|
||||
persist = 0.7
|
||||
},
|
||||
biomes = {"sandstone_desert"},
|
||||
y_max = 31000,
|
||||
y_min = 1,
|
||||
decoration = "x_farming:corn_10",
|
||||
param2 = 3,
|
||||
})
|
||||
|
|
|
@ -214,6 +214,12 @@ minetest.register_craft({
|
|||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "x_farming:kiwi_wood",
|
||||
burntime = 8,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "x_farming:kiwi_tree",
|
||||
|
|
19
melon.lua
19
melon.lua
|
@ -102,3 +102,22 @@ minetest.register_lbm({
|
|||
x_farming.tick_short(pos)
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_decoration({
|
||||
name = "x_farming:melon_8",
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = -0.1,
|
||||
scale = 0.1,
|
||||
spread = {x = 50, y = 50, z = 50},
|
||||
seed = 4242,
|
||||
octaves = 3,
|
||||
persist = 0.7
|
||||
},
|
||||
biomes = {"grassland"},
|
||||
y_max = 31000,
|
||||
y_min = 1,
|
||||
decoration = "x_farming:melon_8",
|
||||
})
|
||||
|
|
|
@ -125,3 +125,62 @@ stairs.register_stair_and_slab(
|
|||
"Wartrack Slab",
|
||||
default.node_sound_stone_defaults()
|
||||
)
|
||||
|
||||
|
||||
minetest.register_node("x_farming:obsidian_wart_decor", {
|
||||
description = "Obsidian Wart",
|
||||
drawtype = "plantlike_rooted",
|
||||
waving = 1,
|
||||
paramtype = "light",
|
||||
tiles = {"default_obsidian.png"},
|
||||
special_tiles = {{name = "x_farming_obsidian_wart_6.png", tileable_vertical = true}},
|
||||
inventory_image = "x_farming_obsidian_wart_6.png",
|
||||
groups = {snappy = 3, not_in_creative_inventory = 1},
|
||||
light_source = 3,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||
{-4/16, 0.5, -4/16, 4/16, 1.5, 4/16},
|
||||
},
|
||||
},
|
||||
node_dig_prediction = "default:obsidian",
|
||||
node_placement_prediction = "",
|
||||
sounds = default.node_sound_stone_defaults({
|
||||
dig = {name = "default_dig_snappy", gain = 0.2},
|
||||
dug = {name = "default_grass_footstep", gain = 0.25},
|
||||
}),
|
||||
drop = {
|
||||
items = {
|
||||
{items = {"x_farming:obsidian_wart"}, rarity = 1},
|
||||
{items = {"x_farming:obsidian_wart"}, rarity = 2},
|
||||
{items = {"x_farming:seed_obsidian_wart"}, rarity = 1},
|
||||
{items = {"x_farming:seed_obsidian_wart"}, rarity = 2}
|
||||
}
|
||||
},
|
||||
|
||||
after_destruct = function(pos, oldnode)
|
||||
minetest.set_node(pos, {name = "default:obsidian"})
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_decoration({
|
||||
name = "x_farming:obsidian_wart_decor",
|
||||
deco_type = "simple",
|
||||
place_offset_y = -1,
|
||||
place_on = {"default:stone"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = -0.1,
|
||||
scale = 0.1,
|
||||
spread = {x = 50, y = 50, z = 50},
|
||||
seed = 4242,
|
||||
octaves = 3,
|
||||
persist = 0.7
|
||||
},
|
||||
biomes = {"icesheet_under", "tundra_under", "taiga_under", "snowy_grassland_under", "grassland_under", "coniferous_forest_under", "deciduous_forest_under", "desert_under", "sandstone_desert_under", "cold_desert_under", "savanna_under", "rainforest_under"},
|
||||
y_max = -1000,
|
||||
y_min = -31000,
|
||||
flags = "force_placement, all_floors",
|
||||
decoration = {"x_farming:obsidian_wart_decor"},
|
||||
})
|
||||
|
|
20
potato.lua
20
potato.lua
|
@ -33,3 +33,23 @@ minetest.override_item("x_farming:potato_8", {
|
|||
}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_decoration({
|
||||
name = "x_farming:potato_8",
|
||||
deco_type = "simple",
|
||||
place_on = {"default:silver_sand"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = -0.1,
|
||||
scale = 0.1,
|
||||
spread = {x = 50, y = 50, z = 50},
|
||||
seed = 4242,
|
||||
octaves = 3,
|
||||
persist = 0.7
|
||||
},
|
||||
biomes = {"cold_desert"},
|
||||
y_max = 31000,
|
||||
y_min = 1,
|
||||
decoration = "x_farming:potato_8",
|
||||
param2 = 3,
|
||||
})
|
||||
|
|
20
pumpkin.lua
20
pumpkin.lua
|
@ -113,3 +113,23 @@ minetest.register_lbm({
|
|||
x_farming.tick_short(pos)
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_decoration({
|
||||
name = "x_farming:pumpkin_8",
|
||||
deco_type = "simple",
|
||||
place_on = {"default:sand"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = -0.1,
|
||||
scale = 0.1,
|
||||
spread = {x = 50, y = 50, z = 50},
|
||||
seed = 4242,
|
||||
octaves = 3,
|
||||
persist = 0.7
|
||||
},
|
||||
biomes = {"sandstone_desert"},
|
||||
y_max = 31000,
|
||||
y_min = 1,
|
||||
decoration = "x_farming:pumpkin_8",
|
||||
param2 = 3,
|
||||
})
|
||||
|
|
|
@ -110,3 +110,226 @@ mts_save("x_farming_large_cactus_from_seedling", {
|
|||
_, _, _, FR, _, _, _,
|
||||
},
|
||||
})
|
||||
|
||||
-- Mapgen Jungle tree
|
||||
|
||||
local L = {name = "x_farming:jungle_leaves", prob = 255}
|
||||
local N = {name = "x_farming:jungle_leaves", prob = 223}
|
||||
local M = {name = "x_farming:jungle_leaves", prob = 191}
|
||||
local B = {name = "x_farming:jungle_tree", prob = 255, force_place = true}
|
||||
local Y = {name = "x_farming:jungle_tree", prob = 191, force_place = true}
|
||||
local U = {name = "x_farming:jungle_tree", prob = 127, force_place = true}
|
||||
local I = {name = "x_farming:jungle_tree", prob = 255}
|
||||
local F1 = {name = "x_farming:cocoa_3", prob = 64, param2=0}
|
||||
local F3 = {name = "x_farming:cocoa_3", prob = 64, param2=3}
|
||||
local F4 = {name = "x_farming:cocoa_3", prob = 64, param2=2}
|
||||
|
||||
mts_save("x_farming_jungle_tree_with_cocoa", {
|
||||
size = {x = 5, y = 17, z = 5},
|
||||
data = {
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
N, L, N, _, _,
|
||||
_, _, N, L, N,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
M, N, N, N, M,
|
||||
M, N, N, N, M,
|
||||
_, _, _, _, _,
|
||||
|
||||
_, _, B, _, _,
|
||||
_, _, B, _, _,
|
||||
_, _, U, _, _,
|
||||
_, _, F1, _, _,
|
||||
_, _, F1, _, _,
|
||||
_, _, F1, _, _,
|
||||
_, _, F1, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
L, B, L, _, _,
|
||||
_, _, L, B, L,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
N, Y, L, Y, N,
|
||||
N, L, L, L, N,
|
||||
_, N, N, N, _,
|
||||
|
||||
_, B, B, B, _,
|
||||
_, B, B, B, _,
|
||||
_, U, B, U, _,
|
||||
_, _, B, F3, _,
|
||||
_, _, B, F3, _,
|
||||
_, _, B, F3, _,
|
||||
_, _, B, F3, _,
|
||||
_, _, B, _, _,
|
||||
_, _, B, L, N,
|
||||
N, L, B, _, _,
|
||||
N, L, B, _, _,
|
||||
_, _, B, L, N,
|
||||
_, _, B, _, _,
|
||||
_, _, B, _, _,
|
||||
N, L, L, L, N,
|
||||
N, L, L, L, N,
|
||||
_, N, L, N, _,
|
||||
|
||||
_, _, B, _, _,
|
||||
_, _, B, _, _,
|
||||
_, _, U, _, _,
|
||||
_, _, F4, _, _,
|
||||
_, _, F4, _, _,
|
||||
_, _, F4, _, _,
|
||||
_, _, F4, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, L, B, L,
|
||||
L, B, L, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
N, Y, L, Y, N,
|
||||
N, L, L, L, N,
|
||||
_, N, N, N, _,
|
||||
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, N, L, N,
|
||||
N, L, N, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
M, N, N, N, M,
|
||||
M, N, N, N, M,
|
||||
_, _, _, _, _,
|
||||
},
|
||||
yslice_prob = {
|
||||
{ypos=8, prob=127},
|
||||
{ypos=9, prob=127},
|
||||
{ypos=10, prob=127},
|
||||
{ypos=11, prob=127},
|
||||
},
|
||||
})
|
||||
|
||||
-- Jungle tree with Cocoa from sapling
|
||||
|
||||
local B = {name = "x_farming:jungle_tree", prob = 255}
|
||||
local C = {name = "x_farming:jungle_tree", prob = 255, force_place = true}
|
||||
local Y = {name = "x_farming:jungle_tree", prob = 191}
|
||||
local U = {name = "x_farming:jungle_tree", prob = 127}
|
||||
|
||||
|
||||
mts_save("x_farming_jungle_tree_with_cocoa_from_sapling", {
|
||||
size = {x = 5, y = 17, z = 5},
|
||||
data = {
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
N, L, N, _, _,
|
||||
_, _, N, L, N,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
M, N, N, N, M,
|
||||
M, N, N, N, M,
|
||||
_, _, _, _, _,
|
||||
|
||||
_, _, B, _, _,
|
||||
_, _, B, _, _,
|
||||
_, _, U, _, _,
|
||||
_, _, F1, _, _,
|
||||
_, _, F1, _, _,
|
||||
_, _, F1, _, _,
|
||||
_, _, F1, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
L, B, L, _, _,
|
||||
_, _, L, B, L,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
N, Y, L, Y, N,
|
||||
N, L, L, L, N,
|
||||
_, N, N, N, _,
|
||||
|
||||
_, B, B, B, _,
|
||||
_, B, C, B, _,
|
||||
_, U, B, U, _,
|
||||
_, _, B, F3, _,
|
||||
_, _, B, F3, _,
|
||||
_, _, B, F3, _,
|
||||
_, _, B, F3, _,
|
||||
_, _, B, _, _,
|
||||
_, _, B, L, N,
|
||||
N, L, B, _, _,
|
||||
N, L, B, _, _,
|
||||
_, _, B, L, N,
|
||||
_, _, B, _, _,
|
||||
_, _, B, _, _,
|
||||
N, L, L, L, N,
|
||||
N, L, L, L, N,
|
||||
_, N, L, N, _,
|
||||
|
||||
_, _, B, _, _,
|
||||
_, _, B, _, _,
|
||||
_, _, U, _, _,
|
||||
_, _, F4, _, _,
|
||||
_, _, F4, _, _,
|
||||
_, _, F4, _, _,
|
||||
_, _, F4, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, L, B, L,
|
||||
L, B, L, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
N, Y, L, Y, N,
|
||||
N, L, L, L, N,
|
||||
_, N, N, N, _,
|
||||
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, N, L, N,
|
||||
N, L, N, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
_, _, _, _, _,
|
||||
M, N, N, N, M,
|
||||
M, N, N, N, M,
|
||||
_, _, _, _, _,
|
||||
},
|
||||
yslice_prob = {
|
||||
{ypos = 8, prob = 127},
|
||||
{ypos = 9, prob = 127},
|
||||
{ypos = 10, prob = 127},
|
||||
{ypos = 11, prob = 127},
|
||||
},
|
||||
})
|
||||
|
|
Binary file not shown.
Binary file not shown.
83
seeds.lua
83
seeds.lua
|
@ -1,83 +1,3 @@
|
|||
--
|
||||
-- Seeds
|
||||
--
|
||||
|
||||
-- obsidian wart
|
||||
minetest.override_item("flowers:mushroom_red", {drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"x_farming:seed_obsidian_wart"}, rarity = 5},
|
||||
{items = {"flowers:mushroom_red"}},
|
||||
}
|
||||
}})
|
||||
|
||||
-- beetroot
|
||||
-- pumpkin
|
||||
for i = 1, 5 do
|
||||
minetest.override_item("default:dry_grass_"..i, {drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"x_farming:seed_pumpkin"}, rarity = 6},
|
||||
{items = {"x_farming:seed_beetroot"}, rarity = 6},
|
||||
{items = {"default:dry_grass_1"}},
|
||||
}
|
||||
}})
|
||||
end
|
||||
|
||||
-- carrot
|
||||
-- wheat
|
||||
for i = 1, 5 do
|
||||
minetest.override_item("default:grass_"..i, {drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"farming:seed_wheat"},rarity = 5},
|
||||
{items = {"x_farming:seed_carrot"}, rarity = 6},
|
||||
{items = {"default:grass_1"}},
|
||||
}
|
||||
}})
|
||||
end
|
||||
|
||||
-- potato
|
||||
-- cotton
|
||||
minetest.override_item("default:junglegrass", {drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"farming:seed_cotton"},rarity = 8},
|
||||
{items = {"x_farming:seed_potato"}, rarity = 6},
|
||||
{items = {"default:junglegrass"}},
|
||||
}
|
||||
}})
|
||||
|
||||
-- coffee
|
||||
minetest.override_item("default:bush_stem", {drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"x_farming:seed_coffee"}, rarity = 6},
|
||||
{items = {"default:bush_stem"}},
|
||||
}
|
||||
}})
|
||||
|
||||
-- corn
|
||||
-- melon
|
||||
minetest.override_item("default:dry_shrub", {drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"x_farming:seed_corn"},rarity = 6},
|
||||
{items = {"x_farming:seed_melon"}, rarity = 6},
|
||||
{items = {"default:dry_shrub"}},
|
||||
}
|
||||
}})
|
||||
|
||||
-- cocoa bean
|
||||
minetest.override_item("default:bush_leaves", {drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"x_farming:cocoa_bean"}, rarity = 6},
|
||||
{items = {"default:bush_sapling"}, rarity = 5},
|
||||
{items = {"default:bush_leaves"}}
|
||||
}
|
||||
}})
|
||||
|
||||
-- Register farming items as dungeon loot
|
||||
if minetest.global_exists("dungeon_loot") then
|
||||
dungeon_loot.register({
|
||||
|
@ -90,5 +10,8 @@ if minetest.global_exists("dungeon_loot") then
|
|||
{name = "x_farming:seed_corn", chance = 0.4, count = {1, 4}},
|
||||
{name = "x_farming:seed_melon", chance = 0.4, count = {1, 4}},
|
||||
{name = "x_farming:cocoa_bean", chance = 0.4, count = {1, 4}},
|
||||
{name = "x_farming:large_cactus_with_fruit_seedling", chance = 0.4, count = {1, 1}},
|
||||
{name = "x_farming:kiwi_sapling", chance = 0.4, count = {1, 1}},
|
||||
{name = "x_farming:seed_strawberry", chance = 0.4, count = {1, 4}},
|
||||
})
|
||||
end
|
Binary file not shown.
After Width: | Height: | Size: 335 B |
Binary file not shown.
After Width: | Height: | Size: 355 B |
Binary file not shown.
After Width: | Height: | Size: 321 B |
Binary file not shown.
After Width: | Height: | Size: 532 B |
Binary file not shown.
After Width: | Height: | Size: 334 B |
Loading…
Reference in New Issue