avoid compass replacing other items
Signed-off-by: szdytom <szdytom@qq.com>
This commit is contained in:
parent
18c202e469
commit
636fe8da4d
@ -52,9 +52,11 @@ cmdLocate(pname) -> (
|
|||||||
print(str('%s: %.1f %.1f %.1f.', pdim, ppos:0, ppos:1, ppos:2));
|
print(str('%s: %.1f %.1f %.1f.', pdim, ppos:0, ppos:1, ppos:2));
|
||||||
sslot = query(myself, 'selected_slot');
|
sslot = query(myself, 'selected_slot');
|
||||||
sitem = inventory_get(myself, sslot);
|
sitem = inventory_get(myself, sslot);
|
||||||
inventory_set(myself, sslot, 1, 'compass',
|
if(sitem == null || sitem:0 == 'compass', (
|
||||||
str('{LodestonePos: {X: %d, Y: %d, Z: %d}, LodestoneDimension: "%s", LodestoneTracked: 0b}'
|
inventory_set(myself, sslot, 1, 'compass',
|
||||||
, floor(ppos:0), floor(ppos:1), floor(ppos:2), pdim));
|
str('{LodestonePos: {X: %d, Y: %d, Z: %d}, LodestoneDimension: "%s", LodestoneTracked: 0b}'
|
||||||
|
, floor(ppos:0), floor(ppos:1), floor(ppos:2), pdim));
|
||||||
|
));
|
||||||
), (
|
), (
|
||||||
print(str('%s: ? ? ?', pdim));
|
print(str('%s: ? ? ?', pdim));
|
||||||
));
|
));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user