File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,39 @@ function break_item(t)
62
62
local x = t [1 ] or t .x or exit_message {message = " x coordinate is not defined" }
63
63
local y = t [2 ] or t .y or exit_message {message = " y coordinate is not defined" }
64
64
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
+
65
98
pkt = {}
66
99
pkt .px = x ;
67
100
pkt .py = y ;
You can’t perform that action at this time.
0 commit comments