Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {halfores} = false
- command /halfores <text>:
- permission: skript.op
- trigger:
- if arg 1 is "enable":
- if {halfores} is false:
- set {halfores} to true
- broadcast "&7Half Ores has been &2enabled&7!"
- loop all players:
- set {coal.ore.%loop-player%} to false
- set {iron.ore.%loop-player%} to false
- set {gold.ore.%loop-player%} to false
- set {diamond.ore.%loop-player%} to false
- set {lapis.ore.%loop-player%} to false
- set {redstone.ore.%loop-player%} to false
- set {emerald.ore.%loop-player%} to false
- set {quartz.ore.%loop-player%} to false
- stop
- if {halfores} is true:
- message "&7Half Ores has already been enabled."
- stop
- if arg 1 is "disable":
- if {halfores} is true:
- set {halfores} to false
- broadcast "&7Half Ores has been &4disabled&7!"
- stop
- if {halfores} is false:
- message "&7Half Ores has already been disabled."
- stop
- if arg 1 is "toggle":
- if {halfores} is false:
- set {halfores} to true
- broadcast "&7Half Ores has been &2enabled&7!"
- loop all players:
- set {coal.ore.%loop-player%} to false
- set {iron.ore.%loop-player%} to false
- set {gold.ore.%loop-player%} to false
- set {diamond.ore.%loop-player%} to false
- set {lapis.ore.%loop-player%} to false
- set {redstone.ore.%loop-player%} to false
- set {emerald.ore.%loop-player%} to false
- set {quartz.ore.%loop-player%} to false
- stop
- if {halfores} is true:
- set {halfores} to false
- broadcast "&7Half Ores has been &4disabled&7!"
- stop
- if arg 1 is "help":
- message "&7/halfores &cenable &7- &2Enables the scenario"
- message "&7/halfores &cdisable &7- &2Disables the scenario"
- message "&7/halfores &ctoggle &7- &2Toggles the scenario's on/off state"
- message "&7/halfores &chelp &7- &2Displays this text :D"
- on mine of coal ore:
- if {halfores} is true:
- if {coal.ore.%player%} is true:
- set {coal.ore.%player%} to false
- else:
- set the block to air
- cancel the event
- set {coal.ore.%player%} to true
- on mine of iron ore:
- if {halfores} is true:
- if {iron.ore.%player%} is true:
- set {iron.ore.%player%} to false
- else:
- set the block to air
- cancel the event
- set {iron.ore.%player%} to true
- on mine of gold ore:
- if {halfores} is true:
- if {gold.ore.%player%} is true:
- set {gold.ore.%player%} to false
- else:
- set the block to air
- cancel the event
- set {gold.ore.%player%} to true
- on mine of diamond ore:
- if {halfores} is true:
- if {diamond.ore.%player%} is true:
- set {diamond.ore.%player%} to false
- else:
- set the block to air
- cancel the event
- set {diamond.ore.%player%} to true
- on mine of lapis ore:
- if {halfores} is true:
- if {lapis.ore.%player%} is true:
- set {lapis.ore.%player%} to false
- else:
- set the block to air
- cancel the event
- set {lapis.ore.%player%} to true
- on mine of redstone ore:
- if {halfores} is true:
- if {redstone.ore.%player%} is true:
- set {redstone.ore.%player%} to false
- else:
- set the block to air
- cancel the event
- set {redstone.ore.%player%} to true
- on mine of emerald ore:
- if {halfores} is true:
- if {emerald.ore.%player%} is true:
- set {emerald.ore.%player%} to false
- else:
- set the block to air
- cancel the event
- set {emerald.ore.%player%} to true
- on mine of quartz ore:
- if {halfores} is true:
- if {quartz.ore.%player%} is true:
- set {quartz.ore.%player%} to false
- else:
- set the block to air
- cancel the event
- set {quartz.ore.%player%} to true
Advertisement
Add Comment
Please, Sign In to add comment