0oNzLTtu
Język: Skript
|
Autor: Anonimowy
# cChair # Autor: TheFallingCookie command /krzeslo: permission: chair.set trigger: set {_loc} to targeted block spawn 1 arrow above {_loc} set {c::%spawned entity%} to true set block above targeted block to wooden stairs send "&9Krzeslo utworzone pomyslnie." while spawned entity exists: teleport spawned entity above {_loc} wait 1 tick on right click: clicked block is wooden stairs loop entities in radius 2 around clicked block: {c::%loop-entity%} is set if player has permission "chair.use": make player ride loop-entity while loop-entity exists: if player is sneaking: stop teleport player to loop-entity wait 1 tick