diff --git a/README.txt b/README.txt index 022e779..74c9950 100644 --- a/README.txt +++ b/README.txt @@ -2,4 +2,4 @@ — Texture created with gimp TODO: -— avoid 3 items in the inventory after /cleaninv +— add this tool to the creative mod to allow using buttons... diff --git a/init.lua b/init.lua index 0424424..5e1b389 100644 --- a/init.lua +++ b/init.lua @@ -1,7 +1,7 @@ minetest.register_on_punchnode(function(pos, node, puncher) if puncher:get_wielded_item():get_name() == "superpick:pick" - and minetest.env: get_node(pos).name ~= "air" then - minetest.env:remove_node(pos) + and minetest.get_node(pos).name ~= "air" then + minetest.remove_node(pos) local inv = puncher:get_inventory() if inv then if not inv:contains_item("main", node) then @@ -34,11 +34,12 @@ minetest.register_tool("superpick:pick", { minetest.register_on_punchnode(function(pos, node, puncher) if puncher:get_wielded_item():get_name() == "superpick:info" - and minetest.env: get_node(pos).name ~= "air" then + and minetest.get_node(pos).name ~= "air" then local nam = node.name local par1 = node.param1 local par2 = node.param2 - if par1 == 0 then + if par1 == 0 + and par2 == 0 then a = " " else a = par1 @@ -70,12 +71,12 @@ function cleaninventory(name) if name == nil or name == "" then return end - minetest.env:get_player_by_name(name): + minetest.get_player_by_name(name): get_inventory(): set_list("main", { [1] = "superpick:info", - [2] = "replacer:replacer", - [3] = "superpick:pick", + --[2] = "replacer:replacer", + [2] = "superpick:pick", }) print("[superpick] "..name.." has cleaned his inventory.") minetest.chat_send_player(name, 'Inventory Cleaned!') diff --git a/udc/1.ogg.REMOVED.git-id b/udc/1.ogg.REMOVED.git-id new file mode 100644 index 0000000..7399f14 --- /dev/null +++ b/udc/1.ogg.REMOVED.git-id @@ -0,0 +1 @@ +4f81bb5ef38409fec9626e09380b61a01a24ad3b \ No newline at end of file diff --git a/udc/10.ogg.REMOVED.git-id b/udc/10.ogg.REMOVED.git-id new file mode 100644 index 0000000..9d06477 --- /dev/null +++ b/udc/10.ogg.REMOVED.git-id @@ -0,0 +1 @@ +54ba6b4777c28e83020cc5b1ebe1c3d1dfcd276d \ No newline at end of file diff --git a/udc/11.ogg.REMOVED.git-id b/udc/11.ogg.REMOVED.git-id new file mode 100644 index 0000000..1d8968f --- /dev/null +++ b/udc/11.ogg.REMOVED.git-id @@ -0,0 +1 @@ +626135d2ac733100173305c0e28085a1ca6115a5 \ No newline at end of file diff --git a/udc/117259__felix-blume__a-swing-in-kiev-ukraine-at-night-metal-squeaks.ogg.REMOVED.git-id b/udc/117259__felix-blume__a-swing-in-kiev-ukraine-at-night-metal-squeaks.ogg.REMOVED.git-id new file mode 100644 index 0000000..ad6ecfa --- /dev/null +++ b/udc/117259__felix-blume__a-swing-in-kiev-ukraine-at-night-metal-squeaks.ogg.REMOVED.git-id @@ -0,0 +1 @@ +278ed42afdb1bd6fdd4acf0fdebc2dae922c3f9d \ No newline at end of file diff --git a/udc/117259__felix-blume__a-swing-in-kiev-ukraine-at-night-metal-squeaks.wav.REMOVED.git-id b/udc/117259__felix-blume__a-swing-in-kiev-ukraine-at-night-metal-squeaks.wav.REMOVED.git-id new file mode 100644 index 0000000..0320dee --- /dev/null +++ b/udc/117259__felix-blume__a-swing-in-kiev-ukraine-at-night-metal-squeaks.wav.REMOVED.git-id @@ -0,0 +1 @@ +7e4c3fc3941cc302b13d6b13e9e1847875ea69db \ No newline at end of file diff --git a/udc/12.ogg.REMOVED.git-id b/udc/12.ogg.REMOVED.git-id new file mode 100644 index 0000000..590ec26 --- /dev/null +++ b/udc/12.ogg.REMOVED.git-id @@ -0,0 +1 @@ +07c8aa9d632d7345f5196247ee8fd6f113f72394 \ No newline at end of file diff --git a/udc/13.ogg.REMOVED.git-id b/udc/13.ogg.REMOVED.git-id new file mode 100644 index 0000000..5550535 --- /dev/null +++ b/udc/13.ogg.REMOVED.git-id @@ -0,0 +1 @@ +298a32e86653faea76e80127a013a5547e7f0a91 \ No newline at end of file diff --git a/udc/14.ogg.REMOVED.git-id b/udc/14.ogg.REMOVED.git-id new file mode 100644 index 0000000..8378b18 --- /dev/null +++ b/udc/14.ogg.REMOVED.git-id @@ -0,0 +1 @@ +327d7f06056d4b404af2717925d91ea33fc32b09 \ No newline at end of file diff --git a/udc/15.ogg.REMOVED.git-id b/udc/15.ogg.REMOVED.git-id new file mode 100644 index 0000000..8177412 --- /dev/null +++ b/udc/15.ogg.REMOVED.git-id @@ -0,0 +1 @@ +919494de38e0bba7d15ccb9fb4a291f3477dba3b \ No newline at end of file diff --git a/udc/16.ogg.REMOVED.git-id b/udc/16.ogg.REMOVED.git-id new file mode 100644 index 0000000..9f06639 --- /dev/null +++ b/udc/16.ogg.REMOVED.git-id @@ -0,0 +1 @@ +40a343985a9553111fd31970920f93274a213b38 \ No newline at end of file diff --git a/udc/17.ogg.REMOVED.git-id b/udc/17.ogg.REMOVED.git-id new file mode 100644 index 0000000..3e72a89 --- /dev/null +++ b/udc/17.ogg.REMOVED.git-id @@ -0,0 +1 @@ +d529b00b38588d4a96b525137447d35fc4849d31 \ No newline at end of file diff --git a/udc/18.ogg.REMOVED.git-id b/udc/18.ogg.REMOVED.git-id new file mode 100644 index 0000000..f86636a --- /dev/null +++ b/udc/18.ogg.REMOVED.git-id @@ -0,0 +1 @@ +cc7c47f0a5352bb9756f46b165ee17f34119a154 \ No newline at end of file diff --git a/udc/19.ogg.REMOVED.git-id b/udc/19.ogg.REMOVED.git-id new file mode 100644 index 0000000..790c8a0 --- /dev/null +++ b/udc/19.ogg.REMOVED.git-id @@ -0,0 +1 @@ +7c31d642b0bcbbd9ea4f40f204f86cc819f1d2ec \ No newline at end of file diff --git a/udc/2.ogg.REMOVED.git-id b/udc/2.ogg.REMOVED.git-id new file mode 100644 index 0000000..a7c89a5 --- /dev/null +++ b/udc/2.ogg.REMOVED.git-id @@ -0,0 +1 @@ +e2d4fe343ff4f4c9632513449677bb9faad19afb \ No newline at end of file diff --git a/udc/20.ogg.REMOVED.git-id b/udc/20.ogg.REMOVED.git-id new file mode 100644 index 0000000..9cd0003 --- /dev/null +++ b/udc/20.ogg.REMOVED.git-id @@ -0,0 +1 @@ +d90c2827e826a0a17d39c9a43172f3e30bc79f5f \ No newline at end of file diff --git a/udc/21.ogg.REMOVED.git-id b/udc/21.ogg.REMOVED.git-id new file mode 100644 index 0000000..5533b82 --- /dev/null +++ b/udc/21.ogg.REMOVED.git-id @@ -0,0 +1 @@ +a6df5f70d729606febf61537bf9e9ae6e0bb083f \ No newline at end of file diff --git a/udc/22.ogg.REMOVED.git-id b/udc/22.ogg.REMOVED.git-id new file mode 100644 index 0000000..8c07be8 --- /dev/null +++ b/udc/22.ogg.REMOVED.git-id @@ -0,0 +1 @@ +3fc1bd1b50023bacfa83d45f29d6624be8549c70 \ No newline at end of file diff --git a/udc/23.ogg.REMOVED.git-id b/udc/23.ogg.REMOVED.git-id new file mode 100644 index 0000000..7dacfbb --- /dev/null +++ b/udc/23.ogg.REMOVED.git-id @@ -0,0 +1 @@ +82fe23f0a20dc1a538c97b676c44ad5c93ad4895 \ No newline at end of file diff --git a/udc/24.ogg.REMOVED.git-id b/udc/24.ogg.REMOVED.git-id new file mode 100644 index 0000000..11ac6ca --- /dev/null +++ b/udc/24.ogg.REMOVED.git-id @@ -0,0 +1 @@ +90208d5344dbfc0727e531a445ca1e9891802f32 \ No newline at end of file diff --git a/udc/25.ogg.REMOVED.git-id b/udc/25.ogg.REMOVED.git-id new file mode 100644 index 0000000..a659820 --- /dev/null +++ b/udc/25.ogg.REMOVED.git-id @@ -0,0 +1 @@ +9830355fe88945e9c0ff057ca489c8652237f0c7 \ No newline at end of file diff --git a/udc/26.ogg.REMOVED.git-id b/udc/26.ogg.REMOVED.git-id new file mode 100644 index 0000000..5a2eda4 --- /dev/null +++ b/udc/26.ogg.REMOVED.git-id @@ -0,0 +1 @@ +a362cb0cda936b9befa15c4be746eeca45b2c0d6 \ No newline at end of file diff --git a/udc/27.ogg.REMOVED.git-id b/udc/27.ogg.REMOVED.git-id new file mode 100644 index 0000000..3c7637f --- /dev/null +++ b/udc/27.ogg.REMOVED.git-id @@ -0,0 +1 @@ +7b2d25873303d2c1a3b0b38b44ca1c733dd2d4e1 \ No newline at end of file diff --git a/udc/28.ogg.REMOVED.git-id b/udc/28.ogg.REMOVED.git-id new file mode 100644 index 0000000..832d992 --- /dev/null +++ b/udc/28.ogg.REMOVED.git-id @@ -0,0 +1 @@ +3a44e850e06797c0337e6fa16f1320b9625e5f09 \ No newline at end of file diff --git a/udc/29.ogg.REMOVED.git-id b/udc/29.ogg.REMOVED.git-id new file mode 100644 index 0000000..54aee33 --- /dev/null +++ b/udc/29.ogg.REMOVED.git-id @@ -0,0 +1 @@ +2f56de505455cffb9ca28fca6f6468a67c3af667 \ No newline at end of file diff --git a/udc/3.ogg.REMOVED.git-id b/udc/3.ogg.REMOVED.git-id new file mode 100644 index 0000000..554c991 --- /dev/null +++ b/udc/3.ogg.REMOVED.git-id @@ -0,0 +1 @@ +ebea0c8b80c5afbf0b903d65ae2890dec9db4886 \ No newline at end of file diff --git a/udc/30.ogg.REMOVED.git-id b/udc/30.ogg.REMOVED.git-id new file mode 100644 index 0000000..679571d --- /dev/null +++ b/udc/30.ogg.REMOVED.git-id @@ -0,0 +1 @@ +3f390c4ae25b2765d2e465ac9d7c79be1c5f0f58 \ No newline at end of file diff --git a/udc/31.ogg.REMOVED.git-id b/udc/31.ogg.REMOVED.git-id new file mode 100644 index 0000000..c8dda0b --- /dev/null +++ b/udc/31.ogg.REMOVED.git-id @@ -0,0 +1 @@ +48eedb5b1a018b5f8de0eb628ddfc01bcc6dad6d \ No newline at end of file diff --git a/udc/32.ogg.REMOVED.git-id b/udc/32.ogg.REMOVED.git-id new file mode 100644 index 0000000..aae6b6d --- /dev/null +++ b/udc/32.ogg.REMOVED.git-id @@ -0,0 +1 @@ +216ec3e8539c7e7ea9905a8134f51a7b3fb6c578 \ No newline at end of file diff --git a/udc/33.ogg.REMOVED.git-id b/udc/33.ogg.REMOVED.git-id new file mode 100644 index 0000000..f0983b0 --- /dev/null +++ b/udc/33.ogg.REMOVED.git-id @@ -0,0 +1 @@ +4270c440ab407320ec61fc00960ab2f9dd57cfd2 \ No newline at end of file diff --git a/udc/34.ogg.REMOVED.git-id b/udc/34.ogg.REMOVED.git-id new file mode 100644 index 0000000..3ddb415 --- /dev/null +++ b/udc/34.ogg.REMOVED.git-id @@ -0,0 +1 @@ +53ff0e7f450f342ae34682997fb21218446415f9 \ No newline at end of file diff --git a/udc/35.ogg.REMOVED.git-id b/udc/35.ogg.REMOVED.git-id new file mode 100644 index 0000000..b6570c0 --- /dev/null +++ b/udc/35.ogg.REMOVED.git-id @@ -0,0 +1 @@ +de7357941d9b6afc4fb67c906b6b400cd05715b1 \ No newline at end of file diff --git a/udc/36.ogg.REMOVED.git-id b/udc/36.ogg.REMOVED.git-id new file mode 100644 index 0000000..19897c4 --- /dev/null +++ b/udc/36.ogg.REMOVED.git-id @@ -0,0 +1 @@ +444860e2c725cae3aab40c430256ab4f9169c040 \ No newline at end of file diff --git a/udc/37.ogg.REMOVED.git-id b/udc/37.ogg.REMOVED.git-id new file mode 100644 index 0000000..d80c3a9 --- /dev/null +++ b/udc/37.ogg.REMOVED.git-id @@ -0,0 +1 @@ +4aa4ead6b6fd7c0f871a386b3720780ba935b026 \ No newline at end of file diff --git a/udc/38.ogg.REMOVED.git-id b/udc/38.ogg.REMOVED.git-id new file mode 100644 index 0000000..3aa9d98 --- /dev/null +++ b/udc/38.ogg.REMOVED.git-id @@ -0,0 +1 @@ +6a5155ddce15c46854b12a99105a0f94e41bf6fa \ No newline at end of file diff --git a/udc/4.ogg.REMOVED.git-id b/udc/4.ogg.REMOVED.git-id new file mode 100644 index 0000000..59ca951 --- /dev/null +++ b/udc/4.ogg.REMOVED.git-id @@ -0,0 +1 @@ +9ae6246a122503efad180b33172163068523d761 \ No newline at end of file diff --git a/udc/5.ogg.REMOVED.git-id b/udc/5.ogg.REMOVED.git-id new file mode 100644 index 0000000..3e3cec1 --- /dev/null +++ b/udc/5.ogg.REMOVED.git-id @@ -0,0 +1 @@ +4055a57430ee35d97f35c0fe34acecce916d18cd \ No newline at end of file diff --git a/udc/6.ogg.REMOVED.git-id b/udc/6.ogg.REMOVED.git-id new file mode 100644 index 0000000..2697dfe --- /dev/null +++ b/udc/6.ogg.REMOVED.git-id @@ -0,0 +1 @@ +abf2a5ba14585cbfc036905c88411ebc1aa84100 \ No newline at end of file diff --git a/udc/7.ogg.REMOVED.git-id b/udc/7.ogg.REMOVED.git-id new file mode 100644 index 0000000..5f46950 --- /dev/null +++ b/udc/7.ogg.REMOVED.git-id @@ -0,0 +1 @@ +22156869bee8e9809d96dc45a339b9c4cb7f9a44 \ No newline at end of file diff --git a/udc/8.ogg.REMOVED.git-id b/udc/8.ogg.REMOVED.git-id new file mode 100644 index 0000000..bbd74b1 --- /dev/null +++ b/udc/8.ogg.REMOVED.git-id @@ -0,0 +1 @@ +7043427614a59483439c91ba597c9f2973822829 \ No newline at end of file diff --git a/udc/9.ogg.REMOVED.git-id b/udc/9.ogg.REMOVED.git-id new file mode 100644 index 0000000..d87836f --- /dev/null +++ b/udc/9.ogg.REMOVED.git-id @@ -0,0 +1 @@ +5a54d004041eb30104f013b3312d1c0b0b4e5e97 \ No newline at end of file diff --git a/udc/Unbenanntes Dokument b/udc/Unbenanntes Dokument new file mode 100644 index 0000000..2b886ca --- /dev/null +++ b/udc/Unbenanntes Dokument @@ -0,0 +1 @@ +http://www.freesound.org/people/felix.blume/sounds/117259/