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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

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

Upgrades

Discussion in 'Skript' started by skanto123, Mar 16, 2018.

Thread Status:
Not open for further replies.
  1. s

    skanto123 Well-Known Member

    Joined:
    Jan 8, 2018
    Messages:
    70
    Likes Received:
    0
    So im making a upgrade command for skyblock and there will be generator upgrades and when you click lvl 1 upgrade the cobblestone generator at your island drops coal so how do i make this I know how to make the gui but how do i import skyblock and another plugin and make it drop coal when upgraded
     
  2. Wynnevir

    Wynnevir Well-Known Member

    Joined:
    Jul 9, 2017
    Messages:
    974
    Likes Received:
    57
    Don't know about 'importing a plugin' but if the generators are in a set place on the island(or if you save the location they're made at), you can check for when the cobblestone is formed and drop coal at the event location if the corresponding level variable is true.
     
  3. s

    skanto123 Well-Known Member

    Joined:
    Jan 8, 2018
    Messages:
    70
    Likes Received:
    0
    Can you make a litltle code showing how it works?
     
  4. Wynnevir

    Wynnevir Well-Known Member

    Joined:
    Jul 9, 2017
    Messages:
    974
    Likes Received:
    57
    Unable to test this atm, but I believe it would be something like this:
    Code (Skript):
    1. on block form of cobblestone:
    2.     if event-location = {savedlocation}:
    3.         drop 1 coal at event-location
    Edit: Internet says theres some issues potentially with the on form event, so you may also try the block physics event instead.
     
    #4 Wynnevir, Mar 16, 2018
    Last edited: Mar 16, 2018
Thread Status:
Not open for further replies.
Loading...