Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- minetest.register_node("mushrooms:red_mushroom", {
- description = Red mushroom,
- drawtype = "plantlike",
- tiles = { "red_mushroom.png" },
- sunlight_propagates = true,
- paramtype = "light",
- walkable = false,
- groups = { snappy = 3,flammable=2, flower=1 },
- sounds = default.node_sound_leaves_defaults(),
- selection_box = {
- type = "fixed",
- fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
- },
- })
- minetest.register_node("mushrooms:brown_mushroom", {
- description = Brown mushroom,
- drawtype = "plantlike",
- tiles = { "brown_mushroom.png" },
- sunlight_propagates = true,
- paramtype = "light",
- walkable = false,
- groups = { snappy = 3,flammable=2, flower=1 },
- sounds = default.node_sound_leaves_defaults(),
- selection_box = {
- type = "fixed",
- fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
- },
- })
- matsetes:spawn_on_surfaces({
- spawn_delay = 1000,
- spawn_plants = {
- "mushrooms:red_mushroom",
- "mushrooms:brown_mushroom",
- },
- avoid_radius = 7,
- spawn_chance = 200,
- spawn_surfaces = {"default:stone"},
- seed_diff = 349,
- light_min = 9
- })
Advertisement
Add Comment
Please, Sign In to add comment