how do u make a chest suck in items

dj22
Member
 
Posts: 60
Joined: Wed Feb 27, 2013 18:37

how do u make a chest suck in items

by dj22 » Fri Apr 05, 2013 01:39

this is all I have for code




Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
on_punch = function(pos,player)
function minetest.handle_node_drops(pos, node, digger)
-- Add dropped items to object's inventory
if digger:get_inventory() then
local _, dropped_item
for _, dropped_item in ipairs(drops) do
digger:get_inventory():add_item("main", dropped_item
)
end
end
end
 

dj22
Member
 
Posts: 60
Joined: Wed Feb 27, 2013 18:37

by dj22 » Fri Apr 05, 2013 01:41

could anyone help
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Fri Apr 05, 2013 11:18

This code is just completly wrong, why do you override handle_node_drops() there?
Can you please write what do you want to achieve so anyone else can try to help you?
 

prestidigitator
Member
 
Posts: 632
Joined: Thu Feb 21, 2013 23:54

by prestidigitator » Sat Apr 06, 2013 07:28

Might go better in the Modding General forum, too. Probably more people to help figure it out there.
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 19 guests

cron