Item Generator

  • 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!

RuberDucky128

Member
Nov 22, 2019
3
0
0
22
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
 
This should work

code_language.skript:
every 5 seconds:
    loop all players:
        loop all blocks in radius 5 around loop-player:
            if loop-block is glass:
                drop a paper named "&a$1" at loop-block's position
Is There A Way To Make It Spawn On Top?
 
This should work

code_language.skript:
every 5 seconds:
    loop all players:
        loop all blocks in radius 5 around loop-player:
            if loop-block is glass:
                drop a paper named "&a$1" at loop-block's position

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


Code:
on right click:
  if player's tool is paper:
    if name of player's tool is "$1":
      command "eco give %player% 1"
      remove 1 of paper named "$1" from player's inventory

Untested
 
Code:
on right click:
  if player's tool is paper:
    if name of player's tool is "$1":
      command "eco give %player% 1"
      remove 1 of paper named "$1" from player's inventory

Untested

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