mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2024-12-26 18:40:18 +01:00
retired the cotton plants, aliased them to farming cotton since that mod is now
part of minetest_game
This commit is contained in:
parent
95a44d8bf7
commit
a73ba9aeb8
@ -1,33 +1,21 @@
|
|||||||
-- This file supplies a few additional flowers and some related crafts
|
-- This file supplies a few additional plants and some related crafts
|
||||||
-- for the plantlife modpack. Last revision: 2013-04-24
|
-- for the plantlife modpack. Last revision: 2013-04-24
|
||||||
|
|
||||||
local SPAWN_DELAY = 1000
|
local SPAWN_DELAY = 1000
|
||||||
local SPAWN_CHANCE = 200
|
local SPAWN_CHANCE = 200
|
||||||
local flowers_seed_diff = 329
|
local flowers_seed_diff = 329
|
||||||
|
|
||||||
-- register cotton plant
|
-- Cotton plants are now provided by the default "farming" mod.
|
||||||
|
-- old cotton plants -> farming cotton stage 8
|
||||||
|
-- cotton wads -> string (can be crafted into wool blocks)
|
||||||
|
-- potted cotton plants -> potted white dandelions
|
||||||
|
|
||||||
minetest.register_node(":flowers:cotton_plant", {
|
minetest.register_alias("flowers:cotton_plant", "farming:cotton_8")
|
||||||
description = flowerdesc,
|
minetest.register_alias("flowers:flower_cotton", "farming:cotton_8")
|
||||||
drawtype = "plantlike",
|
minetest.register_alias("flowers:flower_cotton_pot", "flowers:potted_dandelion_white")
|
||||||
tiles = { "flowers_cotton_plant.png" },
|
minetest.register_alias("flowers:potted_cotton_plant", "flowers:potted_dandelion_white")
|
||||||
inventory_image = "flowers_cotton_plant.png",
|
minetest.register_alias("flowers:cotton", "farming:string")
|
||||||
wield_image = "flowers_cotton_plant.png",
|
minetest.register_alias("flowers:cotton_wad", "farming:string")
|
||||||
sunlight_propagates = true,
|
|
||||||
paramtype = "light",
|
|
||||||
walkable = false,
|
|
||||||
buildable_to = true,
|
|
||||||
groups = { snappy = 3,flammable=2, flower=1, flora=1, attached_node=1 },
|
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
|
||||||
selection_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
|
|
||||||
},
|
|
||||||
buildable_to = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_alias("flowers:flower_cotton", "flowers:cotton_plant")
|
|
||||||
minetest.register_alias("flowers:flower_cotton_pot", "flowers:potted_cotton_plant")
|
|
||||||
|
|
||||||
-- register the various rotations of waterlilies
|
-- register the various rotations of waterlilies
|
||||||
|
|
||||||
@ -148,7 +136,6 @@ local flowers_list = {
|
|||||||
{ "White Dandelion", "dandelion_white"},
|
{ "White Dandelion", "dandelion_white"},
|
||||||
{ "Blue Geranium", "geranium"},
|
{ "Blue Geranium", "geranium"},
|
||||||
{ "Viola", "viola"},
|
{ "Viola", "viola"},
|
||||||
{ "Cotton Plant", "cotton_plant"},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for i in ipairs(flowers_list) do
|
for i in ipairs(flowers_list) do
|
||||||
@ -273,26 +260,4 @@ minetest.register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_alias("flowers:cotton", "flowers:cotton_wad")
|
|
||||||
|
|
||||||
minetest.register_craftitem(":flowers:cotton_wad", {
|
|
||||||
description = "Cotton wad",
|
|
||||||
image = "flowers_cotton_wad.png",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "flowers:cotton_wad 3",
|
|
||||||
recipe ={
|
|
||||||
{"flowers:cotton_plant"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "wool:white 2",
|
|
||||||
recipe = {
|
|
||||||
{'flowers:cotton_wad', 'flowers:cotton_wad', ''},
|
|
||||||
{'flowers:cotton_wad', 'flowers:cotton_wad', ''},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
print("[Flowers] Loaded.")
|
print("[Flowers] Loaded.")
|
||||||
|
Loading…
Reference in New Issue
Block a user