literally half the skript is a command where you can blacklist items but ok.
Use this new one
options:
Prefix: &2&l[&a&lRI&2&l]
BlacklistPerm: Blacklist.Use
command /BlacklistItem [<text>]:
permission: {@BlacklistPerm}
permission message: {@Prefix} &cYou don't have permission to execute this command!
trigger:
if arg-1 is not set:
send "&aHow to use%nL%&eHold any item in your hand, then type ""/BlacklistItem Confirm""%nL%&6If an item isn't added in the blacklist, it will add the type of block.%nL%&eOtherwise it will remove the type of block from the blacklist."
else if arg-1 is "confirm":
if {RIBlacklist::*} does not contain type of player's held item:
add type of player's held item to {RIBlacklist::*}
send "{@Prefix} &aAdded item to blacklist!"
else:
remove type of player's held item from {RIBlacklist::*}
send "{@Prefix} &aRemoved item from blacklist!"
else:
send "{@Prefix} &cYou must type ""/BlacklistItem Confirm"" to confirm!"
command /RIToggle:
trigger:
set {RIToggled::%player's uuid%} to true if {RIToggled::%player's uuid%} is false, else true
send "{@Prefix} &eToggled random items to %{RIToggled::%player's uuid%}%"
every 10 seconds:
loop all players:
{RIToggled::%loop-player's uuid%} is true
loop 100 times:
set {_item} to random element out of all items
if {RIBlacklist::*} does not contain {_item}:
give loop-player {_item}
exit loop