L0v0lup

Skript✎Dropcalculator 📷#139 Tutorial

Sep 19th, 2020
1,683
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Dropcalculator(i: item, n1: number, n2: number):
  2.   set {_anzahl} to a random number between {_n1} and {_n2}
  3.   set {_anzahl} to {_anzahl} of {_i}
  4.   add {_anzahl} to {droplist::*}
  5.  
  6. on death of monster:
  7.   clear drops
  8.   clear {droplist::*}
  9.   Dropcalculator(endstone, 2, 64)
  10.   Dropcalculator(diamond, 2, 64)
  11.   set {_drop} to a random element out of {droplist::*}
  12.   drop {_drop} at victim
  13.  
RAW Paste Data