How to use the new things added in 1.4.6 (no NBT)

Discussion in 'Resources' started by KeybordPiano459, Dec 29, 2012.

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

    KeybordPiano459

    Then I'm not sure... :/
     
  2. Offline

    xXSniperzzXx_SD

    Your not setting the damage value to the players head
     
  3. Offline

    chasechocolate

    C0nsole
    Code:java
    1. ItemStack skull = new ItemStack(397, 1, (short) 3);
    2. SkullMeta meta3 = (SkullMeta) skull.getItemMeta();
    3. meta3.setOwner("garrett2smart87");
    4. skull.setItemMeta(meta3);
    5. player.getInventory().setHelmet(skull);
     
    KeybordPiano459 likes this.
  4. Offline

    C0nsole

  5. Offline

    KeybordPiano459

    There we go :D
    Thanks chasechocolate, I didn't realize that :p

    EDIT: Updated the OP
     
  6. Offline

    C0nsole

  7. Offline

    KeybordPiano459

    That wasn't added in 1.4.6 either, however if you wanted to do this, it's a pretty simple snippet.
    Code:java
    1. LivingEntity entity = event.getEntity();
    2. entity.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 1, 100));

    You might want to check this against the javadocs, and sorry if it doesn't work, this is off the top of my head
     
    C0nsole likes this.
  8. Offline

    Hoolean

    KeybordPiano459

    Do you know what mobs are supported for the setEquipment method? :)
     
  9. Offline

    mjkaufer

    Quick question. How would one create a firework effect in a particular spot?
     
  10. Offline

    KeybordPiano459

    Skeletons, all types of zombies (including babies) and zombie pigmen might be.
     
  11. How do I set the skull as a zombie head?
     
  12. Offline

    Leonardosc

  13. Offline

    MiniDigger

    That bump
     
Thread Status:
Not open for further replies.

Share This Page