Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #My rates skript, which has the ability to toggle oak-only and shears via COMMANDS! :) - Ilom
- options:
- p: &8[&3Apple Rates&8]&r #Apple Rates
- p2: &8[&3Flint Rates&8]&r #Flint Rates
- p3: &8[&3Rates Options&8]&r #Rates Options
- perms: skript.op
- oakonly: true #set to true if only oak trees drop apples
- nerfshears: true #set to true to nerf so shears wont get you alot of apples
- command /apples [<text>] [<int>]:
- permission: {@perms}
- aliases: /applerates, /arates, /appler
- usage: /apples [<set:reset>] [<rate (1-100)>]
- trigger:
- if arg-1 is "reset":
- broadcast "{@p} Apple Rates set to Vanilla"
- delete {rates::apples}
- loop all players:
- command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
- else if arg-1 is "set":
- if arg-2 is not set:
- send "{@p} You must specify a rate to set it to!" to command sender
- command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
- stop
- else if arg-2 is less than 0:
- send "{@p} No number lower than 0!" to command sender
- command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
- stop
- else if arg-2 is greater than 100:
- send "{@p} No number higher than 100!" to command sender
- command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
- stop
- set {rates::apples} to arg-2
- broadcast "{@p} Apple Rates set to %arg-2%%%"
- loop all players:
- command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
- else:
- if {rates::apples} is set:
- send "{@p} Current Apple Rates: %{rates::apples}%%%"
- else:
- send "{@p} Current Apple Rates: Vanilla"
- send "{@p} /apples [<set:reset>] [<rate (1-100)>]"
- command "/playsound random.explode %command sender% ~ ~ ~ 1 0.5 1"
- command /flint [<text>] [<int>]:
- permission: {@perms}
- aliases: /flintrates, /flintr, /frates
- usage: /flintrates [<set:reset>] [<rate (1-100)>]
- trigger:
- if arg-1 is "reset":
- broadcast "{@p2} Flint Rates set to Vanilla"
- delete {rates::flint}
- loop all players:
- command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
- else if arg-1 is "set":
- if arg-2 is not set:
- send "{@p2} You must specify a rate to set it to!" to command sender
- command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
- stop
- else if arg-2 is less than 0:
- send "{@p2} No number lower than 0!" to command sender
- command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
- stop
- else if arg-2 is greater than 100:
- send "{@p} No number higher than 100!" to command sender
- command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
- stop
- set {rates::flint} to arg-2
- broadcast "{@p2} Flint Rates set to %arg-2%%%"
- loop all players:
- command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
- else:
- if {rates::flint} is set:
- send "{@p2} Current Flint Rates: %{rates::flint}%%%"
- else:
- send "{@p2} Current Flint Rates: Vanilla"
- send "{@p2} /flint [<set:reset>] [<rate (1-100)>]"
- command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
- on break of gravel:
- event-player's gamemode is survival
- world is not "pvparena" or "spawn" or "musim"
- if {rates::flint} is not set:
- stop
- cancel the event
- set the event-block to air
- set {_chance} to a random integer between 1 and 100
- if {_chance} is between -1 and {rates::flint}:
- drop 1 flint at event-block
- else:
- drop 1 gravel at event-block
- on leaves decay:
- world is not "pvparena" or "spawn" or "musim"
- if {rates::apples} is not set:
- stop
- cancel the event
- set the event-block to air
- chance of {rates::apples}%:
- drop 1 apple at event-block
- if event-block is oak leaves:
- chance of 5%
- drop 1 oak sapling at event-block
- else if event-block is spruce leaves:
- chance of 5%
- drop 1 spruce sapling at event-block
- else if event-block is birch leaves:
- chance of 5%
- drop 1 birch sapling at event-block
- else if event-block is jungle leaves:
- chance of 5%
- drop 1 jungle sapling at event-block
- else if event-block is acacia leaves:
- chance of 5%
- drop 1 acacia sapling at event-block
- else if event-block is dark oak leaves:
- chance of 5%
- drop 1 dark oak sapling at event-block
- on break of leaves:
- event-player's gamemode is survival
- # world is not "pvparena" or "spawn" or "musim"
- if {rates::apples} is not set:
- stop
- if event-player is holding shears:
- {@nerfshears} is true
- stop
- if {@oakonly} is true:
- event-block is not oak leaves or dark oak leaves
- stop
- cancel the event
- set the event-block to air
- chance of {rates::apples}%:
- drop 1 apple at event-block
- if event-block is oak leaves:
- chance of 5%
- drop 1 oak sapling at event-block
- else if event-block is spruce leaves:
- chance of 5%
- drop 1 spruce sapling at event-block
- else if event-block is birch leaves:
- chance of 5%
- drop 1 birch sapling at event-block
- else if event-block is jungle leaves:
- chance of 5%
- drop 1 jungle sapling at event-block
- else if event-block is acacia leaves:
- chance of 5%
- drop 1 acacia sapling at event-block
- else if event-block is dark oak leaves:
- chance of 5%
- drop 1 dark oak sapling at event-block
- command /rates [<text>] [<text>]:
- usage: /rates [<reset:oakonly:shears>] [<on:off>]
- trigger:
- player has the permission "{@perms}":
- if arg-1 is "reset":
- broadcast "{@p2} Flint & Apple Rates set to Vanilla"
- delete {rates::flint}
- delete {rates::apples}
- set {oakonly} to true
- set {nerfshears} to true
- loop all players:
- command "/playsound random.explode %loop-player% ~ ~ ~ 0.5 0.5 1"
- else if arg-1 is "oakonly":
- if arg-2 is "on":
- set {oakonly} to true
- broadcast "{@p3} Oak-only enabled! - Apples will now only drop from oak and dark oak trees!"
- loop all players:
- command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
- if arg-2 is "off":
- set {oakonly} to false
- broadcast "{@p3} Oak-only disabled! - Apples will now drop from all trees!"
- loop all players:
- command "/playsound random.pop %loop-player% ~ ~ ~ 0.5 0.5 1"
- else if arg-1 is "shears":
- if arg-2 is "on":
- set {nerfshears} to false
- broadcast "{@p3} Shears enabled! - Shearing leaves will now drop apples!"
- loop all players:
- command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
- if arg-2 is "off":
- set {nerfshears} to true
- broadcast "{@p3} Shears disabled! - Shearing leaves will no longer drop apples!"
- loop all players:
- command "/playsound random.pop %loop-player% ~ ~ ~ 0.5 0.5 1"
- else:
- command "/playsound random.pop %command sender% ~ ~ ~ 0.75 0.5 1"
- if {rates::flint} is set:
- send "{@p2} Current Flint Rates: %{rates::flint}%%%"
- else:
- send "{@p2} Current Flint Rates: Vanilla"
- wait for 1 tick
- send "{@p2} /flint [<set:reset>] [<rate (1-100)>]"
- if {rates::apples} is set:
- send "{@p} Current Apple Rates: %{rates::apples}%%%"
- else:
- send "{@p} Current Apple Rates: Vanilla"
- wait for 1 tick
- send "{@p} /apples [<set:reset>] [<rate (1-100)>]"
- if {oakonly} is true:
- send "{@p3} Oak-only apples are currently enabled!"
- else:
- send "{@p3} Oak only apples are currently disabled!"
- if {nerfshears} is true:
- send "{@p3} Shears-nerf is currently enabled!"
- else:
- send "{@p3} Shears-nerf is currently disabled!"
- player doesn't have permission "{@perms}":
- command "/playsound random.pop %command sender% ~ ~ ~ 0.75 0.5 1"
- if {rates::flint} is set:
- send "{@p2} Current Flint Rates: %{rates::flint}%%%"
- else:
- send "{@p2} Current Flint Rates: Vanilla"
- if {rates::apples} is set:
- send "{@p} Current Apple Rates: %{rates::apples}%%%"
- else:
- send "{@p} Current Apple Rates: Vanilla"
- if {oakonly} is true:
- send "{@p3} Oak-only apples are currently enabled!"
- else:
- send "{@p3} Oak-only apples are currently disabled!"
- if {nerfshears} is true:
- send "{@p3} Shears-nerf is currently enabled!"
- else:
- send "{@p3} Shears-nerf is currently disabled!"
- command /ratesinfo:
- aliases: /rinfo, /rateslist
- usage: /ratesinfo
- trigger:
- player has the permission "{@perms}":
- command "/playsound random.pop %command sender% ~ ~ ~ 0.75 0.5 1"
- if {rates::flint} is set:
- send "{@p2} Current Flint Rates: %{rates::flint}%%%"
- else:
- send "{@p2} Current Flint Rates: Vanilla"
- wait for 1 tick
- send "{@p2} /flint [<set:reset>] [<rate (1-100)>]"
- if {rates::apples} is set:
- send "{@p} Current Apple Rates: %{rates::apples}%%%"
- else:
- send "{@p} Current Apple Rates: Vanilla"
- wait for 1 tick
- send "{@p} /apples [<set:reset>] [<rate (1-100)>]"
- if {oakonly} is true:
- send "{@p3} Oak-only apples are currently enabled!"
- else:
- send "{@p3} Oak-only apples are currently disabled!"
- if {nerfshears} is true:
- send "{@p3} Shears-nerf is currently enabled!"
- else:
- send "{@p3} Shears-nerf is currently disabled!"
- player doesn't have permission "{@perms}":
- command "/playsound random.pop %command sender% ~ ~ ~ 0.75 0.5 1"
- if {rates::flint} is set:
- send "{@p2} Current Flint Rates: %{rates::flint}%%%"
- else:
- send "{@p2} Current Flint Rates: Vanilla"
- if {rates::apples} is set:
- send "{@p} Current Apple Rates: %{rates::apples}%%%"
- else:
- send "{@p} Current Apple Rates: Vanilla"
- if {oakonly} is true:
- send "{@p3} Oak-only apples are currently enabled!"
- else:
- send "{@p3} Oak-only apples are currently disabled!"
- if {nerfshears} is true:
- send "{@p3} Shears-nerf is currently enabled!"
- else:
- send "{@p3} Shears-nerf is currently disabled!
Advertisement
Add Comment
Please, Sign In to add comment