Give item / NPC

Discussion in 'Bukkit Help' started by Snakeruler, Mar 9, 2011.

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

    Snakeruler

    Could anyone tell me simply how to add a block to the inventory, based on an block id you give, and how to make a basic npc player that stands doing nothing.

    Please, Snake
     
  2. Offline

    Plague

    give is a standard command of minecraft, but there are many more plugins for that - ScrapBukkit, Essentials, PlgEssentials, ...

    Citizens is a plugin having NPCs
     
  3. Offline

    Snakeruler

    Thanks, but I mean like the code to do that, I've tried itemstacks, and nothing seems to get It to work
     
  4. Offline

    Plague

    Most of the plugins are opensource...
    This is what I use for adding items:
    ItemStack stack = new ItemStack(m, cnt, dam);
    player.getInventory().addItem(stack);
     
Thread Status:
Not open for further replies.

Share This Page