Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &2[&4Apples&2]&r
- on leaves decay:
- cancel the event
- set the block to air
- chance of {Apl}%:
- drop 1 apple
- else:
- targeted block is oak leaves:
- chance of 5%:
- drop 1 oak sapling
- targeted block is birch leaves:
- chance of 5%:
- drop 1 birch sapling
- targeted block is 161:0:
- chance of 5%:
- drop 1 6:4
- targeted block is spruce leaves:
- chance of 5%:
- drop 1 spruce sapling
- targeted block is 161:1:
- chance of 5%:
- drop 1 6:5
- targeted block is jungle leaves:
- chance of 2.5%:
- drop 1 oak sapling
- on break of leaves:
- cancel the event
- set the block to air
- chance of {Apl}%:
- drop 1 apple
- else:
- targeted block is oak leaves:
- chance of 5%:
- drop 1 oak sapling
- targeted block is birch leaves:
- chance of 5%:
- drop 1 birch sapling
- targeted block is 161:0:
- chance of 5%:
- drop 1 6:4
- targeted block is spruce leaves:
- chance of 5%:
- drop 1 spruce sapling
- targeted block is 161:1:
- chance of 5%:
- drop 1 6:5
- targeted block is jungle leaves:
- chance of 2.5%:
- drop 1 oak sapling
- command /apples [<text>] [<number>]:
- aliases: /applerate, /applerates
- permission: skript.op
- trigger:
- if arg-1 is "set":
- if arg-2 is set:
- arg-2 is greater than 100:
- message "{@P} You can't set apple rates to %arg-2%!"
- stop trigger
- arg-2 is less than 0:
- message "{@P} You can't set apple rates to %arg-2%!"
- stop trigger
- set {Apl} to arg-2
- broadcast "{@P} Rate: %arg-2%%%"
- if arg-2 is not set:
- message "{@P} /apples set (number)"
- if arg-1 is not set:
- {Apl} is set:
- message "{@P} Apple rates are %{Apl}%%%"
- {Apl} is not set:
- message "{@P} Apple rates are not set!"
- message "{@P} /apples set (number)"
Advertisement
Add Comment
Please, Sign In to add comment