SHOW:
|
|
- or go back to the newest paste.
| 1 | - | ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ |
| 1 | + | |
| 2 | - | Name: DeathHead |
| 2 | + | ║ TreeAssist by FejminTV ║ |
| 3 | - | Version: 1.0 |
| 3 | + | |
| 4 | - | Skript: 2.0.2 |
| 4 | + | |
| 5 | - | ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ |
| 5 | + | |
| 6 | - | |
| 6 | + | |
| 7 | ║ - Zarabianie na skrypcie ║ | |
| 8 | - | ║ Licencja DeathHead by FejminTV ║ |
| 8 | + | |
| 9 | ╚════════════════════════════════════════ | |
| 10 | ||
| 11 | variables: | |
| 12 | {tree.status} = 1
| |
| 13 | options: | |
| 14 | permission: &4Nie masz uprawnien by uzywac tej komendy! | |
| 15 | tag: &8[&cTreeAssist&8] | |
| 16 | on break of wood: | |
| 17 | {tree.status} is 1:
| |
| 18 | if player has permission "tree": | |
| 19 | player is holding axe: | |
| 20 | loop blocks upwards: | |
| 21 | loop-block is wood: | |
| 22 | drop the loop-block-1 at event-block | |
| 23 | set the loop-block-1 to air | |
| 24 | add 1 to {tool.%player%}
| |
| 25 | loop blocks in radius 1 around loop-block: | |
| 26 | if loop-block-1 is leaves: | |
| 27 | set {tree.%player%} to true
| |
| 28 | set the loop-block-1 to air | |
| 29 | else: | |
| 30 | send "{@tag} {@permission}"
| |
| 31 | stop | |
| 32 | ||
| 33 | command /tree [<text>]: | |
| 34 | trigger: | |
| 35 | if player has permission "tree": | |
| 36 | if arg 1 is "off": | |
| 37 | set {tree.status} to 0
| |
| 38 | send "{@tag} &7TreeAssist jest &cOFF"
| |
| 39 | stop | |
| 40 | if arg 1 is "on": | |
| 41 | set {tree.status} to 1
| |
| 42 | send "{@tag} &7TreeAssist jest &aON"
| |
| 43 | stop | |
| 44 | else: | |
| 45 | send "{@tag} &c/tree &7(&con&7/&coff&7)"
| |
| 46 | stop | |
| 47 | else: | |
| 48 | send "{@tag} {@permission}"
| |
| 49 | stop |