Jump to content
ItsEnderYT

Can someone make me this skript?

Recommended Posts

heres what i want a skript that gives a player a random item every 15 seconds and can be toggled with a command like /togglerandom

Share this post


Link to post
Share on other sites
Posted (edited)

Hey I made the skript, i did not test it but the commands are 

  1. /toggle-random help - Shows all Commands
  2. /toggle-random ban <item id> - Block item
  3. /toggle-random unban <item id> - Unblock item
  4. /toggle-random view banned - View all Block items
  5. /toggle-random toggle - Enable/Disable Randomizer

It gives the player a random item every 15 seconds, every player gets a different item and when a player types [item] in chat, its replaces it with the item, so they can show off that they got!

 

Go to the skript folder, then go to scripts and make a folder called Randomizer.sk and put this in it (https://hastebin.com/nayakogusi.coffeescript) The code is 59 lines, so don't expect the best of the best.

It is not the best as it just loops for a random number between 1 and 2267 and gives the player the item id, and when the item it sets the players randomizer to is on the ban list, it repeats the command! Item id list here (https://minecraft-ids.grahamedgecombe.com/

You are welcome!

Edited by dnadany689

Share this post


Link to post
Share on other sites
7 hours ago, dnadany689 said:

Hey I made the skript, i did not test it but the commands are 

  1. /toggle-random help - Shows all Commands
  2. /toggle-random ban <item id> - Block item
  3. /toggle-random unban <item id> - Unblock item
  4. /toggle-random view banned - View all Block items
  5. /toggle-random toggle - Enable/Disable Randomizer

It gives the player a random item every 15 seconds, every player gets a different item and when a player types [item] in chat, its replaces it with the item, so they can show off that they got!

 

Go to the skript folder, then go to scripts and make a folder called Randomizer.sk and put this in it (https://hastebin.com/nayakogusi.coffeescript) The code is 59 lines, so don't expect the best of the best.

It is not the best as it just loops for a random number between 1 and 2267 and gives the player the item id, and when the item it sets the players randomizer to is on the ban list, it repeats the command! Item id list here (https://minecraft-ids.grahamedgecombe.com/

You are welcome!

the link doesnt work

Share this post


Link to post
Share on other sites

you can still toggle by /toggle-random toggle , and it gives the player 1 random item each 10 seconds if you want to change it go to line 15 and change this line "every 10 seconds:"   to "every {number} seconds"

Share this post


Link to post
Share on other sites
On 1/10/2020 at 3:16 AM, dnadany689 said:

you can still toggle by /toggle-random toggle , and it gives the player 1 random item each 10 seconds if you want to change it go to line 15 and change this line "every 10 seconds:"   to "every {number} seconds"

Quick question does the toggle allow someone to toggle them getting random items or is it a server wide toggle?

 

Share this post


Link to post
Share on other sites
On 1/13/2020 at 6:24 AM, dnadany689 said:

You need a permission to toggle, and when you do it it does it to the whole server!

that wont work for me then i need it to be a player can do /toggleitem and then they wont recive items but others can still unless they do the same

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...