1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Timer task

Discussion in 'Development' started by Karanpatel567, Dec 9, 2017.

  1. Karanpatel567

    Karanpatel567 Baby Zombie

    Messages:
    115
    GitHub:
    Karanpatel567
    Hey guys, how would i make it so every 30 minutes it would spawn a chest block. I know you have to create a task and use SchedualRepeatingTask but I have no idea how to do this, I tried looking at other threads but it's confusing. Please can you provide me some code thanks! :)
     
  2. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    To make task repeat every 30 minutes do 30 * 60 * 20 and then use setBlock() to spawn chest block. Is it that hard?
     
    iiFlamiinBlaze and jojoe77777 like this.
  3. Karanpatel567

    Karanpatel567 Baby Zombie

    Messages:
    115
    GitHub:
    Karanpatel567
    I still don't get it
     
  4. KittyDev

    KittyDev Slime

    Messages:
    96
    GitHub:
    FreakingDev
    Then go to facepalm threads
     
    Teamblocket and Kyd like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.