From 89663cc6ac548d9dc7d956173d51add476d84f70 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 9 Jan 2017 18:46:53 +0100 Subject: [PATCH] Remove intweak mos for being too obscure --- mods/intweak/README.txt | 24 ------------------------ mods/intweak/depends.txt | 1 - mods/intweak/init.lua | 24 ------------------------ 3 files changed, 49 deletions(-) delete mode 100644 mods/intweak/README.txt delete mode 100644 mods/intweak/depends.txt delete mode 100644 mods/intweak/init.lua diff --git a/mods/intweak/README.txt b/mods/intweak/README.txt deleted file mode 100644 index 92412935..00000000 --- a/mods/intweak/README.txt +++ /dev/null @@ -1,24 +0,0 @@ -Minetest mod "Inventory Tweak" -======================= -version: 1.0 - -License of source code: WTFPL ------------------------------ -Written 2013 by BlockMen - -This program is free software. It comes without any warranty, to -the extent permitted by applicable law. You can redistribute it -and/or modify it under the terms of the Do What The Fuck You Want -To Public License, Version 2, as published by Sam Hocevar. See -http://sam.zoy.org/wtfpl/COPYING for more details. - ---USING the mod-- ------------------- - -This mod inplements to new functions to the players inventory. The first is the breaking sound of any tool, -that is played when a tool breakes after the specific number of uses. - -The second new function is Auto-refill. This function replaces broken tools or emptied stacks with others from your inventory. - - -You can disable the auto-refill by changing first line of init.lua to "local auto_refill = false" diff --git a/mods/intweak/depends.txt b/mods/intweak/depends.txt deleted file mode 100644 index 331d858c..00000000 --- a/mods/intweak/depends.txt +++ /dev/null @@ -1 +0,0 @@ -default \ No newline at end of file diff --git a/mods/intweak/init.lua b/mods/intweak/init.lua deleted file mode 100644 index 54a6ba53..00000000 --- a/mods/intweak/init.lua +++ /dev/null @@ -1,24 +0,0 @@ -local auto_refill = false -- set to false if you dont want get refilled your stack automatic - -function refill(player, stck_name, index) - local inv = player:get_inventory() - for i,stack in ipairs(inv:get_list("main")) do - if stack:get_name() == stck_name then - inv:set_stack("main", index, stack) - stack:clear() - inv:set_stack("main", i, stack) - minetest.log("action", "intweak-mod: refilled stack of" .. player:get_player_name() ) - return - end - end -end - -if auto_refill == true then - minetest.register_on_placenode(function(pos, newnode, placer, oldnode) - if not placer then return end - local index = placer:get_wield_index() - local cnt = placer:get_wielded_item():get_count()-1 - if cnt == 0 then minetest.after(0.01, refill, placer, newnode.name, index) end - end) -end -