Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- 1szansa: 1% #gdy w poblizu jest 1 gracz (gdy ktoś chce ukratkiem rozwalic komus baze)
- 2szansa: 10% #gdy w poblizu wybuchu jest 1 gracz z tnt i 1 bez tnt (małe starcia)
- 3szansa: 30% #gdy w poblizu wybuchu jest wiecej niz 5 graczy (czyli wojny itd.)
- swiat: pvp #na jakim swiecie ma dzialac skrypt
- on explode:
- event-world is "{@swiat}"
- {tnt-obsydian.amountofexplodesinlast5seconds} >= 10:
- stop
- add 1 to {tnt-obsydian.amountofexplodesinlast5seconds}
- loop all players in radius 50 around event-location:
- add 1 to {_plrs}
- loop all blocks in radius 4 around event-location:
- loop-block is obsidian
- {_done} is "1":
- chance of {@3szansa}
- add location of loop-block to {_dmged-blcks::*}
- {_done} is "2":
- chance of {@2szansa}
- add location of loop-block to {_dmged-blcks::*}
- {_done} is "3":
- chance of {@1szansa}
- add location of loop-block to {_dmged-blcks::*}
- {_done} is not set
- {_plrs} >= 5:
- chance of {@3szansa}
- add location of loop-block to {_dmged-blcks::*}
- set {_done} to "1"
- loop-player has tnt:
- set {_plhstnt} to location of loop-player
- loop-player doesn't have tnt:
- {_plhstnt} is set
- distance between location of loop-player and {_plhstnt} > 10
- chance of {@2szansa}
- add location of loop-block to {_dmged-blcks::*}
- set {_done} to "2"
- chance of {@1szansa}
- add location of loop-block to {_dmged-blcks::*}
- set {_done} to "3"
- chance of 50%:
- loop {_dmged-blcks::*}:
- set block at loop-value to black stained clay
- wait 5 seconds
- remove 1 from {tnt-obsydian.amountofexplodesinlast5seconds}
- stop
- on explode:
- event-world is "{@swiat}"
- {tnt-obsydian.amountofexplodesinlast5seconds} < 10
- loop all blocks in radius 3 around event-location:
- loop-block is not air or obsidian
- {_true} is set:
- distance between event-location and loop-block is 5:
- chance of 50%
- loop-block is not water or lava
- set loop-block to air
- set loop-block to air
- {_true} is not set
- loop-block is water or lava:
- distance between event-location and loop-block <= 2
- set {_true} to true
- stop
Advertisement
Add Comment
Please, Sign In to add comment