Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- p: &8[&5Apple Rates&8]&r #Apple Rates
- p2: &8[&5Flint Rates&8]&r #Flint Rates
- perms: skript.op
- oakonly: false #set to true if only oak trees drop apples
- nerfshears: false #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 "{@p2} Current Apple Rates: %{rates::apples}%%%"
- else:
- send "{@p2} 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement