From c7af69f9f1a339d3ae8dc3e42217721af9666e16 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 9 Jan 2017 14:56:08 +0100 Subject: [PATCH] Remove the extremely buggy potions --- mods/potions/modpack.txt | 0 mods/potions/potions/README.txt | 33 -- mods/potions/potions/init.lua | 66 --- mods/potions/potions/lib/Vec3_1-0.lua | 398 ------------------ .../potions/textures/cauldron_bottom.png | Bin 170 -> 0 bytes .../potions/textures/cauldron_inner.png | Bin 408 -> 0 bytes .../potions/textures/cauldron_side.png | Bin 759 -> 0 bytes .../potions/potions/textures/cauldron_top.png | Bin 414 -> 0 bytes .../potions/textures/potions_black.png | Bin 164 -> 0 bytes .../potions/potions/textures/potions_blue.png | Bin 128 -> 0 bytes .../potions/textures/potions_bottle.png | Bin 230 -> 0 bytes .../potions/textures/potions_brown.png | Bin 176 -> 0 bytes .../potions/potions/textures/potions_cyan.png | Bin 197 -> 0 bytes .../potions/textures/potions_darkblue.png | Bin 192 -> 0 bytes .../potions/textures/potions_darkgrey.png | Bin 154 -> 0 bytes .../potions/textures/potions_darkred.png | Bin 181 -> 0 bytes .../potions/potions/textures/potions_dull.png | Bin 171 -> 0 bytes .../potions/textures/potions_green.png | Bin 181 -> 0 bytes .../potions/textures/potions_lightgrey.png | Bin 154 -> 0 bytes .../potions/textures/potions_orange.png | Bin 187 -> 0 bytes .../potions/textures/potions_particle.png | Bin 574 -> 0 bytes .../potions/potions/textures/potions_pink.png | Bin 337 -> 0 bytes .../potions/textures/potions_purple.png | Bin 207 -> 0 bytes mods/potions/potions/textures/potions_red.png | Bin 192 -> 0 bytes .../potions/textures/potions_shatter.png | Bin 108 -> 0 bytes .../potions/textures/potions_white.png | Bin 154 -> 0 bytes .../potions/textures/potions_yellow.png | Bin 192 -> 0 bytes mods/potions/potionspack/depends.txt | 1 - mods/potions/potionspack/init.lua | 161 ------- 29 files changed, 659 deletions(-) delete mode 100644 mods/potions/modpack.txt delete mode 100644 mods/potions/potions/README.txt delete mode 100644 mods/potions/potions/init.lua delete mode 100644 mods/potions/potions/lib/Vec3_1-0.lua delete mode 100644 mods/potions/potions/textures/cauldron_bottom.png delete mode 100644 mods/potions/potions/textures/cauldron_inner.png delete mode 100644 mods/potions/potions/textures/cauldron_side.png delete mode 100644 mods/potions/potions/textures/cauldron_top.png delete mode 100644 mods/potions/potions/textures/potions_black.png delete mode 100644 mods/potions/potions/textures/potions_blue.png delete mode 100644 mods/potions/potions/textures/potions_bottle.png delete mode 100644 mods/potions/potions/textures/potions_brown.png delete mode 100644 mods/potions/potions/textures/potions_cyan.png delete mode 100644 mods/potions/potions/textures/potions_darkblue.png delete mode 100644 mods/potions/potions/textures/potions_darkgrey.png delete mode 100644 mods/potions/potions/textures/potions_darkred.png delete mode 100644 mods/potions/potions/textures/potions_dull.png delete mode 100644 mods/potions/potions/textures/potions_green.png delete mode 100644 mods/potions/potions/textures/potions_lightgrey.png delete mode 100644 mods/potions/potions/textures/potions_orange.png delete mode 100644 mods/potions/potions/textures/potions_particle.png delete mode 100644 mods/potions/potions/textures/potions_pink.png delete mode 100644 mods/potions/potions/textures/potions_purple.png delete mode 100644 mods/potions/potions/textures/potions_red.png delete mode 100644 mods/potions/potions/textures/potions_shatter.png delete mode 100644 mods/potions/potions/textures/potions_white.png delete mode 100644 mods/potions/potions/textures/potions_yellow.png delete mode 100644 mods/potions/potionspack/depends.txt delete mode 100644 mods/potions/potionspack/init.lua diff --git a/mods/potions/modpack.txt b/mods/potions/modpack.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/mods/potions/potions/README.txt b/mods/potions/potions/README.txt deleted file mode 100644 index 46df19e1e..000000000 --- a/mods/potions/potions/README.txt +++ /dev/null @@ -1,33 +0,0 @@ ---Potions by Traxie21-- ---This mod provides no default potions. If you would like some, download potionspack at github.com/Traxie21/potionspack-- - - ---API DOCUMENTATION-- - -Potion Registering Format: - -potions.register_potion(NAME, COLOR, EXPIRE TIME, ACTIVATION FUNCTION, EXPIRE FUNCTION) - -NAME: Name of potion. Invalid characeters are automagically stripped from it. - -COLOR: Color of potion image in-game, available colors: black, brown, cyan, darkblue, darkgrey, lightgrey, darkred, dull, green, orange, pink, purple, red, white, and yellow. - -EXPIRE TIME: Number in seconds. - -ACTIVATION FUNCTION: The function that is run when the ground is right-clicked with the potion. - -EXPIRE FUNCTION: The function that is run when the expire time runs out. - - ---EXAMPLE-- - -potions.register_potion("Anti Gravity", "purple", 60, -function(itemstack, user, pointed_thing) - user:set_physics_override(3, 1.5, 0.5) - minetest.chat_send_player(user:get_player_name(), "You have been blessed with Anti Gravity for 60 seconds!") -end, - -function(itemstack, user, pointed_thing) - user:set_physics_override(1,1,1) - minetest.chat_send_player(user:get_player_name(), "Anti Gravity has worn off.") -end) diff --git a/mods/potions/potions/init.lua b/mods/potions/potions/init.lua deleted file mode 100644 index 6cf0a7314..000000000 --- a/mods/potions/potions/init.lua +++ /dev/null @@ -1,66 +0,0 @@ -local MOD_NAME = minetest.get_current_modname() - local MOD_PATH = minetest.get_modpath(MOD_NAME) - local Vec3 = dofile(MOD_PATH.."/lib/Vec3_1-0.lua") - -potions = {} - - - -function potions.register_potion(iname, color, exptime, action, expaction) - iname = string.gsub(iname, "[-%[%]()1023456789 ]", "") - minetest.register_craftitem(minetest.get_current_modname()..":"..iname:lower(), { - description = iname.." Potion", - inventory_image = "potions_bottle.png^potions_"..color..".png", - - on_place = function(itemstack, user, pointed_thing) - action(itemstack, user, pointed_thing) - minetest.after(exptime, expaction, itemstack, user, pointed_thing) - itemstack:take_item() - --Particle Code - --Potions Particles - minetest.add_particlespawner(30, 0.2, - pointed_thing.above, pointed_thing.above, - {x=1, y= 2, z=1}, {x=-1, y= 2, z=-1}, - {x=0.2, y=0.2, z=0.2}, {x=-0.2, y=0.5, z=-0.2}, - 5, 10, - 1, 3, - false, "potions_"..color..".png") - - --Shatter Particles - minetest.add_particlespawner(40, 0.1, - pointed_thing.above, pointed_thing.above, - {x=2, y=0.2, z=2}, {x=-2, y=0.5, z=-2}, - {x=0, y=-6, z=0}, {x=0, y=-10, z=0}, - 0.5, 2, - 0.2, 5, - true, "potions_shatter.png") - - local dir = Vec3(user:get_look_dir()) *20 - minetest.add_particle( - {x=user:getpos().x, y=user:getpos().y+1.5, z=user:getpos().z}, {x=dir.x, y=dir.y, z=dir.z}, {x=0, y=-10, z=0}, 0.2, - 6, false, "potions_bottle.png^potions_"..color..".png") - return itemstack - - end, - }) -end - - -minetest.register_craftitem("potions:glass_bottle", { - description = "Glass Bottle", - inventory_image = "potions_bottle.png", - on_place = function(itemstack, user, pointed_thing) - itemstack:take_item() - --Shatter Particles - minetest.add_particlespawner(40, 0.1, - pointed_thing.above, pointed_thing.above, - {x=2, y=0.2, z=2}, {x=-2, y=0.5, z=-2}, - {x=0, y=-6, z=0}, {x=0, y=-10, z=0}, - 0.5, 2, - 0.2, 5, - true, "potions_shatter.png") - return itemstack - end, -}) - - diff --git a/mods/potions/potions/lib/Vec3_1-0.lua b/mods/potions/potions/lib/Vec3_1-0.lua deleted file mode 100644 index 85d91ae5f..000000000 --- a/mods/potions/potions/lib/Vec3_1-0.lua +++ /dev/null @@ -1,398 +0,0 @@ -local THIS_VERSION = "1.0" - ---- 3D vector class/operations. - -- - -- Note that methods can be called in either an object-oriented way: - -- v1 = Vec3(1, 2, 3) - -- v2 = v1:add({ x = 2, y = 2, z = 0 }) - -- or as simple functions: - -- Vec3.add({ x = 1, y = 2, z = 3 }, { x = 2, y = 2, z = 0 }) - -- - -- All methods that can be called on a Vec3 using ":" may be called on a table - -- using the second functional syntax, but the first parameter MUST have the - -- expected components "x", "y", and "z". If a vector is used as the second - -- paramter, it may instead be a list/array with numeric indices, like - -- { 1.0, 2.0, 3.0 } in place of { x = 1.0, y = 2.0, z = 3.0 }. - -- - -- @author prestidigitator (as registered at forum.minetest.net) - -- @copyright 2013, licensed under WTFPL - -- -local Vec3 = {} -local Vec3_meta = {} -local Vec3_inst_meta = {} - -Vec3.VERSION = THIS_VERSION - -setmetatable(Vec3, Vec3_meta) -Vec3_inst_meta.__index = Vec3 - ---- Constructs a Vec3 from three numbers. - -- - -- Call with one of: - -- Vec3.new(x, y, z) - -- Vec3(x, y, z) - -- - -- @return a new Vec3 object -local function Vec3_new(x, y, z) - local obj = { x = x or 0.0, y = y or 0.0, z = z or 0.0 } - setmetatable(obj, Vec3_inst_meta) - return obj -end -Vec3.new = Vec3_new - ---- Constructs a new copy of a Vec3. - -- - -- Call with one of: - -- vec:new_copy() - -- Vec3.new_copy(vec) - -- Vec3(vec) - -- - -- @return a new Vec3 object that is a copy of the parameter -local function Vec3_new_copy(v) - local obj = { x = v.x or v[1] or 0.0, - y = v.y or v[2] or 0.0, - z = v.z or v[3] or 0.0 } - setmetatable(obj, Vec3_inst_meta) - return obj -end -Vec3.new_copy = Vec3_new_copy - -Vec3_meta.__call = function(class, a, b, c) - if type(a) == "table" then - return Vec3.new_copy(a) - else - return Vec3.new(a, b, c) - end -end - ---- Computes the square of the length of a Vec3. - -- - -- Call with one of: - -- vec:len_sq() - -- Vec3.len_sq(vec) - -- - -- @return a number -local function Vec3_len_sq(v) - return v.x^2 + v.y^2 + v.z^2 -end -Vec3.len_sq = Vec3_len_sq - ---- Computes the length of a Vec3. - -- - -- Call with one of: - -- vec:len() - -- Vec3.len(vec) - -- - -- @return a number -local function Vec3_len(v) - return math.sqrt(v.x^2 + v.y^2 + v.z^2) -end -Vec3.len = Vec3_len - ---- Computes a unit vector pointing in the same direction as a Vec3. - -- Undefined for a zero-vector and may throw an error. - -- - -- Call with one of: - -- vec:unit() - -- Vec3.unit(vec) - -- - -- @return a new Vec3 with length 1.0 -local function Vec3_unit(v) - local len = math.sqrt(v.x^2 + v.y^2 + v.z^2) - return Vec3.new(v.x/len, v.y/len, v.z/len) -end -Vec3.unit = Vec3_unit - ---- Multiplies a Vec3 by a number. - -- - -- Call with one of: - -- vec:mul(m) - -- Vec3.mul(vec, m) - -- vec*m - -- m*vec - -- - -- @return a new Vec3 object with the result of the operation -local function Vec3_mul(v, m) - local mn = tonumber(m) - if not mn then error("Can't multiply vector by non-scalar") end - return Vec3.new(v.x*mn, v.y*mn, v.z*mn) -end -Vec3.mul = Vec3_mul -Vec3_inst_meta.__mul = function(a, b) - if type(a) == "table" then - return Vec3_mul(a, b) - else - return Vec3_mul(b, a) - end -end - ---- Divides a Vec3 by a number. - -- - -- Call with one of: - -- vec:div(m) - -- Vec3.div(vec, m) - -- vec/m - -- - -- @return a new Vec3 object with the result of the operation -local function Vec3_div(v, m) - return Vec3.new(v.x/m, v.y/m, v.z/m) -end -Vec3.div = Vec3_div -Vec3_inst_meta.__div = Vec3_div - ---- Negates a Vec3 (signs of all components are inverted). - -- - -- Call with one of: - -- vec:unm() - -- Vec3.unm(vec) - -- -vec - -- - -- @return a new Vec3 object with the result of the operation -local function Vec3_unm(v) - return Vec3.new(-v.x, -v.y, -v.z) -end -Vec3.unm = Vec3_unm -Vec3_inst_meta.__unm = Vec3_unm - ---- Adds two Vec3s or a Vec3 composed of three given components. - -- - -- Call with one of: - -- vec1:add(vec2) - -- vec1:add(x, y, z) - -- Vec3.add(vec1, vec2) - -- Vec3.add(vec1, x, y, z) - -- vec1 + vec2 - -- - -- @return a new Vec3 object with the result of the operation -local function Vec3_add(v, a, b, c) - if type(a) == "table" then - return Vec3.new(v.x + (a.x or a[1] or 0.0), - v.y + (a.y or a[2] or 0.0), - v.z + (a.z or a[3] or 0.0)) - else - return Vec3.new(v.x + a, v.y + b, v.z + c) - end -end -Vec3.add = Vec3_add - ---- Subtracts two Vec3s or a Vec3 composed of three given components. - -- - -- Call with one of: - -- vec1:sub(vec2) - -- vec1:sub(x, y, z) - -- Vec3.sub(vec1, vec2) - -- Vec3.sub(vec1, x, y, z) - -- vec1 - vec2 - -- - -- @return a new Vec3 object with the result of the operation -local function Vec3_sub(v, a, b, c) - if type(a) == "table" then - return Vec3.new(v.x - (a.x or a[1] or 0.0), - v.y - (a.y or a[2] or 0.0), - v.z - (a.z or a[3] or 0.0)) - else - return Vec3.new(v.x - a, v.y - b, v.z - c) - end -end -Vec3.sub = Vec3_sub - ---- Tests two Vec3s or a Vec3 composed of three given components for - -- exact component-wise equality. - -- - -- Call with one of: - -- vec1:eq(vec2) - -- vec1:eq(x, y, z) - -- Vec3.eq(vec1, vec2) - -- Vec3.eq(vec1, x, y, z) - -- vec1 == vec2 - -- vec1 ~= vec2 - -- Note that because of built-in Lua logic "==" and "~=" work ONLY if - -- vec1 and vec2 are actually Vec3s (not tables). - -- - -- @return a new Vec3 object with the result of the operation -local function Vec3_eq(v, a, b, c) - if type(a) == "table" then - return v.x == (a.x or a[1] or 0.0) and - v.y == (a.y or a[2] or 0.0) and - v.z == (a.z or a[3] or 0.0) - else - return v.x == a and v.y == b and v.z == c - end -end -Vec3.eq = Vec3_eq - ---- Takes the dot product of a Vec3 and a Vec3s or a Vec3 composed of - -- three given components. - -- - -- Call with one of: - -- vec1:dot(vec2) - -- vec1:dot(x, y, z) - -- Vec3.dot(vec1, vec2) - -- Vec3.dot(vec1, x, y, z) - -- - -- @return a number -local function Vec3_dot(v, a, b, c) - if type(a) == "table" then - return v.x * (a.x or a[1] or 0.0) + - v.y * (a.y or a[2] or 0.0) + - v.z * (a.z or a[3] or 0.0) - else - return v.x * a + v.y * b + v.z * c - end -end -Vec3.dot = Vec3_dot - ---- Takes the cross product of a Vec3 and a Vec3s or a Vec3 composed of - -- three given components. - -- - -- Call with one of: - -- vec1:cross(vec2) - -- vec1:cross(x, y, z) - -- Vec3.cross(vec1, vec2) - -- Vec3.cross(vec1, x, y, z) - -- - -- @return a new Vec3 with the result of the operation -local function Vec3_cross(v, a, b, c) - local ux, uy, uz - if type(a) == "table" then - ux = a.x or a[1] or 0.0 - uy = a.y or a[2] or 0.0 - uz = a.z or a[3] or 0.0 - else - ux = a or 0.0 - uy = b or 0.0 - uz = c or 0.0 - end - - return Vec3.new(v.y*uz - v.z*uy, v.z*ux - v.x*uz, v.x*uy - v.y*ux) -end -Vec3.cross = Vec3_cross - ---- Rotates this (the first) vector around the second vector by the - -- given angle. - -- - -- Call with one of: - -- vec:rot_around(axis, angle) - -- Vec3.rot_around(vec, axis, angle) - -- - -- @param axis - -- The axis about which to rotate. - -- @param angle - -- The angle by which to rotate this vector, in radians. - -- @return - -- a new Vec3 with the result of the operation. -local function Vec3_rot_around(v, axis, angle) - local uaxis = Vec3.new_copy(axis):unit() - - local alen = uaxis:dotvec(v) - local avec = uaxis:mul(alen) - - local pvec = Vec3.subvec(v, avec) - local rvec = uaxis:crossvec(v) - - local v1 = pvec:mul(math.cos(angle)) - local v2 = rvec:mul(math.sin(angle)) - - return avec:addvec(v1):addvec(v2) -end -Vec3.rot_around = Vec3_rot_around - ---- Adds two Vec3s. Optimized for pure Vec3/table operations by removing - -- type checking and conditionals. If called with Vec3-likes table(s), - -- ensure all expected components "x", "y", and "z" exist. - -- - -- Call with one of: - -- vec1:addvec(vec2) - -- Vec3.addvec(vec1, vec2) - -- - -- @return a new Vec3 object with the result of the operation -local function Vec3_addvec(v1, v2) - return Vec3.new(v1.x + v2.x, v1.y + v2.y, v1.z + v2.z) -end -Vec3.addvec = Vec3_addvec -Vec3_inst_meta.__add = Vec3_addvec - ---- Subtracts two Vec3s. Optimized for pure Vec3/table operations by - -- removing type checking and conditionals. If called with Vec3-likes - -- table(s), ensure all expected components "x", "y", and "z" exist. - -- - -- Call with one of: - -- vec1:subvec(vec2) - -- Vec3.subvec(vec1, vec2) - -- - -- @return a new Vec3 object with the result of the operation -local function Vec3_subvec(v1, v2) - return Vec3.new(v1.x - v2.x, v1.y - v2.y, v1.z - v2.z) -end -Vec3.subvec = Vec3_subvec -Vec3_inst_meta.__sub = Vec3_subvec - ---- Tests two Vec3s for exact component-wise equality. Optimized for pure - -- Vec3/table operations by removing type checking and conditionals. - -- If called with Vec3-likes table(s), ensure all expected components - -- "x", "y", and "z" exist. - -- - -- Call with one of: - -- vec1:eqvec(vec2) - -- Vec3.eqvec(vec1, vec2) - -- - -- @return a new Vec3 object with the result of the operation -local function Vec3_eqvec(v1, v2) - return v1.x == v2.x and v1.y == v2.y and v1.z == v2.z -end -Vec3.eqvec = Vec3_eqvec -Vec3_inst_meta.__eq = Vec3_eqvec - ---- Takes the dot product of two Vec3s. Optimized for pure Vec3/table - -- operations by removing type checking and conditionals. If called - -- with Vec3-likes table(s), ensure all expected components "x", "y", - -- and "z" exist. - -- - -- Call with one of: - -- vec1:dotvec(vec2) - -- Vec3.dotvec(vec1, vec2) - -- - -- @return a number -local function Vec3_dotvec(v1, v2) - return v1.x * v2.x + v1.y * v2.y + v1.z * v2.z -end -Vec3.dotvec = Vec3_dotvec - ---- Takes the cross product of two Vec3s. Optimized for pure Vec3/table - -- operations by removing type checking and conditionals. If called - -- with Vec3-likes table(s), ensure all expected components "x", "y", - -- and "z" exist. - -- - -- Call with one of: - -- vec1:crossvec(vec2) - -- Vec3.crossvec(vec1, vec2) - -- - -- @return a new Vec3 with the result of the operation -local function Vec3_crossvec(v1, v2) - return Vec3.new(v1.y*v2.z - v1.z*v2.y, - v1.z*v2.x - v1.x*v2.z, - v1.x*v2.y - v1.y*v2.x) -end -Vec3.crossvec = Vec3_crossvec - ---- Converts Vec3 to a string with format "(x,y,z)". - -- - -- Call with one of: - -- vec:tostring() - -- Vec3.tostring(vec) - -- tostring(vec) - -- - -- @return a string -local function Vec3_tostring(v) - return "(".. - (v.x or v[1] or "0") - ..",".. - (v.y or v[2] or "0") - ..",".. - (v.z or v[3] or "0") - ..")" -end -Vec3.tostring = Vec3_tostring -Vec3_inst_meta.__tostring = Vec3_tostring - -return Vec3 diff --git a/mods/potions/potions/textures/cauldron_bottom.png b/mods/potions/potions/textures/cauldron_bottom.png deleted file mode 100644 index f6391575dbdaef1b78d65a769a389fa5c069bea3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 170 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnH3?%tPCZz)@&H$ef*Z=?j>+0(2>FIfA_`CuN zGL{7S1v5B2yO9Ru_nWId0UCh&5EG5WWP!t?^7m58p~@V=83Dvzc1_n P8qMJ8>gTe~DWM4fO<^?Z diff --git a/mods/potions/potions/textures/cauldron_inner.png b/mods/potions/potions/textures/cauldron_inner.png deleted file mode 100644 index b121836dbcbc25b48e799e7e0d8064637f453239..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 408 zcmV;J0cZY+P)*sRxkawtNU%8W z3*q^~tfGMw-G7d>^AN%Z<2AxNqKnwa(>>e>879$PcLl*+S21Pk$;bIsS6^RU0SGT; zK^+8;owyJfU_nWk7FZueycw7f0wHnA@gg%K0~D3AQTjy-5O}1F6hOHQCy;Hj}yS5LKEIF8jgC1Q)L(!3&r&3Wn&H5GfA^o z^8Lp>_*3tp2ylq`2J5-I2fT)j=oC+0RtkJiES`4a$-{xK5i~dh^2nTiATK~@m}V`| z0W4lHFb~N<0qryyfiNAA3~&`jyqFjOBftQ&0R8|Ev{bIciLwv?0000K0ZG`KR`f0K|w)6LPA4BLqtSG zMMXtMMn*?RM@UFWNl8gcN=i#hOH52mO-)TsPEJoxPlp0J9RL6T4s=pZQvd-00RamP z3=9kn4Gj*;TbmmI00Ik1L_t&-8C}5(j^tDjMZuGwXV<7jizTrC_0e6nUuIrLNQi+5 z`(y1zXPv}m2}0Je+k7ale4gVW>d?e`2E{Z5DYke9hfM6~@G2lQ;gKys)-R9Wj>i(B zcg%t|Nzkovmtv>aK06H30xush(>b;axX01wpSb3Z8Mc>?Noc?EDL>DYeS_&fC#%?u zmnoXp6+SmOSxFtQn+fLhL)448uCqK~X@MaSg3O>kV z&tZ8(e9UVvf9})P8`|o4R*lVF^}--!o^vkddlo;5MZdV*iZ{~^d-Tn>V?Qz6F5o#T zHrWv$V=gu|$K$f2xOT)l?=*Y6SG|SQFF@`cX6X}BOt_xQmhdp5D z5bb8yU{^PjNdAhK&FDZH^KEkHT2El@+?vD*XV`}3a_FxWb5I>VYq6hrX_i7h;=Ika zKcktmHBdI=Boz}9?5Ky`zQi4nV>^it{Mcj4Y1x>$2C$KhO*|ea=e9#kNh9w8rwsc# zOxcrgMVRSJ-xB|@`2F)T8c*E#$w%T}4mx0iGvHb^n_oQ&dz`&HER400001bW%=J06^y0W&i*H_(?=T zR2Ug`!Ao-7AQS+=<_R>PEN1S1%TzhGjCdkmq_U&Cym+KRf0<6M@Z*|W3^u{Trs{s9 zxm>tNl~i6nXoC<*v@fbG1f%{6m8J?|6U{@FreN@=R(n7E_l@+=p59T|t!!_hq_r+g zX|31EW}#4GvsvkiunkLn3JfbZGo)hSMn)=Dh7?FE!xf~JyGt-F-Je1?t$cb$r&{== z#8b5tMR+zV!3bTmvJcU%?TBWrBQ$BHr)bhjkfEKH;)la&C8>w0V#6d-AqqqLCL(bm zQH0GDrlGkB<-JjK`^C+1=M;l-dN4{zMW=_G!{HRFqWLn+zrgclf-kGf-v9sr07*qo IM6N<$f@kliO8@`> diff --git a/mods/potions/potions/textures/potions_black.png b/mods/potions/potions/textures/potions_black.png deleted file mode 100644 index c8cde5338cd20d8308d649393976e56d6f744e60..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 164 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfv{s5m4S0F7UBqS^>EFvNzDk^%j zYDq0nh_NKdFPOpM*^M+H$Jx`xF+^kH)iZ{I4FLj2E<|*+Zr&hvZNFMnn#4QtkR>&) z5AuEe0{9aOSf>^?W{Q61Q@wio8)K60O@>w63DWJX`$`#~yKsN~?@;0hG>*a3)z4*} HQ$iB}$fPin diff --git a/mods/potions/potions/textures/potions_blue.png b/mods/potions/potions/textures/potions_blue.png deleted file mode 100644 index 2cb3fed896c312902102bea5de42c993da248080..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 128 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnL3?x0byx0z;*aCb)T!AzL!~M9BhCN- diff --git a/mods/potions/potions/textures/potions_bottle.png b/mods/potions/potions/textures/potions_bottle.png deleted file mode 100644 index d069155ad783cf9685daa762122477293d579a87..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 230 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfv-2k5u*Z=?jPd67^U?;uOU3HbK z;wC@stpU2bcJ0~|YIrcl@oW#x<~l~X5?%fS#}pXk zJ2V^u8&Yar3Mj!?666=m;PC858j$1Z>EaloG4bjdL%{<9Jck1UIa&h@fQa>T`-QFL zd!O;oUGna*S0HV^Y@x-<#g?m=TCQ1U zxo(Bk`jyrjR$FgcW3zR=?e-0}J2sWRJL(8j$5;~N7tG-B>_!@p7@{%p>Ip-} z0|p!n2e&t{>Lf67M;vg{NmwYBr1)$VgHg$=UiNz7%5L518;%?oFg(=Wp;cb;HSmey s(O(5yN+#Dzd|1KXI4??!=i^!KyBso_moF5)02FVdQ&MBb@08br98UO$Q diff --git a/mods/potions/potions/textures/potions_darkblue.png b/mods/potions/potions/textures/potions_darkblue.png deleted file mode 100644 index e975c7696b8a1e832277872c64fbb6989b1074e0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 192 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfv#Q>iWS0JsY-lwlI*-&eyk=ATu zo%tp@i_P?wo9nMK*I#2{uzuRy@7h2`j3q&S!3+-1ZlnP@zMd|QAsQ2}o-kxQV8G#e zFrAS*;=rNp4Xio|3&oNYwN@*nytpFG|4;3;*l9h%)?)_TLCz`LTdrHqy7lmgWy^N` mS2Bz?>l8oS6+J0%f6v)?sfpXa8T$bZX7F_Nb6Mw<&;$V4e?Kz- diff --git a/mods/potions/potions/textures/potions_darkgrey.png b/mods/potions/potions/textures/potions_darkgrey.png deleted file mode 100644 index c98ba8aee771a153a800789e0719e7e93bc05729..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 154 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnH3?%tPCZz)@o&cW^S0L@;;^OA!=I-upIY(C) z$Y(4G@(X5gcy=QV$g%NsaSV|NPfl2%`ruc?xd;3X=|?s%GK_HE$rK>@dOzEd#YT32 x_)}d|S&kh4yx34;-?7C;5&!FB8%`;3FjVf5IDe_-13%Cl22WQ%mvv4FO#olTFL?j} diff --git a/mods/potions/potions/textures/potions_darkred.png b/mods/potions/potions/textures/potions_darkred.png deleted file mode 100644 index 1d0768f336c5d6d74d2af8de41c64fd09294c240..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 181 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfvi2$DvS0LS`s@kijHc>-kvWCVC zP0g8FTC=sZOjmwx1IjU$1o;IsI6S+N2IP2qx;TbtOuTx=koSOr0L#Ip30(dUHEdcJ z7l`=S=PuEBuN1m%PSV5tt^N~A86ws9-(WBR=DrTV?yCsO@i=dsa>2UGRx%MQ=OnzEVcJ{Q}{~#q^_q PMlyK1`njxgN@xNAG-NaO diff --git a/mods/potions/potions/textures/potions_green.png b/mods/potions/potions/textures/potions_green.png deleted file mode 100644 index 78e7d97b8e440839c3ab2340e3640138f99c88d5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 181 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfvi2$DvS0HV%NZD$+iq#5L>s6}O zYgBF4s@bkrbN#ygCs2;DB*-tA!Qt7BG$6;@)5S4FW8&2_hP($11XvC(EfDED6l}re ze^A87K6i=6d!^8AbCMqBhx%Eak75uTi|K=r||hI0@29nz0%USt^Iypt(F^7VeUBa4mf y{_v-|rm`G4{&}&X#J*#TjUxWn$2Oc&;9#iSBXRyx%Ljg-ISihzelF{r5}E+n=ra@m diff --git a/mods/potions/potions/textures/potions_orange.png b/mods/potions/potions/textures/potions_orange.png deleted file mode 100644 index 50f000fce44bad6d4ee7859b8a7366c145447cd3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 187 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfvxd5LKS0H`A&+FlophwfgAI*q- zJUi~myyT|~GoCKWdb%Vh(xl}NPz7U2kY6x^!?PP{K#sSki(`n!#H%L^84nn6FdW?8 zz^aqL$Q^NjNo<3__D}{%tEb1Bue;n^^i*it4=E+LA3}jo`<}_T$_3}}xqHu^bGRWa hp2>Eqn9j%Z?3qucINf5dKL#4h;OXk;vd$@?2>>RzLI?l= diff --git a/mods/potions/potions/textures/potions_particle.png b/mods/potions/potions/textures/potions_particle.png deleted file mode 100644 index 0dccc5debd0ebc47552165c3a4146577576c5057..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 574 zcmV-E0>S->P)B6`mabx1f$MqrD7~>Nd=|Uw2DK?={hITr0@8>!3 z!gJx?@ZO<~m1rqy%Gt3}QpXYviNY<``o67Z=oS{THFX&D)HW&CTV`s=PE?AKO2}YD z|J1c%p)8gqPs(^o?4`D*-3}Q;EO8XvG;zgTH+9E)+ZRHUhBzDY^WvO%*z_GO2E8~8 zo&*E0iodt|MLD_ZtN=R!G%O=0Z5xt zCE9{GB0nJxuqgF=aYrryrh1b+p(@lSl+GdMd6_5FDL&u};wY$8n-pt2r2Z-6-%$5V zWlH*zc0xWNSHwOZB;O{hWF$AqRq~qoig{P+td!0?V=gg)YWRSsp)ROfTr=O4G0W&> zzAd#N^s>DyZi^N3QJ6>6j`mfEAA=WV{#wR$86QhUnIEYob5zmNks1^0H)LZH%xK4Q)yi9EuYR2@l zvNUysB#0#ULQHIn9R)#DC~SpWJ#2(2t*}5AF~~KADHH;V05oOK|H_B`lG=QAB>(^b M07*qoM6N<$f|siY@&Et; diff --git a/mods/potions/potions/textures/potions_pink.png b/mods/potions/potions/textures/potions_pink.png deleted file mode 100644 index ec55ccc7d3f773f2be7bb5310ddc7b2f14e26932..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 337 zcmV-X0j~auP)<6#x8MN&HvhD||@CdT;0IBg7xAXwB^bW7~0m1hGwf6+V_XoT83BUIY z!1w^Z`2xH80nqvdz54;M`w+bR0KNPG&in_%{0zAL0I~f5zWoNb{s6=N0L%Ud$o>q* z{{X}P1HAtO!2blq{{^`J3C8~p%PXZqa{vGU0d!JMQvg8b*k%9#0DehCK~y+T?aC(- zfG_|=(WTcAdJnzd|9}WAg1|5szFDyk_t|x z4iH7(?>b7G1|Xy;_`$jY%VL_c%otEr{Ge?CNh(XnNmHP%`9Yo^+xJPL>+{SHfFMv5 j+ZKc{jN_C00{E;QXA2G;TolA+00000NkvXXu0mjfXP}k? diff --git a/mods/potions/potions/textures/potions_purple.png b/mods/potions/potions/textures/potions_purple.png deleted file mode 100644 index 4d9fe01b0e2fe305784aa65a5f4ca06eae36c57e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 207 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfvtpJ}8S0J6PzA95=ZI;IRY|RZh znwxSpx8!MU&DYvqptZA5dsmV6o?@N7B|7`{Lyx`$s%9(+@(X5gcy=QV$O-mzaSYLz zc=g0Vh64sX4j0!8v}(90as_rciLMH0)$~c^DwTA+bl9)@ID5TtWtTf&B6Gg;5srMN zXC?0LvfX!iWS0H`Y%Ico2?R_Vw`z|gI z+}$5|dOq;=eHak%FevCzaB#+lU%Ws?j3q&S!3+-1ZlnP@zMd|QAsQ2}o-kxQV8G#e zFrAS*;=rNp4Xio|3&oNYwN@*nytpFG|4;3;*l9h%)?)_TLCz`LTdrHqy7lmgWy^N` mS2Bz?>l8oS6+J0%f6v)?sfpXa8T$bZX7F_Nb6Mw<&;$T47DJl= diff --git a/mods/potions/potions/textures/potions_shatter.png b/mods/potions/potions/textures/potions_shatter.png deleted file mode 100644 index 03362afb96119c0ce964663036881e4a98526fee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 108 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFq#-1*YArhC96C}7E{0D-MCyfma z3=C@i{$q8$yIo#B(Dd)m-|TuHo?pNJ-{9)~{dGV18F~xl%4UY%xM;05| z{ozk_O=UT9{PSW%iG9Zw8%6xDk8L=mz`;iWS0KG}t=7Ix+K0F69NnRF zVz=(;eR}5)8C*DQc;T?|#Uo}sUM0LhMT{jue!&b5&u*jvIli7Qjv*QoubwbuJYc}# zdN7@lJL15h?G3Ct2@A!N6tz|>q`bHy&HqpBwb*Gr!Pa92+(FJM+gq+%&bsyRh-J%m n{Z}%KHtQ5W+!Z}3aDUI)c&UlozZv@h4QB9k^>bP0l+XkK*hoaL diff --git a/mods/potions/potionspack/depends.txt b/mods/potions/potionspack/depends.txt deleted file mode 100644 index 484a4c97c..000000000 --- a/mods/potions/potionspack/depends.txt +++ /dev/null @@ -1 +0,0 @@ -potions diff --git a/mods/potions/potionspack/init.lua b/mods/potions/potionspack/init.lua deleted file mode 100644 index d9cea701b..000000000 --- a/mods/potions/potionspack/init.lua +++ /dev/null @@ -1,161 +0,0 @@ -potions.register_potion("Anti Gravity", "purple", 60, -function(itemstack, user, pointed_thing) - user:set_physics_override(nil, 1.5, 0.5) - minetest.chat_send_player(user:get_player_name(), "You have been blessed with Anti Gravity for 60 seconds!") -end, - -function(itemstack, user, pointed_thing) - user:set_physics_override(nil,1,1) - minetest.chat_send_player(user:get_player_name(), "Anti Gravity has worn off.") -end) - -potions.register_potion("Anti Gravity II", "pink", 60, -function(itemstack, user, pointed_thing) - user:set_physics_override(3, nil, 0.1) - minetest.chat_send_player(user:get_player_name(), "You have been blessed with Anti Gravity II for 60 seconds!") -end, - -function(itemstack, user, pointed_thing) - user:set_physics_override(1,nil,1) - minetest.chat_send_player(user:get_player_name(), "Anti Gravity II has worn off.") -end) - -potions.register_potion("Speed", "lightgrey", 60, -function(itemstack, user, pointed_thing) - user:set_physics_override(3, 1, 1) - minetest.chat_send_player(user:get_player_name(), "You have been blessed with Speed for 60 seconds!") -end, - -function(itemstack, user, pointed_thing) - user:set_physics_override(1,nil,nil) - minetest.chat_send_player(user:get_player_name(), "Speed has worn off.") -end) - -potions.register_potion("Speed II", "cyan", 60, -function(itemstack, user, pointed_thing) - user:set_physics_override(5, 1, 1) - minetest.chat_send_player(user:get_player_name(), "You have been blessed with Speed II for 60 seconds!") -end, - -function(itemstack, user, pointed_thing) - user:set_physics_override(1,nil,nil) - minetest.chat_send_player(user:get_player_name(), "Speed II has worn off.") -end) - -potions.register_potion("Inversion", "dull", 60, -function(itemstack, user, pointed_thing) - user:set_physics_override(1, -1, -0.2) - minetest.chat_send_player(user:get_player_name(), "You have been cursed with Inversion for 60 seconds!") -end, - -function(itemstack, user, pointed_thing) - user:set_physics_override(1,1,1) - minetest.chat_send_player(user:get_player_name(), "Inversion has worn off.") -end) - -potions.register_potion("Confusion", "dull", 60, -function(itemstack, user, pointed_thing) - user:set_physics_override(-1, nil, nil) - minetest.chat_send_player(user:get_player_name(), "You have been cursed with Confusion for 60 seconds!") -end, - -function(itemstack, user, pointed_thing) - user:set_physics_override(1,1,1) - minetest.chat_send_player(user:get_player_name(), "Confusion has worn off.") -end) - -potions.register_potion("What will this do", "white", 60, -function(itemstack, user, pointed_thing) - user:set_physics_override(math.random(1, 20), math.random(1, 20), math.random(-4, 2)) - minetest.chat_send_player(user:get_player_name(), "You have been given unknown powers for good or evil! (60 seconds)") -end, - -function(itemstack, user, pointed_thing) - user:set_physics_override(1,1,1) - minetest.chat_send_player(user:get_player_name(), "Unknown powers lost.") -end) - -potions.register_potion("Instant Health", "pink", 1, -function(itemstack, user, pointed_thing) - local hp = user:get_hp() - user:set_hp(hp + 6) -end, - -function(itemstack, user, pointed_thing) -end) - -potions.register_potion("Instant Health II", "pink", 1, -function(itemstack, user, pointed_thing) - local hp = user:get_hp() - local hp_raise = hp + 12 - user:set_hp(hp_raise) -end, - -function(itemstack, user, pointed_thing) -end) - -potions.register_potion("Regen", "purple", 35, -function(itemstack, user, pointed_thing) - regen_I = true - minetest.chat_send_player(user:get_player_name(), "Regeneration I for 35 seconds") - if regen_II == true then - local regen - regen = function ( ) - local hp = user:get_hp() - if hp >= 20 then - minetest.after(1, regen) - elseif hp < 20 then - user:set_hp(hp + 1) - minetest.after(1, regen) - end - end - minetest.after(1, regen) - end -end, - -function(itemstack, user, pointed_thing) - regen_I = false -end) - -potions.register_potion("Regen II", "purple", 30, -function(itemstack, user, pointed_thing) - regen_II = true - minetest.chat_send_player(user:get_player_name(), "Regeneration II for 30 seconds") - if regen_II == true then - local regen - regen = function ( ) - local hp = user:get_hp() - if hp >= 20 then - minetest.after(.5, regen) - elseif hp < 20 then - user:set_hp(hp + 1) - minetest.after(.5, regen) - end - end - minetest.after(.5, regen) - end -end, - -function(itemstack, user, pointed_thing) - regen_II = false -end) - -potions.register_potion("Harming", "red", 1, -function(itemstack, user, pointed_thing) - local hp = user:get_hp() - local lower = hp - 3 - user:set_hp(lower) -end, - -function(itemstack, user, pointed_thing) -end) - -potions.register_potion("Harming II", "red", 1, -function(itemstack, user, pointed_thing) - local hp = user:get_hp() - local lower = hp - 6 - user:set_hp(lower) -end, - -function(itemstack, user, pointed_thing) -end)