diff --git a/mods/mcl_nether/depends.txt b/mods/mcl_nether/depends.txt index 315237e07b..3561a34cf5 100644 --- a/mods/mcl_nether/depends.txt +++ b/mods/mcl_nether/depends.txt @@ -1 +1,2 @@ mcl_core +walkover diff --git a/mods/mcl_nether/init.lua b/mods/mcl_nether/init.lua index 74a5e60c1d..9bcd064421 100644 --- a/mods/mcl_nether/init.lua +++ b/mods/mcl_nether/init.lua @@ -36,6 +36,21 @@ minetest.register_node("mcl_nether:netherrack", { sounds = mcl_core.node_sound_stone_defaults(), }) +minetest.register_node("mcl_nether:magma", { + description = "Magma Block", + stack_max = 64, + tiles = {{name="mcl_nether_magma.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1.5}}}, + is_ground_content = true, + light_source = 3, + groups = {cracky=3,building_block=1}, + sounds = mcl_core.node_sound_stone_defaults(), + -- From walkover mod + on_walk_over = function(loc, nodeiamon, player) + -- Hurt players standing on top of this block + player:set_hp(player:get_hp() - 1) + end, +}) + minetest.register_node("mcl_nether:nether_brick", { -- Original name: Nether Brick description = "Nether Brick Block", @@ -162,6 +177,14 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "mcl_nether:magma", + recipe = { + {'mcl_mobitems:magma_cream', 'mcl_mobitems:magma_cream'}, + {'mcl_mobitems:magma_cream', 'mcl_mobitems:magma_cream'}, + } +}) + minetest.register_craft({ type = "cooking", output = "mcl_nether:netherbrick", diff --git a/mods/mcl_nether/textures/mcl_nether_magma.png b/mods/mcl_nether/textures/mcl_nether_magma.png new file mode 100644 index 0000000000..08d2e0955b Binary files /dev/null and b/mods/mcl_nether/textures/mcl_nether_magma.png differ