Craftable spawners

Discussion in 'Archived: Plugin Requests' started by dadilio, Aug 26, 2012.

  1. Offline

    dadilio

    hey i was wondering if someone could make a 1.3.2 plugin for craftable spawners, and so if u break a spawner that you could get that kind of egg, if you could do this and would be willing to, and have any question, plz post here. the craftable spawner would be 8 iron bars around the egg in the middle
     
  2. Offline

    javoris767

    This would require Spout o-O
     
  3. Offline

    dadilio

    can anyone else do it?
     
  4. Offline

    JayzaSapphire

    What version of minecraft did you come from?

    Search it up, i think this has been made.
     
    WarmakerT likes this.
  5. Offline

    dadilio

    not for 1.3 can anyone else do it?
     
  6. Offline

    JayzaSapphire

    Send me a link, if it's outdated i may be able to update it for you.
     
  7. Offline

    mushroomhostage

    This is possible without client mods - check out SilkSpawners. It lets you craft spawners with iron bars surrounding their egg, which can optionally be dropped when you break the spawner. There is a 1.3+ update in the thread.
     
  8. Offline

    javoris767

    Oh I forgot you can do that with bukkit...
     
  9. Offline

    RingOfStorms

    lawl your comments are always fun
     
  10. Offline

    javoris767

  11. Offline

    PogoStick29

    So does anyone still need this? I could probably do this.
     
  12. Offline

    RingOfStorms

    It already exists, they linked it above, so there is no need :)
     
  13. Offline

    McLuke500

    I thought it needed spout like 3 months ago :D
     
  14. Offline

    jacklin213

    wait this is possible without spout ??? :eek: (omg my new plugin might workk WIPPEEEE!!!!!)
     
  15. Offline

    RingOfStorms

    Do people not know how to make custom crafting recipes? Or even remove current ones? Why do you think it says the recipe count at the top of your terminal when you start a server?
     
  16. Offline

    jacklin213

    well i did make a post if i could make a custom item without spout and everyone said no
     
  17. Offline

    the_merciless

    But a spawner is not a custom item, i guess people thought you meant a new item, which has never been made on minecraft.
     
  18. Offline

    jacklin213

    if i were to make a item called chopsticks which is 2 sticks next to each other would i be able to do that?
     
  19. Offline

    the_merciless

    Not really, you could make a recipe so that people could craft an item out of 2 sticks but the item crafted would have to already exist.

    eg crafting 2 sticks could give you a fence, you couldnt combine 2 existing items to make a new item which doesnt exist
     
    np98765 likes this.
  20. Offline

    jacklin213

    awh dang
     
  21. Offline

    RingOfStorms

    You could do this.. in a way. You would output a "special stick" of sorts. Add an enchantment to it that will be hidden like bow_infinity or something. Doing this makes it not stack with others and then you can use that stick in a plugin as if it were a whole new item.
     
  22. Offline

    Pippiter69

    You wouldn't need spout....
     
  23. Offline

    jacklin213

    would i b able to make it say chopstick above without it saying stick
     
  24. Offline

    gamerzap

    As of 1.4, you can do that with NBT tags.
     
  25. Offline

    jacklin213

    NBT?
     
  26. Offline

    gamerzap

    NBT is a language made up for minecraft that's sort of like YAML, XML or similar. It has a series of keys of different types. Compound Tags store other tags, Integer tags are integers, Short tags are shorts, Float tags are floats, Double tags are doubles, String tags are strings and Lists are a list of several of one type of tag (tag's in a list have no name). It is used to store lots of data such as item id's, player inventory, and yes, as of 1.4, custom names. Eventually, there will be easy bukkit API for changing names, but until then you have to build against craftbukkit. Here's some code that will change an item's name and give it a description:
    PHP:
                                ItemStack iss = new ItemStack(Material.WOOD_AXE);
                                
    CraftItemStack css = new CraftItemStack(iss); //Turn iss into a CraftItemStack
                                
    net.minecraft.server.ItemStack nms css.getHandle(); //Get the handle of the CraftItemStack
                                
    NBTTagCompound tag nms.tag;  //Make a new NBTTagCompound variable, for getting stuff from nms's tag.
                                
    tag = new NBTTagCompound(); //Clear the item's tag.
                                
    tag.setCompound("display", new NBTTagCompound()); //Add a display compound, in case one already doesn't exist.
                                
    nms.tag tag//Set nms's tag to tag.
                                
    tag nms.tag.getCompound("display"); //Change the tag variable to the 'display' compound.
                                
    NBTTagList lore = new NBTTagList("Lore");  //Creates the lore variable.  It is a list because an item's lore field has to be a list of strings.
                                
    lore.add(new NBTTagString("""§r§5Right click to strike someone with lightning!")); //Adds an unnamed string to the lore list.
                                
    tag.setString("Name""§eThor's Hammer"); //Adds the string 'Name' to the tag variable compound (display).
                                
    tag.set("Lore"lore); //Adds the list 'Lore' to the tag variable compound (display).
                                
    nms.tag.setCompound("display"tag); //Set's the compound 'display' in the item's 'tag' compound to the tag variable.
                                
    player.getInventory().addItem(css); //Add the CraftItemStack to the player's inv
     
  27. Offline

    AndyMcB1

    If someone were to make this it would be outdated as soon as it was written.
     

Share This Page