Jump to content

Item Generator


Chonga

Recommended Posts

Item Generator

Creating generators has never been as easy

 

__________________________________________________________________________________________

 

Requirements

  • Skript: The script wouldn't load or work without this plugin.

 

 

 

Code

#
#Skript Item Generator
#By Chonga
#


options:
    prefix: Server - 
    cooldown: 5 seconds
    item: paper
    
    
#Variables of this skript

variables:
    {generator::1::*} = none
    
    
#Drops the items so the generators work

every {@cooldown}:
    drop 1 {@item} named "&6Cash &7(&e+1$)" 0.5 meters above {generator::1::*}
    
    
#Adds the blocks location so that items will spawn on top of it

on place white concrete:
    add event-block's location to {generator::1::*}
    send action bar "{@prefix} You placed a level 1 generator" to player
    
    
#Removes the blocks location so that items will not spawn on top of it

on break white concrete:
    if {generator::1::*} contains event-block's location:
        remove event-block's location from {generator::1::*}
        send action bar "{@prefix} You removed a level 1 generator" to player

 

  • Like 2

Screen Shot 2020-01-08 at 2.51.07 PM.png

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...

Locked 🔒 - Please do not reply to a topic that has been inactive for over a month

  • Like 1
  • Thanks 1
  • Confused 2

Junior Mod (01/04/2020) - Resigned 

 Discord » Koronotchi#0001 
Minecraft Username » Koronotchi 

image.png.17a385f298c8969f6b1cf03e27ee50d3.png

 

Link to comment
Share on other sites

  • zKoro locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...