Random drops Script

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Surprizey

Member
Mar 14, 2020
1
0
0
21
Category: Scripts

Suggested name: Random Drops Script

Spigot/Skript Version:
TacoSpigot-1.8.8 SK version: 2.2-dev36


What I want:
So basically i want a skript that will make every drop in minecraft random. Example: so if i break a grass block i get lets say diamond if i break grass block again lets say i get gold basically random stuff :emoji_grinning:.

Another example in a video time: 2:19

Ideas for commands:
Doesnt really need commands mby command for enabling and disabling it :emoji_grinning: /randomoff /randomon

Ideas for permissions:
Admin permission for /randomoff /randomon random.admin or something :emoji_grinning:

When I'd like it by: Dont really know how much time would it take but asap :emoji_grinning:
 
Haven't tested it, can't for a while, I think it works though
Code:
on break of block:
    drop random element of {item_list::*}
The good thing with this skript is that you can make blocks drop only certain items.
 
Category: Scripts

Suggested name: Random Drops Script

Spigot/Skript Version:
TacoSpigot-1.8.8 SK version: 2.2-dev36


What I want:
So basically i want a skript that will make every drop in minecraft random. Example: so if i break a grass block i get lets say diamond if i break grass block again lets say i get gold basically random stuff :emoji_grinning:.

Another example in a video time: 2:19

Ideas for commands:
Doesnt really need commands mby command for enabling and disabling it :emoji_grinning: /randomoff /randomon

Ideas for permissions:
Admin permission for /randomoff /randomon random.admin or something :emoji_grinning:

When I'd like it by: Dont really know how much time would it take but asap :emoji_grinning:
Code:
on load:
    set {blocks::*} to all blocks
    delete {blocks::1}
    stop

on unload:
    delete {blocks::*}
    stop

on block break:
    drop a random element out of {blocks::*}
    stop