Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- if folder "plugins/Drop" doesn't exists:
- create folder "plugins/Drop"
- if file "plugins/Drop/config.yml" doesn't exists:
- create file "plugins/Drop/config.yml"
- set "diamentprocent" to "3.0" in yaml file "plugins/Drop/config.yml"
- if file "plugins/Drop/messages.yml" doesn't exists:
- create file "plugins/Drop/messages.yml"
- set "diament" to "Diament wylecial" in yaml file "plugins/Drop/messages.yml"
- set "emerald" to "Emerald wylecial" in yaml file "plugins/Drop/messages.yml"
- set "zelazo" to "Zelazo wylecialo" in yaml file "plugins/Drop/messages.yml"
- wait 2 tick
- set {diament} to colored single value "diament" get of "plugins/Drop/messages.yml"
- set {emerald} to colored single value "emerald" get of "plugins/Drop/messages.yml"
- set {zelazo} to colored single value "zelazo" get of "plugins/Drop/messages.yml"
- set {diamentprocent} to single value "diamentprocent" get of "plugins/Drop/config.yml" parsed as number
- on mine of stone:
- cancel event
- chance of {diamentprocent}%:
- give 1 diamond to the player
- send "%{diament}%" to player
- chance of 50%:
- give 1 emerald to the player
- send "%{emerald}%" to player
- chance of 30%:
- give 1 iron ingot to the player
- send "%{zelazo}%" to player
Advertisement
Add Comment
Please, Sign In to add comment