Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Skrypt zrobiony przez Knugi
- #Pluginy wymagane:
- #-Skript
- #-SkQuerry
- options:
- #----------Opcje ogólne---------#
- prefix: &a[&cCegla&a] &7 #Prefix na wiadomosciach
- block: end stone #Block (staly) jaki ma byc uzywany za stoniarke
- named: &cCeglarka #Nazwa bloku stoniarki
- blockup: brick #Angielskie nazwy !!
- replace: 3 #Czas po jakim ma się odrodzić blok
- chance: 100 #Procenty szansy wylocenia spowrotem ceglarki
- variables: generator.k #Nazwa variablesu // Radzę nie zmieniać :) // Przydatne jak chcemy mieć np z tego skryptu stoniarke i inne rzeczy :)
- #----------Wiadomości-----------#
- placeCannot: &7Nie mozesz postawic tutaj ceglarki
- createSuc: &7Utworzono ceglarke
- createFail: &cCos zle robisz...
- breakBlock: &7Usunales ceglarke
- #----------Crafting-------------#
- 1.slot.item: cobblestone #Item jaki ma byc ustawiony w craftingu w slocie 1
- 2.slot.item: cobblestone #Item jaki ma byc ustawiony w craftingu w slocie 2
- 3.slot.item: cobblestone
- 4.slot.item: cobblestone
- 5.slot.item: cobblestone
- 6.slot.item: cobblestone
- 7.slot.item: cobblestone
- 8.slot.item: cobblestone
- 9.slot.item: cobblestone
- #----------Kod------------------#
- on place of {@block}:
- if name of player's tool is "{@named}":
- if player cannot build at event-block:
- send "{@prefix}{@placeCannot}"
- stop
- if block above event-block is air:
- loop {{@variables}::*}:
- if location of block below event-block is loop-value:
- send "{@prefix}{@createFail}"
- cancel event
- stop
- set block above event-block to {@blockup}
- add location of event-block to {{@variables}::*}
- send "{@prefix}{@createSuc}"
- stop
- send "{@prefix}{@createFail}"
- cancel event
- stop
- on break of {@block}:
- loop {{@variables}::*}:
- if location of event-block is loop-value:
- cancel event
- set event-block to air
- set block above event-block to air
- remove location of event-block from {{@variables}::*}
- chance of {@chance}%:
- drop {@block} named "{@named}"
- loop 1 times:
- send "{@prefix}{@breakBlock}"
- on break of {@blockup}:
- loop {{@variables}::*}:
- if location of block below event-block is loop-value:
- loop {@replace} times:
- wait 1 second
- if block below event-block is not {@block}:
- stop
- set event-block to {@blockup}
- on script load:
- register new shaped recipe for {@block} named "{@named}" using {@1.slot.item}, {@2.slot.item}, {@3.slot.item}, {@4.slot.item}, {@5.slot.item}, {@6.slot.item}, {@7.slot.item}, {@8.slot.item}, {@9.slot.item}
Advertisement
Add Comment
Please, Sign In to add comment