new-subgame/mods/plants/grasses.lua

86 lines
2.1 KiB
Lua
Raw Normal View History

2019-05-11 14:00:20 -07:00
local grasses_group = {flora=1, grass=1, dig_immediate=3, attached_node=1, flamable=3, not_in_creative=1}
2019-05-03 07:07:21 -07:00
minetest.register_node('plants:grass_1', {
2019-05-11 14:00:20 -07:00
description = 'Grass',
2019-05-03 07:07:21 -07:00
tiles = {'plants_grass_1.png'},
drawtype = 'plantlike',
inventory_image = "plants_grass_4.png",
wield_image = "plants_grass_4.png",
2019-05-11 14:00:20 -07:00
groups = grasses_group,
drop = 'plants:fiber',
2019-05-03 07:07:21 -07:00
waving = 1,
walkable = false,
sunlight_propagates = true,
buildable_to = true,
paramtype = 'light',
selection_box = plants.grass_sel,
2019-05-04 15:35:45 -07:00
grows_in_month = 5,
grows_to = 'plants:grass_2',
2019-05-03 07:07:21 -07:00
})
minetest.register_node('plants:grass_2', {
2019-05-11 14:00:20 -07:00
description = 'Grass',
2019-05-03 07:07:21 -07:00
tiles = {'plants_grass_2.png'},
drawtype = 'plantlike',
2019-05-11 14:00:20 -07:00
groups = grasses_group,
drop = 'plants:fiber',
2019-05-03 07:07:21 -07:00
waving = 1,
walkable = false,
sunlight_propagates = true,
buildable_to = true,
paramtype = 'light',
selection_box = plants.grass_sel,
2019-05-11 14:00:20 -07:00
grows_in_month = 6,
2019-05-04 15:35:45 -07:00
grows_to = 'plants:grass_3',
2019-05-03 07:07:21 -07:00
})
minetest.register_node('plants:grass_3', {
2019-05-11 14:00:20 -07:00
description = 'Grass',
2019-05-03 07:07:21 -07:00
tiles = {'plants_grass_3.png'},
drawtype = 'plantlike',
2019-05-11 14:00:20 -07:00
groups = grasses_group,
drop = 'plants:fiber',
2019-05-03 07:07:21 -07:00
waving = 1,
walkable = false,
sunlight_propagates = true,
buildable_to = true,
paramtype = 'light',
selection_box = plants.grass_sel,
2019-05-11 14:00:20 -07:00
grows_in_month = 7,
2019-05-04 15:35:45 -07:00
grows_to = 'plants:grass_4',
2019-05-03 07:07:21 -07:00
})
minetest.register_node('plants:grass_4', {
2019-05-11 14:00:20 -07:00
description = 'Grass',
2019-05-03 07:07:21 -07:00
tiles = {'plants_grass_4.png'},
drawtype = 'plantlike',
2019-05-11 14:00:20 -07:00
groups = grasses_group,
drop = 'plants:fiber',
2019-05-03 07:07:21 -07:00
waving = 1,
walkable = false,
sunlight_propagates = true,
buildable_to = true,
paramtype = 'light',
selection_box = plants.grass_sel,
2019-05-11 14:00:20 -07:00
grows_in_month = 7,
grows_to = 'plants:grass_5',
})
minetest.register_node('plants:grass_5', {
description = 'Seeding Grass',
tiles = {'plants_grass_5.png'},
drawtype = 'plantlike',
groups = grasses_group,
drop = 'plants:fiber',
waving = 1,
walkable = false,
sunlight_propagates = true,
buildable_to = true,
paramtype = 'light',
selection_box = plants.grass_sel,
grows_in_month = 8,
2019-05-04 15:35:45 -07:00
grows_to = 'spread',
2019-05-11 14:00:20 -07:00
2019-05-03 07:07:21 -07:00
})