SHOW:
|
|
- or go back to the newest paste.
| 1 | #= #Bow =# | |
| 2 | command /bow <text>: | |
| 3 | description: bow Enable:Disable:Toggle | |
| 4 | usage: /bow <enable:disable:toggle> | |
| 5 | player is op | |
| 6 | trigger: | |
| 7 | if arg 1 is "enable": | |
| 8 | set {bow} to true
| |
| 9 | message "&a#Bow Enabled" | |
| 10 | if arg 1 is "disable": | |
| 11 | set {bow} to false
| |
| 12 | message "&c#Bow Disabled" | |
| 13 | if arg 1 is "toggle": | |
| 14 | if {bow} is true:
| |
| 15 | set {bow} to false
| |
| 16 | message "&c#Bow Disabled" | |
| 17 | stop | |
| 18 | if {bow} is false:
| |
| 19 | set {bow} to true
| |
| 20 | message "&a#Bow Enabled" | |
| 21 | stop | |
| 22 | ||
| 23 | every second: | |
| 24 | if {bow} is true
| |
| 25 | apply fire resistence to all players for 1 second | |
| 26 | ||
| 27 | on damage: | |
| 28 | if {bow} is true
| |
| 29 | damage was caused by contact from entity | |
| 30 | entity is player | |
| 31 | - | cancel event |
| 31 | + | cancel event |
| 32 | ||
| 33 | on left click of sword: | |
| 34 | if {bow} is true
| |
| 35 | replace %item% with air |