From a17756ce5e053b7f359165bb711b36ce3c18a261 Mon Sep 17 00:00:00 2001 From: cale Date: Thu, 21 Apr 2016 16:40:13 +0200 Subject: [PATCH] removed quest block --- mods/quests/init.lua | 75 +------------------------ mods/quests/textures/quests_block.png | Bin 237 -> 0 bytes mods/quests/textures/quests_skin_1.png | Bin 256 -> 0 bytes 3 files changed, 3 insertions(+), 72 deletions(-) delete mode 100644 mods/quests/textures/quests_block.png delete mode 100644 mods/quests/textures/quests_skin_1.png diff --git a/mods/quests/init.lua b/mods/quests/init.lua index 688c389..2654ee6 100644 --- a/mods/quests/init.lua +++ b/mods/quests/init.lua @@ -115,83 +115,13 @@ end) quests.load_quests() --- side quests - -minetest.register_node("quests:quest_block", { - description = "Quest Block", - tiles = {"quests_block.png"}, - groups = {quest = 1, cracky = 3}, - on_punch = function(pos, node, player, pointed_thing) - - local meta = minetest.get_meta(pos) - if meta:get_string("item") ~= "" then - return - end - local items = {"default:dirt", "default:sand", "default:iron_lump", "default:stone_item", "default:string"} - local item = items[math.random(5)] - if minetest.registered_nodes[item] then - meta:set_string("infotext", "Bring me some " .. minetest.registered_nodes[item].description .. ", pls :)") - else - meta:set_string("infotext", "Bring me some " .. minetest.registered_craftitems[item].description .. ", pls :)") - end - meta:set_string("item", item) - end, - - on_rightclick = function(pos, node, player, itemstack, pointed_thing) - local meta = minetest.get_meta(pos) - if not itemstack or not itemstack:to_table() then - return - end - if itemstack:to_table().name == meta:get_string("item") then - meta:set_string("infotext", "Thank you!") - xp.add_xp(player, math.random(3, 30)) - minetest.add_particlespawner({ - amount = 500, - time = 5, - minpos = {x=pos.x, y=pos.y, z=pos.z}, - maxpos = {x=pos.x, y=pos.y, z=pos.z}, - minvel = {x=-2, y=0, z=-2}, - maxvel = {x=2, y=0, z=2}, - minacc = {x=-2, y=0, z=-2}, - maxacc = {x=2, y=0, z=2}, - minexptime = 5, - maxexptime = 5, - minsize = 1, - maxsize = 1, - collisiondetection = false, - vertical = false, - texture = "default_xp.png", - }) - minetest.remove_node(pos) - else - meta:set_string("infotext", "That isnt the item I am searching for..") - end - end, -}) - +-- exploring minetest.register_node("quests:map", { description = "Map", tiles = {"quests_map_top.png", "quests_map_top.png", "quests_map.png", "quests_map.png", "quests_map.png", "quests_map.png"}, groups = {quest = 1, cracky = 3}, on_punch = function(pos, node, player, pointed_thing) xp.add_xp(player, math.random(3, 30)) - minetest.add_particlespawner({ - amount = 500, - time = 5, - minpos = {x=pos.x, y=pos.y, z=pos.z}, - maxpos = {x=pos.x, y=pos.y, z=pos.z}, - minvel = {x=-2, y=0, z=-2}, - maxvel = {x=2, y=0, z=2}, - minacc = {x=-2, y=0, z=-2}, - maxacc = {x=2, y=0, z=2}, - minexptime = 5, - maxexptime = 5, - minsize = 1, - maxsize = 1, - collisiondetection = false, - vertical = false, - texture = "default_xp.png", - }) minetest.remove_node(pos) end, }) @@ -199,7 +129,7 @@ minetest.register_node("quests:map", { minetest.register_node("quests:ray", { description = "Ray", tiles = {"quests_glowing_ray.png"}, - groups = {ray=1}, + groups = {cracky = 1, ray=1}, paramtype = "light", paramtype2 = "facedir", drawtype = "nodebox", @@ -210,4 +140,5 @@ minetest.register_node("quests:ray", { {-0.2, -0.5, -0.2, 0.2, 0.5, 0.2}, }, }, + drop = "", }) diff --git a/mods/quests/textures/quests_block.png b/mods/quests/textures/quests_block.png deleted file mode 100644 index 583dd14887cb4c77814cf7ff4509f7ca7fd13012..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 237 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1SJ1Ryj={WI14-?iy0WWg+Z8+Vb&Z8pdfpR zr>`sfeI8LEF6NKt8*TuFBuiW)N}Tg^b5rw57@Uhz6H8K46v{J8G8EiBeFMT9`NV;W z(mh=qLp+Wr>zw6GT%eken2;bK@L>7Gm-2QsDMa3 cE}dgya6Tt#b;IMK3eZXhPgg&ebxsLQ06{ZMK>z>% diff --git a/mods/quests/textures/quests_skin_1.png b/mods/quests/textures/quests_skin_1.png deleted file mode 100644 index 6017a085c3caa05922714ecdecd5ec6075797b1d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 256 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1SJ1Ryj={WI14-?iy0WWg+Z8+Vb&Z8pdfpR zr>`sfeI5}GZA+m*UN4}KWQl7;iF1B#Zfaf$gL6@8Vo7R>LV0FMhJw4NZ$Nk>pEyua zm8Xkih{y5dIX0C>%$g4_o^4iHnSM|!Yt09~?W{Z^kqyT)J~0T(T|RFoaOjlUWhS5P z%H0#*8mmdQ@_5NSF#3BuH7rH1{awD1?g7btdsf_G=K%sHraw>Ifg&qdl@Bn91#ONv szdw9&p+VNc6|9TJdZK`g2b&ofJl@L&w7gX41iFI3)78&qol`;+0H%gfxc~qF