Bground

Author: 54bc3e9e88

09 February 2022

Views: 80

-- hit block

function hit_tile(x, y)
pkt = {}
pkt.type = 3
pkt.int_data = 18
pkt.int_x = x
pkt.int_y = y
pkt.pos_x = getLocal().pos.x
pkt.pos_y = getLocal().pos.y
sleep(50)
sendPacketRaw(pkt)
end

-- main

x = getLocal().pos.x / 32
tileY = getLocal().pos.y / 32
tileX = x - 1
while true do
if((getLocal().pos.x / 32) == x and (getLocal().pos.y / 32) == tileY) then
for i=0,2 do
hit_tile(tileX, tileY)
sleep(50)
end
end
sleep(100)
end


Edit Code:

Please enter an edit code

Edit codes must be at least 20 characters

Share