Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class RandomSizeStackDrop extends WeightedItem {
- public readonly int weight;
- public readonly Item drop;
- public WeightedItem(Item i, int w) {
- drop = i;
- weight = w;
- }
- public ItemStack GetStackFromDrop() {
- return new ItemStack(drop, Random.Next(1,5));
- }
- }
Add Comment
Please, Sign In to add comment