on rightclick:
if player's x-coordinate = 0:
if player is not sneaking:
set {_loc} to location of player
if {left.%player%} is true:
add -1 to z-coordinate of {_loc}
else:
add 1 to z-coordinate of {_loc}
add 1 to y-coordinate of {_loc}
if block at {_loc} and block below {_loc} is air:
if block below below {_loc} is not air:
if player's tool's type is not air or water bucket or lava bucket:
give block at {_loc} to player
break block at {_loc}
execute console command "kill @e[type=minecraft:item]"
set block below {_loc} to player's tool's type
if event-item is block:
remove 1 of player's tool from player's inventory
else:
if block below below {_loc} is not air:
if player's tool's type is not air or water bucket or lava bucket:
give block at {_loc} to player
break block at {_loc}
execute console command "kill @e[type=minecraft:item]"
set block at {_loc} to player's tool's type
if event-item is block:
remove 1 of player's tool from player's inventory
else:
if block below below {_loc} is not air:
if player's tool's type is not air or water bucket or lava bucket:
give block below player to player
break block below player
execute console command "kill @e[type=minecraft:item]"
set block below player to player's tool's type
if event-item is block:
remove 1 of player's tool from player's inventory
didnt work when player dont have operator, why?
#permission operator in skript
1 messages · Page 1 of 1 (latest)
rarely will someone's coordinate be an exact number
x8ight suggests that you read this embed
Formatting Code In Discord
Why?
Code blocks make it easier for helpers to identify potential errors -- help them help you!
The Format
```vb
on chat:
broadcast "This is how you format code!"
```
How It Looks
on chat:
broadcast "This is how you format code!"
Extra Info
On US keyboards, the grave character (`) is located above the tab key on the top left of the keyboard
Also i think you can just kill dropped entities or something, no nees for a console command