Changing Item Drops
#4
I've used other ways of trying but this is the one I could seem to replicate. Doesn't work and seems to crash cuberite Sad

function OnBlockToPickups(a_World, a_Digger, a_BlockX, a_BlockY, a_BlockZ, a_BlockType, a_BlockMeta, a_Pickups)
if (a_Digger ~= nil) then
return false;
end

if (a_BlockType == E_BLOCK_IRON_ORE) then
return true
end

a_Pickups:Clear();

a_Pickups:Add(cItem(E_ITEM_IRON_INGOT));
return true;
end;
Reply
Thanks given by:


Messages In This Thread
Changing Item Drops - by Epsilith - 06-21-2016, 09:36 AM
RE: Changing Item Drops - by PureTryOut - 06-21-2016, 05:26 PM
RE: Changing Item Drops - by xoft - 06-21-2016, 09:38 PM
RE: Changing Item Drops - by Epsilith - 06-22-2016, 01:04 PM
RE: Changing Item Drops - by Seadragon91 - 06-22-2016, 02:25 PM
RE: Changing Item Drops - by Epsilith - 06-22-2016, 04:27 PM
RE: Changing Item Drops - by xoft - 06-22-2016, 04:40 PM
RE: Changing Item Drops - by Epsilith - 06-22-2016, 04:47 PM



Users browsing this thread: 1 Guest(s)