diff --git a/nether/init.lua b/nether/init.lua index 235d979..a058c7e 100644 --- a/nether/init.lua +++ b/nether/init.lua @@ -419,6 +419,16 @@ minetest.register_node("nether:nether_torch_bottom", { sounds = default.node_sound_defaults(), }) +-- Nether Pearl +minetest.register_craftitem("nether:nether_pearl", { + description = "Nether Pearl", + wield_image = "nether_pearl.png", + inventory_image = "nether_pearl.png", + visual = "sprite", + physical = true, + textures = {"nether_pearl.png"}, +}) + -- Create the Nether minetest.register_on_generated(function(minp, maxp) local addpos = {} @@ -736,6 +746,7 @@ minetest.register_node("nether:nether_portal_creator", { description = "Nether Portal Creator", tile_images = {"nether_portal_creator.png"}, }) + minetest.register_abm({ nodenames = "nether:nether_portal_creator", interval = 1.0, @@ -808,7 +819,7 @@ minetest.register_craft({ output = "nether:nether_portal_creator", recipe = { {"obsidian:obsidian_block", "obsidian:obsidian_block", "obsidian:obsidian_block"}, - {"obsidian:obsidian_block", "default:mese", "obsidian:obsidian_block"}, + {"obsidian:obsidian_block", "nether:nether_pearl", "obsidian:obsidian_block"}, {"obsidian:obsidian_block", "obsidian:obsidian_block", "obsidian:obsidian_block"}, } }) diff --git a/nether/init.lua~ b/nether/init.lua~ index cbc6241..5add524 100644 --- a/nether/init.lua~ +++ b/nether/init.lua~ @@ -24,7 +24,7 @@ NETHER_HEAL_APPLE_FREQ = 10 -- Start position for the Throne of Hades (y is relative to the bottom of the nether) HADES_THRONE_STARTPOS = {x=0, y=1, z=0} -- Spawn pos for when the nether hasn't been loaded yet (i.e. no portal in the nether) (y is relative to the bottom of the nether) -NETHER_SPAWNPOS = {x=0, y=4, z=0} +NETHER_SPAWNPOS = {x=0, y=5, z=0} -- Throne of Hades HADES_THRONE = { -- Floor 1 @@ -419,6 +419,16 @@ minetest.register_node("nether:nether_torch_bottom", { sounds = default.node_sound_defaults(), }) +-- Nether Pearl +minetest.register_craftitem("nether:nether_pearl", { + description = "Nether Pearl", + wield_image = "nether_pearl.png", + wield_image = "nether_pearl.png", + visual = "sprite", + physical = true, + textures = {"nether_pearl.png"}, +}) + -- Create the Nether minetest.register_on_generated(function(minp, maxp) local addpos = {} @@ -736,6 +746,7 @@ minetest.register_node("nether:nether_portal_creator", { description = "Nether Portal Creator", tile_images = {"nether_portal_creator.png"}, }) + minetest.register_abm({ nodenames = "nether:nether_portal_creator", interval = 1.0, @@ -808,7 +819,7 @@ minetest.register_craft({ output = "nether:nether_portal_creator", recipe = { {"obsidian:obsidian_block", "obsidian:obsidian_block", "obsidian:obsidian_block"}, - {"obsidian:obsidian_block", "default:mese", "obsidian:obsidian_block"}, + {"obsidian:obsidian_block", "nether:nether_pearl", "obsidian:obsidian_block"}, {"obsidian:obsidian_block", "obsidian:obsidian_block", "obsidian:obsidian_block"}, } }) diff --git a/nether/textures/nether_pearl.png b/nether/textures/nether_pearl.png new file mode 100644 index 0000000..81d8d12 Binary files /dev/null and b/nether/textures/nether_pearl.png differ