mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
add mycelium townaura particles
This commit is contained in:
parent
55375a7476
commit
28f952309e
@ -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."),
|
||||||
|
BIN
mods/ITEMS/mcl_core/textures/mcl_core_mycelium_particle.png
Normal file
BIN
mods/ITEMS/mcl_core/textures/mcl_core_mycelium_particle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in New Issue
Block a user