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

Solved BedWars [help]

Comments in 'Plugin Development' started by Survingo, Mar 6, 2016.

  1. Survingo
    Offline

    Survingo Active Member

    Joined:
    Dec 6, 2015
    Posts:
    221
    Hello my buddies!
    Today I want to code for the BedWars plugin the item spawner... but I do not find the code for setting Items in Chest e.g. 1 Iron ingot every 5 seconds. Any one got that?
    Kres007 likes this.
  2. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    Inventory::addItem()
  3. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    and to get chest inventory:
    PHP:
     $level->getTile(new Vector3($x$y$z))->getInventory(); //suppose, tile at these coordinates is a chest
    Survingo likes this.

Share This Page

Advertisement