1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Item Generator

Discussion in 'Requests' started by RuberDucky128, Nov 27, 2019.

  1. RuberDucky128

    RuberDucky128 Member

    Joined:
    Nov 22, 2019
    Messages:
    3
    Likes Received:
    0
    Category: Item That Spawn On A Block

    Suggested name: generator.sk

    Spigot/Skript Version: lastest skript

    What I want: A Paper Named "$1" That Spawns On A Glass Block Every 5 Seconds

    Ideas for commands: /gen

    Ideas for permissions: No Perms

    When I'd like it by: As Soon As Possisable
     
  2. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    314
    Likes Received:
    21
    This should work

    Code (Skript):
    1. every 5 seconds:
    2.     loop all players:
    3.         loop all blocks in radius 5 around loop-player:
    4.             if loop-block is glass:
    5.                 drop a paper named "&a$1" at loop-block's position
     
    • Useful Useful x 2
  3. RuberDucky128

    RuberDucky128 Member

    Joined:
    Nov 22, 2019
    Messages:
    3
    Likes Received:
    0
    Is There A Way To Make It Spawn On Top?
     
  4. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    314
    Likes Received:
    21
    Yes, change Y-Value of loop-block's position to +1
     
  5. bigboybigboi

    bigboybigboi New Member

    Joined:
    Nov 26, 2019
    Messages:
    8
    Likes Received:
    0
    I am interested in this as well but is there a way to make the paper ACTUALLY pay u the money but after wards the paper dissapears.. like 1 time us of each paper but.. then if it is like 36 or something and each is 1 it adds 36.. but doesn't all of them disappear cuz they were stacked...
     
  6. Conutik

    Conutik Member

    Joined:
    Jan 12, 2020
    Messages:
    19
    Likes Received:
    1

    Code (Text):
    1. on right click:
    2.   if player's tool is paper:
    3.     if name of player's tool is "$1":
    4.       command "eco give %player% 1"
    5.       remove 1 of paper named "$1" from player's inventory
    Untested
     
  7. BuzzTheGamer23

    BuzzTheGamer23 New Member

    Joined:
    Jan 10, 2020
    Messages:
    5
    Likes Received:
    0
    But then if this is a server that allows this, they can rename a paper to $1 and abuse it, I would recommend making it named &a$1 (or any color, can also be <(the color you want)>$1), since you can’t do colored chat in anvils
     

Share This Page

Loading...