From d707f0a6a3940e103807a795c7e29f8cbd31be6a Mon Sep 17 00:00:00 2001 From: Joel Leclerc Date: Wed, 18 Apr 2012 21:00:45 -0600 Subject: [PATCH] Added nether pearls --- nether/init.lua | 13 ++++++++++++- nether/init.lua~ | 15 +++++++++++++-- nether/textures/nether_pearl.png | Bin 0 -> 710 bytes 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 nether/textures/nether_pearl.png 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 0000000000000000000000000000000000000000..81d8d125948cb20bd897fd4f26df8a0a8ebab917 GIT binary patch literal 710 zcmV;%0y+JOP)Px#24YJ`L;$G(0001lbVir}000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iyb` z0y7znfHB(u000?uMObu0Z*6U5Zgc=ca%Ew3Wn>_CX>@2HM@dakSAh-}0006ZNkl5SIqMKMsurSaND_avgOaBo61QRR_jj^^eT4*dJ z+G&DFAv>WU0b@XScV=gI--pE=SQGRnC-1)8ch0@@<~$h;26*oYA?Rw`47Qeo&r*U1 z05M={36+(PB5@sK3?iayuh%1lfOC%Sn?~rLqyPjM3dj(Zsf4lhZHb}?5kZQgz&Xds zvs&;Td??{nME(*mB_adU4>J|X^PJ=7H$wkMiu2%tA_Uldp%X0KSE2~SMg^)D6J{QK zl{nZoc{9b9WbdH)8nWYZ`~aVyLTwJNt%EfxVmm1pY#Z5ooP_S7cDEi5K0(of)h94_ zQ$>D$fp?E!bP_J#DyI+_TSzeZUW)BNuLJ##e*4ME>To+scgA7I{q18N3 zZZ)+w$iNoha2vHQVwv)-kVuI^IDB+7TFMvY#^~L0jEF#Fi sp7V#h%i-5{dNzRo(~X4Nug*W`KiPdHNWv@0*Z=?k07*qoM6N<$f~7(w1poj5 literal 0 HcmV?d00001