SHOW:
|
|
- or go back to the newest paste.
| 1 | variables: | |
| 2 | - | {halfores} = true
|
| 2 | + | {halfores} = false
|
| 3 | ||
| 4 | command /halfores <text>: | |
| 5 | permission: skript.op | |
| 6 | trigger: | |
| 7 | if arg 1 is "enable": | |
| 8 | if {halfores} is false:
| |
| 9 | set {halfores} to true
| |
| 10 | broadcast "&7Half Ores has been &2enabled&7!" | |
| 11 | loop all players: | |
| 12 | set {coal.ore.%loop-player%} to false
| |
| 13 | set {iron.ore.%loop-player%} to false
| |
| 14 | set {gold.ore.%loop-player%} to false
| |
| 15 | set {diamond.ore.%loop-player%} to false
| |
| 16 | set {lapis.ore.%loop-player%} to false
| |
| 17 | set {redstone.ore.%loop-player%} to false
| |
| 18 | set {emerald.ore.%loop-player%} to false
| |
| 19 | set {quartz.ore.%loop-player%} to false
| |
| 20 | stop | |
| 21 | if {halfores} is true:
| |
| 22 | message "&7Half Ores has already been enabled." | |
| 23 | stop | |
| 24 | if arg 1 is "disable": | |
| 25 | if {halfores} is true:
| |
| 26 | set {halfores} to false
| |
| 27 | broadcast "&7Half Ores has been &4disabled&7!" | |
| 28 | stop | |
| 29 | if {halfores} is false:
| |
| 30 | message "&7Half Ores has already been disabled." | |
| 31 | stop | |
| 32 | if arg 1 is "toggle": | |
| 33 | if {halfores} is false:
| |
| 34 | set {halfores} to true
| |
| 35 | broadcast "&7Half Ores has been &2enabled&7!" | |
| 36 | loop all players: | |
| 37 | set {coal.ore.%loop-player%} to false
| |
| 38 | set {iron.ore.%loop-player%} to false
| |
| 39 | set {gold.ore.%loop-player%} to false
| |
| 40 | set {diamond.ore.%loop-player%} to false
| |
| 41 | set {lapis.ore.%loop-player%} to false
| |
| 42 | set {redstone.ore.%loop-player%} to false
| |
| 43 | set {emerald.ore.%loop-player%} to false
| |
| 44 | set {quartz.ore.%loop-player%} to false
| |
| 45 | stop | |
| 46 | if {halfores} is true:
| |
| 47 | set {halfores} to false
| |
| 48 | broadcast "&7Half Ores has been &4disabled&7!" | |
| 49 | stop | |
| 50 | if arg 1 is "help": | |
| 51 | message "&7/halfores &cenable &7- &2Enables the scenario" | |
| 52 | message "&7/halfores &cdisable &7- &2Disables the scenario" | |
| 53 | message "&7/halfores &ctoggle &7- &2Toggles the scenario's on/off state" | |
| 54 | message "&7/halfores &chelp &7- &2Displays this text :D" | |
| 55 | ||
| 56 | on mine of coal ore: | |
| 57 | if {halfores} is true:
| |
| 58 | if {coal.ore.%player%} is true:
| |
| 59 | set {coal.ore.%player%} to false
| |
| 60 | else: | |
| 61 | set the block to air | |
| 62 | cancel the event | |
| 63 | set {coal.ore.%player%} to true
| |
| 64 | ||
| 65 | on mine of iron ore: | |
| 66 | if {halfores} is true:
| |
| 67 | if {iron.ore.%player%} is true:
| |
| 68 | set {iron.ore.%player%} to false
| |
| 69 | else: | |
| 70 | set the block to air | |
| 71 | cancel the event | |
| 72 | set {iron.ore.%player%} to true
| |
| 73 | ||
| 74 | on mine of gold ore: | |
| 75 | if {halfores} is true:
| |
| 76 | if {gold.ore.%player%} is true:
| |
| 77 | set {gold.ore.%player%} to false
| |
| 78 | else: | |
| 79 | set the block to air | |
| 80 | cancel the event | |
| 81 | set {gold.ore.%player%} to true
| |
| 82 | ||
| 83 | on mine of diamond ore: | |
| 84 | if {halfores} is true:
| |
| 85 | if {diamond.ore.%player%} is true:
| |
| 86 | set {diamond.ore.%player%} to false
| |
| 87 | else: | |
| 88 | set the block to air | |
| 89 | cancel the event | |
| 90 | set {diamond.ore.%player%} to true
| |
| 91 | ||
| 92 | on mine of lapis ore: | |
| 93 | if {halfores} is true:
| |
| 94 | if {lapis.ore.%player%} is true:
| |
| 95 | set {lapis.ore.%player%} to false
| |
| 96 | else: | |
| 97 | set the block to air | |
| 98 | cancel the event | |
| 99 | set {lapis.ore.%player%} to true
| |
| 100 | ||
| 101 | on mine of redstone ore: | |
| 102 | if {halfores} is true:
| |
| 103 | if {redstone.ore.%player%} is true:
| |
| 104 | set {redstone.ore.%player%} to false
| |
| 105 | else: | |
| 106 | set the block to air | |
| 107 | cancel the event | |
| 108 | set {redstone.ore.%player%} to true
| |
| 109 | ||
| 110 | on mine of emerald ore: | |
| 111 | if {halfores} is true:
| |
| 112 | if {emerald.ore.%player%} is true:
| |
| 113 | set {emerald.ore.%player%} to false
| |
| 114 | else: | |
| 115 | set the block to air | |
| 116 | cancel the event | |
| 117 | set {emerald.ore.%player%} to true
| |
| 118 | ||
| 119 | on mine of quartz ore: | |
| 120 | if {halfores} is true:
| |
| 121 | if {quartz.ore.%player%} is true:
| |
| 122 | set {quartz.ore.%player%} to false
| |
| 123 | else: | |
| 124 | set the block to air | |
| 125 | cancel the event | |
| 126 | set {quartz.ore.%player%} to true |