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 e69de29b..00000000 diff --git a/mods/potions/potions/README.txt b/mods/potions/potions/README.txt deleted file mode 100644 index 46df19e1..00000000 --- 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 6cf0a731..00000000 --- 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 85d91ae5..00000000 --- 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!ia0y~yU{C;ICT0c(20oEV=?n}EoB=)|uK)l4*VWb4)6?_L z@Oj0+z`$4%?9o{&sk03__pYV+QbJ6jtb)Jh5yt97b}{#mB`$z2x?3AtK{)MWn!eUyf$K< WxO)8i!VU%o1_n=8KbLh*2~7Y^VKnLh 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 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;I4h9AWhA=@@4F(3rcuyC{5D7`vgN=nZ7z7R* z1bs_g^=5y_>vV?t;wybz4$G61Zs7w{F=UEte%L9x$%CR>T#5Khf3GNha(| zQO|6d#2SG|S1J0>$(F}-{C#Gp!*?WudZ)2%npo<^%372j^t^M0r6x_cfQEZ%WH z{CQ~2qDGOs^?h4D3mjs9YHGNUB|oEoVI#8*Z5T>g4gCq2clIv5Xx0 zsgANN6Xxy^kVtU!oFNt=@482Fh5(ad;i->G#!Ad0Q#S?va^)7NSkfcnu#-o9LPPL` z4|1WQ5gfUGX9VOT9gbv+BydNnW$Cx@1>R`x7e27iN%)?DR9{s`aH@m^_t7uUQ zeTR%0X}T8}b>a*R_)j`8zBQ3-G?1OZQy}WLXNClW@&Sg;4F4GTw}h-a+_^~r6y%<+ KelF{r5}E*v%c6|{ diff --git a/mods/potions/potions/textures/cauldron_side.png b/mods/potions/potions/textures/cauldron_side.png deleted file mode 100644 index 5b1e6d67cb12a32dba29e0f567dd9cdd5b5b9473..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 759 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;I4rT@h2A3sW#~2tGdINkyT>t<7uc@hNW@ct# zVPRuqqpq&5rKM$RYHDU?W@Tlit*x!At7~IpV_;yQr>AFNU|?uyXk=t$Y;0^|VggZS zZfgML=?(Xj4 z;o<4&>E-3+?d|R3*wd^@9*EvWF^bMz`$1$bTo4OPJZi}KKDo( zr_;3!w`(-k)y#XW`0B!uDz>90teV>@*xG&Gy!fD{VDfOHuERC`{`-B$g%*{cX)^P? zu(oh|((>ze);yP(^yLjMTW;gtas1-*`8%HVNp73o@0qdxqo)1&DYeZn?bKJ_=$WoL z>$<3&xkaR>?E2ZfMaelcIf5R~={m2Ty;9k@=9J*8yG1uI@6@YNx4-c6Lz=KCm)(iv z^NE$tHD|K*>)&0zCVlHwMOg3I*sq5aQs))xJ*yV8?{wY2<4%|PWxnb!XSXNY8{W}- zV5wzxQ&2ux&&>4r<4ucqlpV2tZ&JNGd{2)~I7g&>+_AuB|BxPArMfvwzdqT~dQSGN zK-^-N+k2+kT#1@{@V?IKcGhyOs5LD z)Sqv2_VHAH&$yiDx0TP$$px-6UV7gb`oH1F-_J%;{&#+ybbl1jXO+-w{2t<7Z)s_1Wo2b; zZEa&?V{2<`XJ=<`Z|~sX;OOY+E-3+?d|R3*wd^@9!TF5D*v`7!(u~92^`H5_0ypcm)Fk17k^$UoeBivm0p)3=BU!T^vIsBufu^ z7u``1VL0%N(`3F*+PnJGA(q>EDwN`uY+Af~PsI|)`k8*~K0KZk&0}`(@UmBRi+9HC z@R%ABXP40|;JHPAl@80|e_T_SaU}|$b)LE`;luKWa@5j1Kqpxoy^zPRJkpW z`my9l@KzDm3N!749I=}>@n2l~wj*t=vPtIB;M^GB7YOmIV0)GdMiEk;cHl;Oyz*7@{%p>KQ}9h5&&h7a}@ZH*XNTwqGqO zP2!z+$dVe@2l>8!0sILCtWygcGetl1sb0PPjWJ30Cc`T31nG9xeWi@gUAVvgcPMdW QU|?YIboFyt=akR{0LY{;lK=n! 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!ia0y~yU{C;IMrH;E2G1=owlgp=um$*pxH5pi{mtBET?`Bi zj3q&S!3+-1Zlp0VFlczXIEHXUCnqS#8pt0|`N5mevX{5#N4=ceoc}$ZGC%m0-~2zo b;lseNXp5-ivJHNVK_+>+`njxgN@xNAZ8Iaz 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!ia0y~yU{C;I7G?$phQ^Te;|vT8x&b~RuK)l4pKdO;z)pIl zyXq=e#Z7+NTLW}=?b@{`)bL=8<%vYwGwYY0J9q9%uIG~{Ph>y8N@QSQU@Qsp3ubV5 zb|Z~}fg#<~#W6(Vd~(79*$1(LISug-zP`KrJAfr_nZ~IH;tA;q8V*~ZF<3L#G0K(b z@*g;+z#!kD;Skucs)aw6Q{IDd(*ec~2B-6kc5F^e37Z-wFjzCoG0JslPqfCM` z-0qq@-r77qI=o>DEUOq87#K@}{DK)Ap4~`eU|{g{ba4#Pn0WP!q2Pf4p2Gow9IXKc ztpNtCpW82NE#Lc$f9|S}yiNN}?Hpe*7)34g>Jgjavgj}0!NB|5_yy+j-D9{E)!?@# au`xfE|B-0x_key=29T+)elF{r5}E+2m^A(X diff --git a/mods/potions/potions/textures/potions_cyan.png b/mods/potions/potions/textures/potions_cyan.png deleted file mode 100644 index 992f48875dcea82183c170224ce986bc2cc354e0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 197 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;I7G?$phQ^Te;|vT8Dgizrt_%ze=F1jZtXyol zda31_WtQt!Sgl`ayARzj3=9m6B|(0{3=Yq3q%kls_irnMNbOc-*YxzYU1{9#(oS83=E#GelF{r5}E+ne?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!ia0y~yU{C;ICT0c(20oEV=?n}EJOMr-t_%zeE-o%^Zf@@G z?v`_Obr~2K7)yfuf*Bm1-AH3#V6gFYaSV|NPfl2%`ruc?xd;3X=|?s%GK_HE$rK>@ zdOzEd#YT32_)}d|S&kh4yx34;-?7C;5&!FB8%`;3FjVf5IDe_-13v=;1B0ilpUXO@ GgeCxA#V>gP 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!ia0y~yU{C;I7G?$phQ^Te;|vT85&=FTt_%zeU8<_RYHAZT zG$w0k%+S=FsiierOUrcS=Qaig2F8*gzhDN3XE)Lq7#O@gT^vI+CSE;b$a}y*faT!Q z1TO!F8aAzq3q*YEbC+nmR|?%WC+T7SR{sg543fPYre*M6=ydrh+qC`Fw%UdjAs<*K jTw=J=ca`VET5c0J(USr%?K2q|7#KWV{an^LB{Ts5WI{VJ diff --git a/mods/potions/potions/textures/potions_dull.png b/mods/potions/potions/textures/potions_dull.png deleted file mode 100644 index b1a70fde1006e61d2709fddd7551340988f101b7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 171 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;I7G?$phQ^Te;|vT8LIFM@t_%zek}A?tsxs1Q zvNGy&GMaKl9kU-YFfcHd1o;IsI6S+N#=yYf?&;zfqA~I68AIL!0Ro2uf;n0PEVvd5 z{0rF?wyLWBMM!_X!JoA!Iae`TRIr}x5ub6*t+IVm)b_W`J*y`1F8IW>qPLxOUn!&A Xeu41gV){`G3=9mOu6{1-oD!MEaloG4bjdL*4@h0xSoY z7Krp63bx?#KPcj3pSwiky;A75IY|%mL;W_CFtGP4%>2Y~HFxnI=gGNuxA7Zf=^8QW iR5EO_)?@o|jrCfTpzAx87s?C_3=E#GelF{r5}E*}i#bgI diff --git a/mods/potions/potions/textures/potions_lightgrey.png b/mods/potions/potions/textures/potions_lightgrey.png deleted file mode 100644 index 9ba96ef90e7856799c61f4a38f5ddfa853aa3290..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 154 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;ICT0c(20oEV=?n}EJOMr-t_%zevuDqqH*em8 z1q;Fxq8BhQFff(``2{mLJiC#`z`$VR>Eak75uTi|K=r||hI0@29nz0%USt^Iypt(F z^7VeUBa4mf{_v-|rm`G4{&}&X#J*#TjUxWn$2Oc&;9#iSBXRyx%Ljf21_lOCS3j3^ HP6K6 zJ^ay($j7tep3F;rx-jGEqO7M&aw1Jy{xC2wFqQ=Q1v5B2yOGAgz~Jra;uxYa@#+af z#sdZ%3gloO>n`^eJr$bvLrTf*hfv_tzGpJ7a=|%# q?%uQK9Bv4UXR@6trt|SUd*)LqPPdrrj~N&k7(8A5T-G@yGywo6xIzd3 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 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!toSUp`FLnI_w51!2v36Ws9 z@VWN;xeI)MH;Y`65-xdpXoo^!@}pzNzbf94cq}aO(n*y~(`;ctTbWhy`{$M)4;4SW z_u<~c-l-XyS*LDp3<^3f#M^mD_u8+0YtvqciET11mH2YSO!InlTGk1_kgkbdClXx# zU)h?tP-mK||EUVEH%qrIyUQo(tWzj*$E5IRjCtwts@vjDliMt$KYe~Qr{cyJSzWfh z7CiGQ|;jo%2zvz=Dke@w_WWa9s+AFXbf8d^m!z|^6vNXmQupa@Rrs=LuTEaK=;y#0?pON0g?7j{i>LmJI#wzv@9jEMex+*Z zg_}J>*PZ_fJySb7zv=vp?4n7_73*f$=qqm7{iOEBKJVGP&+!E=eY@iRjC#TI9r-In zzizq`{Yq_zU!~+8pIq^*V_!CJGAV6Q=}`IZ)%LjdCRcr9s9};9GgBeto$gp{R_k9FMR92F&_NRu=P93q3`UwzjN;Y&U4@g z!@i$PyMHlW_{F;SH{*ui0(<^2?ES-V?hpInKRi4BGHm?Iu7-ek&PW7={#lUA=&9v>+%tH=x}T2oFTR8HP&Wn ztk2fmkfXUNS943A*4BKj?FCvp3$=F@Y40i4*;}HsUqAHdO9lo8#*!evUirnMNbOc-*YxzYU1{9#(oS83=E#GelF{r5}E)n7DJl= 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!ia0y~yVBi2@4mJh`h9ms@x)~T4j6Gc(LnJOICrEHT`2YX^ z|Bok)4GjzoYX1IXb-lY?UOv$D@6X@tdLN!&zyIIh>izw7KlmAX3+2jYhUTg@(X5gcy=R=fq}us)5S4FB0M=^f$D=_4d)*4JER}kyvQ)Zc_&kV z%xM;05|{ozk_O=UT9{PSW%iG9Zw8%6xDk8L=mz`;= 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)