Add minetest-mod-womd
This commit is contained in:
commit
7629cddbee
0
minetest-mod-womd/README.md
Normal file
0
minetest-mod-womd/README.md
Normal file
32
minetest-mod-womd/init.lua
Normal file
32
minetest-mod-womd/init.lua
Normal file
@ -0,0 +1,32 @@
|
||||
minetest.register_node("womd:radioactive_air", {
|
||||
tiles = {"radioactive_air.png"},
|
||||
drawtype = "glasslike",
|
||||
paramtype = "none",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
air_equivalent = true,
|
||||
drop = "",
|
||||
damage_per_second = 1,
|
||||
groups = {not_in_creative_inventory=1},
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"womd:radioactive_air"},
|
||||
neighbors = {"air"},
|
||||
interval = 30.0,
|
||||
chance = 10,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
minetest.set_node(pos, {name = "air"})
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"air"},
|
||||
neighbors = {"womd:radioactive_air"},
|
||||
interval = 30.0,
|
||||
chance = 15,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
minetest.set_node(pos, {name = "womd:radioactive_air"})
|
||||
end,
|
||||
})
|
||||
BIN
minetest-mod-womd/textures/radioactive_air.png
Normal file
BIN
minetest-mod-womd/textures/radioactive_air.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 185 B |
Loading…
x
Reference in New Issue
Block a user