Add magma mod, adds... magma! It can be created by putting lava on cobblestone.

master
ROllerozxa 2021-04-22 21:06:16 +02:00
parent a6a062cbc6
commit 847a31cede
3 changed files with 34 additions and 0 deletions

33
magma/init.lua Normal file
View File

@ -0,0 +1,33 @@
--- Magma block!
magma_texture = {{
name = "magma.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 8,
},
backface_culling = false,
}}
minetest.register_node("magma:magma", {
description = "Magma",
tiles = magma_texture,
special_tiles = magma_texture,
is_ground_content = false,
damage_per_second = 2,
light_source = 8,
groups = { cracky = 3 },
})
minetest.register_abm({
label = "Generate magma",
nodenames = {"minecraft:cobble"},
neighbors = {"minecraft:lava_source", "minecraft:lava_flowing"},
interval = 1.0,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
minetest.set_node(pos, { name = "magma:magma" })
end
})

1
magma/mod.conf Normal file
View File

@ -0,0 +1 @@
name = magma

BIN
magma/textures/magma.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 776 B