Setting Command in a Command Block Item

Discussion in 'Plugin Development' started by Digbywood, Apr 4, 2015.

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

    Digbywood

    Hey I am making a plugin which will give the player a command block with a command NBT inside it so when the player places the block down it will automatically have the command in it but I cannot find out a way of doing it. Any Ideas?

    Digbywood.
     
  2. Offline

    nverdier

    @Digbywood So you want to have it so whenever a player places a command block, a command is automatically placed in it?
     
  3. Offline

    teej107

    @Digbywood Have you tried looking in the JavaDocs?
     
  4. Offline

    nverdier

  5. Offline

    Digbywood

    @nverdier I want it so that the command block that they are holding in there inventory stores a command. They added a feature in minecraft not too long ago where you place a command block, write a command in it and then hold ctrl+pick-block then it will give you a command block that has the NBT stored in it. I want to recreate this in a Bukkit Plugin when they type a command.


    @teej107 Ill start having a look at the Java Docs for answers, thank you
     
  6. Offline

    nverdier

  7. Offline

    Digbywood

    Thanks @nverdier this helps but what I really want is the command stored in the item not the block. If you know any good tutorials for editing certin NBT data of items maybe I could see if I could incorporate it to what I'm trying to do this would help.
     
Thread Status:
Not open for further replies.

Share This Page