Skip to content

Commit 47fb358

Browse files
authored
Update All In One.lua
1 parent 5d46c01 commit 47fb358

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

All In One.lua

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,39 @@ function break_item(t)
6262
local x = t[1] or t.x or exit_message{message="x coordinate is not defined"}
6363
local y = t[2] or t.y or exit_message{message="y coordinate is not defined"}
6464

65+
pkt = {}
66+
pkt.px = x;
67+
pkt.py = y;
68+
pkt.x = x * 32;
69+
pkt.y = (y - 1) * 32;
70+
pkt.type = 3;
71+
pkt.value = 18;
72+
SendPacketRaw(false, pkt);
73+
end
74+
75+
76+
77+
function place_item(t)
78+
local x = t[1] or t.x or exit_message{message="x coordinate is not defined"}
79+
local y = t[2] or t.y or exit_message{message="y coordinate is not defined"}
80+
local item_id = t[3] or t.item_id or exit_message{message="item id is not defined"}
81+
82+
pkt = {}
83+
pkt.px = x;
84+
pkt.py = y;
85+
pkt.x = x * 32;
86+
pkt.y = (y - 1) * 32;
87+
pkt.type = 3;
88+
pkt.value = item_id;
89+
SendPacketRaw(false, pkt);
90+
end
91+
92+
93+
94+
function break_island(t)
95+
local x = t[1] or t.x or exit_message{message="x coordinate is not defined"}
96+
local y = t[2] or t.y or exit_message{message="y coordinate is not defined"}
97+
6598
pkt = {}
6699
pkt.px = x;
67100
pkt.py = y;

0 commit comments

Comments
 (0)