Jump to content

Chonga

Member
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Chonga

  1. 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
×
×
  • Create New...