Jestemnowy 0 Opublikowano 23 lutego Udostępnij Opublikowano 23 lutego # Skript Tartaku dla Minecraft 1.21.10 # Wymaga Skript 2.13.2 i SkBee v3.14.0 # --- Place event --- on place: if name of player's tool is "&6&k_ &eTartak": # zapisujemy typ drewna i jego kierunek set {_axis} to axis of event-block set {tartak::%event-location%::type} to type of player's tool set {tartak::%event-location%::axis} to {_axis} send "&aPostawiles tartak (%type of player's tool%)." to player # --- Break event --- on break: if {tartak::%event-location%::type} is set: # obsługa bedrock / usuwanie if event-block is bedrock: if player is sneaking: clear {tartak::%event-location%} send "&cUsunales tartak." to player cancel event stop else: cancel event stop cancel event set {_type} to {tartak::%event-location%::type} set {_axis} to {tartak::%event-location%::axis} set {_loc} to event-location drop {_type} at {_loc} set block at {_loc} to bedrock wait 15 seconds # przywracamy blok w tym samym kierunku set block at {_loc} to {_type} with axis {_axis} # --- Tartak command --- command /tartak [<text>]: permission: tartak.* trigger: # lista dopuszczalnych typów drewna if arg 1 is not "spruce" or "birch" or "oak" or "jungle" or "acacia" or "darkoak" or "mangrove" or "cherry": send "" send "&6/daj tartak: wybierz typ:" send "&6/tartak spruce" send "&6/tartak birch" send "&6/tartak oak" send "&6/tartak jungle" send "&6/tartak acacia" send "&6/tartak darkoak" send "&6/tartak mangrove" send "&6/tartak cherry" send "" stop # dajemy graczowi tartak w wybranym typie drewna if arg 1 is "spruce": give player spruce log named "&6&k_ &eTartak" if arg 1 is "birch": give player birch log named "&6&k_ &eTartak" if arg 1 is "oak": give player oak log named "&6&k_ &eTartak" if arg 1 is "jungle": give player jungle log named "&6&k_ &eTartak" if arg 1 is "acacia": give player acacia log named "&6&k_ &eTartak" if arg 1 is "darkoak": give player dark oak log named "&6&k_ &eTartak" if arg 1 is "mangrove": give player mangrove log named "&6&k_ &eTartak" if arg 1 is "cherry": give player cherry log named "&6&k_ &eTartak" Cytuj Odnośnik do komentarza https://skript.pl/temat/59056-skrypt-tartaki/ Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.