Many minor changes, also add pumpkins
This commit is contained in:
parent
bba55a82a6
commit
32a96c4494
@ -26,6 +26,7 @@
|
||||
- Remove the Slime and Mushroom world because adding content for all 5 different worlds is gonna be hard.
|
||||
- Water and Lava now have "chemical reactions"
|
||||
- Added Calcite
|
||||
- Added Pumpkins
|
||||
- A lot of other changes that I forgot to document
|
||||
|
||||
## [Oct 19th 2024] Bugfix Update
|
||||
|
@ -24,7 +24,7 @@ PyuTest.make_item("pyutest_farming:hoe", "Hoe", {
|
||||
end
|
||||
})
|
||||
|
||||
PyuTest.make_crop = function (name, desc, output, growtime, water_multiplier, textures)
|
||||
PyuTest.make_crop = function (name, desc, output, growtime, water_multiplier, textures, grow_into)
|
||||
local t = textures or {}
|
||||
|
||||
PyuTest.make_node(name.."_crop", desc .. "Crop", {
|
||||
@ -52,32 +52,34 @@ PyuTest.make_crop = function (name, desc, output, growtime, water_multiplier, te
|
||||
timer:start(time)
|
||||
end,
|
||||
on_timer = function (pos)
|
||||
minetest.set_node(pos, {name = name.."_grown"})
|
||||
minetest.set_node(pos, {name = grow_into or name.."_grown"})
|
||||
end
|
||||
})
|
||||
|
||||
PyuTest.make_node(name.."_grown", desc .. " Crop", {
|
||||
flammable = 1,
|
||||
dig_immediate = 3,
|
||||
attached_node = 3,
|
||||
oddly_breakable_by_hand = PyuTest.BLOCK_FAST,
|
||||
not_in_creative_inventory = 1
|
||||
}, {t["grown"] or "pyutest-crop-grown.png"}, {
|
||||
drawtype = "plantlike",
|
||||
color = t["grown_color"],
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
floodable = true,
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{
|
||||
items = {ItemStack(name.."_seeds 3"), ItemStack(output)}
|
||||
if not grow_into then
|
||||
PyuTest.make_node(name.."_grown", desc .. " Crop", {
|
||||
flammable = 1,
|
||||
dig_immediate = 3,
|
||||
attached_node = 3,
|
||||
oddly_breakable_by_hand = PyuTest.BLOCK_FAST,
|
||||
not_in_creative_inventory = 1
|
||||
}, {t["grown"] or "pyutest-crop-grown.png"}, {
|
||||
drawtype = "plantlike",
|
||||
color = t["grown_color"],
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
floodable = true,
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{
|
||||
items = {ItemStack(name.."_seeds 3"), ItemStack(output)}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
})
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
PyuTest.make_item(name.."_seeds", desc.." Seeds", {seeds = 1}, t["seed"] or "pyutest-seeds.png", {
|
||||
color = t["seed_color"],
|
||||
|
@ -23,3 +23,25 @@ PyuTest.make_crop("pyutest_farming:potato", "Potato", "pyutest_tools:potato 5",
|
||||
grown_color = "#9e7b58",
|
||||
seed_color = "#9e7b58"
|
||||
})
|
||||
|
||||
PyuTest.make_node("pyutest_farming:pumpkin", "Pumpkin", {
|
||||
oddly_breakable_by_hand = PyuTest.BLOCK_SLOW,
|
||||
choppy = PyuTest.BLOCK_FAST
|
||||
}, {
|
||||
"pyutest-pumpkin-top.png",
|
||||
"pyutest-pumpkin-bottom.png",
|
||||
"pyutest-pumpkin-sides.png"
|
||||
}, {})
|
||||
|
||||
PyuTest.make_crop("pyutest_farming:pumpkin", "Pumpkin", "", to_minutes(8), 0.33, {
|
||||
crop_color = "#ce6b28",
|
||||
seed_color = "#ce6b28"
|
||||
}, "pyutest_farming:pumpkin")
|
||||
|
||||
minetest.register_craft({
|
||||
output = "pyutest_farming:pumpkin_seeds 4",
|
||||
recipe = {
|
||||
"pyutest_farming:pumpkin"
|
||||
},
|
||||
type = "shapeless"
|
||||
})
|
||||
|
@ -67,5 +67,7 @@ PyuTest.make_lootbox("pyutest_lootboxes:color", "Color", {
|
||||
|
||||
PyuTest.make_lootbox("pyutest_lootboxes:farming", "Farmer's", {
|
||||
ItemStack("pyutest_farming:wheat_seeds 5"),
|
||||
ItemStack("pyutest_farming:carrot_seeds 3")
|
||||
ItemStack("pyutest_farming:carrot_seeds 3"),
|
||||
ItemStack("pyutest_farming:potato_seeds 3"),
|
||||
ItemStack("pyutest_farming:pumpkin_seeds 4"),
|
||||
}, true)
|
||||
|
@ -40,6 +40,7 @@ minetest.register_ore({
|
||||
y_max = PyuTest.BIOME_TOPS.mountains,
|
||||
y_min = PyuTest.BIOME_TOPS.normal,
|
||||
noise_params = PyuTest.MOUNTAIN_STRIP_NOISE_PARAMS,
|
||||
column_height_max = 12,
|
||||
column_height_max = 18,
|
||||
column_height_min = 8,
|
||||
column_midpoint_factor = 1,
|
||||
})
|
||||
|
BIN
textures/pyutest-pumpkin-bottom.png
Normal file
BIN
textures/pyutest-pumpkin-bottom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 201 B |
BIN
textures/pyutest-pumpkin-sides.png
Normal file
BIN
textures/pyutest-pumpkin-sides.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 150 B |
BIN
textures/pyutest-pumpkin-top.png
Normal file
BIN
textures/pyutest-pumpkin-top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 235 B |
Loading…
x
Reference in New Issue
Block a user