knugi

Untitled

Jun 21st, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. on script load:
  2. if folder "plugins/Drop" doesn't exists:
  3. create folder "plugins/Drop"
  4. if file "plugins/Drop/config.yml" doesn't exists:
  5. create file "plugins/Drop/config.yml"
  6. set "diamentprocent" to "3.0" in yaml file "plugins/Drop/config.yml"
  7. if file "plugins/Drop/messages.yml" doesn't exists:
  8. create file "plugins/Drop/messages.yml"
  9. set "diament" to "Diament wylecial" in yaml file "plugins/Drop/messages.yml"
  10. set "emerald" to "Emerald wylecial" in yaml file "plugins/Drop/messages.yml"
  11. set "zelazo" to "Zelazo wylecialo" in yaml file "plugins/Drop/messages.yml"
  12.  
  13. wait 2 tick
  14. set {diament} to colored single value "diament" get of "plugins/Drop/messages.yml"
  15. set {emerald} to colored single value "emerald" get of "plugins/Drop/messages.yml"
  16. set {zelazo} to colored single value "zelazo" get of "plugins/Drop/messages.yml"
  17. set {diamentprocent} to single value "diamentprocent" get of "plugins/Drop/config.yml" parsed as number
  18. on mine of stone:
  19. cancel event
  20. chance of {diamentprocent}%:
  21. give 1 diamond to the player
  22. send "%{diament}%" to player
  23. chance of 50%:
  24. give 1 emerald to the player
  25. send "%{emerald}%" to player
  26. chance of 30%:
  27. give 1 iron ingot to the player
  28. send "%{zelazo}%" to player
Advertisement
Add Comment
Please, Sign In to add comment