update
Former-commit-id: c89eed942f44a9332f90895e7f0fc647ddb069c0 Former-commit-id: 7a857c5272c3c9721999dc13435fff741f091eed
This commit is contained in:
parent
a8d46a8ec9
commit
891206728c
@ -2,4 +2,4 @@
|
|||||||
— Texture created with gimp
|
— Texture created with gimp
|
||||||
|
|
||||||
TODO:
|
TODO:
|
||||||
— avoid 3 items in the inventory after /cleaninv
|
— add this tool to the creative mod to allow using buttons...
|
||||||
|
15
init.lua
15
init.lua
@ -1,7 +1,7 @@
|
|||||||
minetest.register_on_punchnode(function(pos, node, puncher)
|
minetest.register_on_punchnode(function(pos, node, puncher)
|
||||||
if puncher:get_wielded_item():get_name() == "superpick:pick"
|
if puncher:get_wielded_item():get_name() == "superpick:pick"
|
||||||
and minetest.env: get_node(pos).name ~= "air" then
|
and minetest.get_node(pos).name ~= "air" then
|
||||||
minetest.env:remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
local inv = puncher:get_inventory()
|
local inv = puncher:get_inventory()
|
||||||
if inv then
|
if inv then
|
||||||
if not inv:contains_item("main", node) 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)
|
minetest.register_on_punchnode(function(pos, node, puncher)
|
||||||
if puncher:get_wielded_item():get_name() == "superpick:info"
|
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 nam = node.name
|
||||||
local par1 = node.param1
|
local par1 = node.param1
|
||||||
local par2 = node.param2
|
local par2 = node.param2
|
||||||
if par1 == 0 then
|
if par1 == 0
|
||||||
|
and par2 == 0 then
|
||||||
a = " "
|
a = " "
|
||||||
else
|
else
|
||||||
a = par1
|
a = par1
|
||||||
@ -70,12 +71,12 @@ function cleaninventory(name)
|
|||||||
if name == nil or name == "" then
|
if name == nil or name == "" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
minetest.env:get_player_by_name(name):
|
minetest.get_player_by_name(name):
|
||||||
get_inventory():
|
get_inventory():
|
||||||
set_list("main", {
|
set_list("main", {
|
||||||
[1] = "superpick:info",
|
[1] = "superpick:info",
|
||||||
[2] = "replacer:replacer",
|
--[2] = "replacer:replacer",
|
||||||
[3] = "superpick:pick",
|
[2] = "superpick:pick",
|
||||||
})
|
})
|
||||||
print("[superpick] "..name.." has cleaned his inventory.")
|
print("[superpick] "..name.." has cleaned his inventory.")
|
||||||
minetest.chat_send_player(name, 'Inventory Cleaned!')
|
minetest.chat_send_player(name, 'Inventory Cleaned!')
|
||||||
|
1
udc/1.ogg.REMOVED.git-id
Normal file
1
udc/1.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
4f81bb5ef38409fec9626e09380b61a01a24ad3b
|
1
udc/10.ogg.REMOVED.git-id
Normal file
1
udc/10.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
54ba6b4777c28e83020cc5b1ebe1c3d1dfcd276d
|
1
udc/11.ogg.REMOVED.git-id
Normal file
1
udc/11.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
626135d2ac733100173305c0e28085a1ca6115a5
|
@ -0,0 +1 @@
|
|||||||
|
278ed42afdb1bd6fdd4acf0fdebc2dae922c3f9d
|
@ -0,0 +1 @@
|
|||||||
|
7e4c3fc3941cc302b13d6b13e9e1847875ea69db
|
1
udc/12.ogg.REMOVED.git-id
Normal file
1
udc/12.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
07c8aa9d632d7345f5196247ee8fd6f113f72394
|
1
udc/13.ogg.REMOVED.git-id
Normal file
1
udc/13.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
298a32e86653faea76e80127a013a5547e7f0a91
|
1
udc/14.ogg.REMOVED.git-id
Normal file
1
udc/14.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
327d7f06056d4b404af2717925d91ea33fc32b09
|
1
udc/15.ogg.REMOVED.git-id
Normal file
1
udc/15.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
919494de38e0bba7d15ccb9fb4a291f3477dba3b
|
1
udc/16.ogg.REMOVED.git-id
Normal file
1
udc/16.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
40a343985a9553111fd31970920f93274a213b38
|
1
udc/17.ogg.REMOVED.git-id
Normal file
1
udc/17.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
d529b00b38588d4a96b525137447d35fc4849d31
|
1
udc/18.ogg.REMOVED.git-id
Normal file
1
udc/18.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
cc7c47f0a5352bb9756f46b165ee17f34119a154
|
1
udc/19.ogg.REMOVED.git-id
Normal file
1
udc/19.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
7c31d642b0bcbbd9ea4f40f204f86cc819f1d2ec
|
1
udc/2.ogg.REMOVED.git-id
Normal file
1
udc/2.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
e2d4fe343ff4f4c9632513449677bb9faad19afb
|
1
udc/20.ogg.REMOVED.git-id
Normal file
1
udc/20.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
d90c2827e826a0a17d39c9a43172f3e30bc79f5f
|
1
udc/21.ogg.REMOVED.git-id
Normal file
1
udc/21.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
a6df5f70d729606febf61537bf9e9ae6e0bb083f
|
1
udc/22.ogg.REMOVED.git-id
Normal file
1
udc/22.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
3fc1bd1b50023bacfa83d45f29d6624be8549c70
|
1
udc/23.ogg.REMOVED.git-id
Normal file
1
udc/23.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
82fe23f0a20dc1a538c97b676c44ad5c93ad4895
|
1
udc/24.ogg.REMOVED.git-id
Normal file
1
udc/24.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
90208d5344dbfc0727e531a445ca1e9891802f32
|
1
udc/25.ogg.REMOVED.git-id
Normal file
1
udc/25.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
9830355fe88945e9c0ff057ca489c8652237f0c7
|
1
udc/26.ogg.REMOVED.git-id
Normal file
1
udc/26.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
a362cb0cda936b9befa15c4be746eeca45b2c0d6
|
1
udc/27.ogg.REMOVED.git-id
Normal file
1
udc/27.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
7b2d25873303d2c1a3b0b38b44ca1c733dd2d4e1
|
1
udc/28.ogg.REMOVED.git-id
Normal file
1
udc/28.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
3a44e850e06797c0337e6fa16f1320b9625e5f09
|
1
udc/29.ogg.REMOVED.git-id
Normal file
1
udc/29.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
2f56de505455cffb9ca28fca6f6468a67c3af667
|
1
udc/3.ogg.REMOVED.git-id
Normal file
1
udc/3.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
ebea0c8b80c5afbf0b903d65ae2890dec9db4886
|
1
udc/30.ogg.REMOVED.git-id
Normal file
1
udc/30.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
3f390c4ae25b2765d2e465ac9d7c79be1c5f0f58
|
1
udc/31.ogg.REMOVED.git-id
Normal file
1
udc/31.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
48eedb5b1a018b5f8de0eb628ddfc01bcc6dad6d
|
1
udc/32.ogg.REMOVED.git-id
Normal file
1
udc/32.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
216ec3e8539c7e7ea9905a8134f51a7b3fb6c578
|
1
udc/33.ogg.REMOVED.git-id
Normal file
1
udc/33.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
4270c440ab407320ec61fc00960ab2f9dd57cfd2
|
1
udc/34.ogg.REMOVED.git-id
Normal file
1
udc/34.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
53ff0e7f450f342ae34682997fb21218446415f9
|
1
udc/35.ogg.REMOVED.git-id
Normal file
1
udc/35.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
de7357941d9b6afc4fb67c906b6b400cd05715b1
|
1
udc/36.ogg.REMOVED.git-id
Normal file
1
udc/36.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
444860e2c725cae3aab40c430256ab4f9169c040
|
1
udc/37.ogg.REMOVED.git-id
Normal file
1
udc/37.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
4aa4ead6b6fd7c0f871a386b3720780ba935b026
|
1
udc/38.ogg.REMOVED.git-id
Normal file
1
udc/38.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
6a5155ddce15c46854b12a99105a0f94e41bf6fa
|
1
udc/4.ogg.REMOVED.git-id
Normal file
1
udc/4.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
9ae6246a122503efad180b33172163068523d761
|
1
udc/5.ogg.REMOVED.git-id
Normal file
1
udc/5.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
4055a57430ee35d97f35c0fe34acecce916d18cd
|
1
udc/6.ogg.REMOVED.git-id
Normal file
1
udc/6.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
abf2a5ba14585cbfc036905c88411ebc1aa84100
|
1
udc/7.ogg.REMOVED.git-id
Normal file
1
udc/7.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
22156869bee8e9809d96dc45a339b9c4cb7f9a44
|
1
udc/8.ogg.REMOVED.git-id
Normal file
1
udc/8.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
7043427614a59483439c91ba597c9f2973822829
|
1
udc/9.ogg.REMOVED.git-id
Normal file
1
udc/9.ogg.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
5a54d004041eb30104f013b3312d1c0b0b4e5e97
|
1
udc/Unbenanntes Dokument
Normal file
1
udc/Unbenanntes Dokument
Normal file
@ -0,0 +1 @@
|
|||||||
|
http://www.freesound.org/people/felix.blume/sounds/117259/
|
Loading…
x
Reference in New Issue
Block a user