add mycelium townaura particles

This commit is contained in:
epCode 2022-11-13 13:41:28 -08:00 committed by cora
parent 55375a7476
commit 28f952309e
2 changed files with 27 additions and 1 deletions

View File

@ -434,7 +434,7 @@ minetest.register_node("mcl_core:mycelium", {
tiles = {"mcl_core_mycelium_top.png", "default_dirt.png", {name="mcl_core_mycelium_side.png", tileable_vertical=false}}, tiles = {"mcl_core_mycelium_top.png", "default_dirt.png", {name="mcl_core_mycelium_side.png", tileable_vertical=false}},
is_ground_content = true, is_ground_content = true,
stack_max = 64, stack_max = 64,
groups = { handy = 1, shovely = 1, dirt = 2, spreading_dirt_type = 1, enderman_takable = 1, building_block = 1, soil_sapling = 2, path_creation_possible=1}, groups = { handy = 1, shovely = 1, dirt = 2, spreading_dirt_type = 1, enderman_takable = 1, building_block = 1, soil_sapling = 2, path_creation_possible=1, mycelium=1},
drop = "mcl_core:dirt", drop = "mcl_core:dirt",
sounds = mcl_sounds.node_sound_dirt_defaults({ sounds = mcl_sounds.node_sound_dirt_defaults({
footstep = {name="default_grass_footstep", gain=0.1}, footstep = {name="default_grass_footstep", gain=0.1},
@ -448,6 +448,32 @@ minetest.register_node("mcl_core:mycelium", {
}) })
mcl_core.register_snowed_node("mcl_core:mycelium_snow", "mcl_core:mycelium", nil, nil, false, S("Mycelium with Snow")) mcl_core.register_snowed_node("mcl_core:mycelium_snow", "mcl_core:mycelium", nil, nil, false, S("Mycelium with Snow"))
--if minetest.settings:get("mcl_node_particles") == "full" then
minetest.register_abm({
label = "Townaura particles",
nodenames = {"group:mycelium"},
interval = 0.1,
chance = 30,
action = function(pos, node)
local apos = {x=pos.x, y=pos.y+0.51, z=pos.z}
local vel = { x = math.random(-3, 3)/10, y = math.random(0, 10)/60, z = math.random(-3, 3)/10 }
local acc = { x = 0, y = 0, z = 0 }
minetest.add_particle({
pos = apos,
velocity = vel,
acceleration = acc,
expirationtime = 4,
collisiondetection = true,
collision_removal = true,
size = 1,
texture = "mcl_core_mycelium_particle.png",
glow = LIGHT_LAVA,
})
end,
})
--end
minetest.register_node("mcl_core:podzol", { minetest.register_node("mcl_core:podzol", {
description = S("Podzol"), description = S("Podzol"),
_doc_items_longdesc = S("Podzol is a type of dirt found in taiga forests. Only a few plants are able to survive on it."), _doc_items_longdesc = S("Podzol is a type of dirt found in taiga forests. Only a few plants are able to survive on it."),

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB