2012-10-03 03:24:25 -04:00
|
|
|
function OnBlockPlace(Player, BlockX, BlockY, BlockZ, BlockFace, HeldItem)
|
2012-05-30 17:31:42 -04:00
|
|
|
|
|
|
|
-- dont check if the direction is in the air
|
2012-10-03 03:24:25 -04:00
|
|
|
if BlockFace == BLOCK_FACE_NONE then
|
2012-05-30 17:31:42 -04:00
|
|
|
return false
|
|
|
|
end
|
|
|
|
|
2012-10-03 03:24:25 -04:00
|
|
|
if (HeldItem.m_ItemType ~= 280) then
|
|
|
|
-- not a Stick of Ticking
|
2012-05-30 17:31:42 -04:00
|
|
|
return false
|
|
|
|
end
|
|
|
|
|
2012-10-03 03:24:25 -04:00
|
|
|
LOG("Setting next block tick to {" .. BlockX .. ", " .. BlockY .. ", " .. BlockZ .. "}")
|
2012-05-30 17:31:42 -04:00
|
|
|
|
2012-10-03 03:24:25 -04:00
|
|
|
Player:GetWorld():SetNextBlockTick(BlockX, BlockY, BlockZ);
|
2012-05-30 17:31:42 -04:00
|
|
|
|
|
|
|
return true
|
|
|
|
|
|
|
|
end
|