Jump to content

aridale

Members
  • Posts

    6
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

aridale's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I wanna add that effect to my own entity but I cant seem to find exactly what causes it. Theres nothing I can tell in the actual entity that does it. O_o
  2. thats prolly exactly what it was. None of the other results talkin about it included that. Thanks for helpin me figure it out hopefully this can help anyone else that runs into the same issue!
  3. yeah Ive seen that before. The problem is HOW do I use that? Ive tried it a few times now and it just doesnt do anything like the function is never called. So how do I make it actually work? EDIT: Ok wtf? I just added it to my item exact copy/paste from your reply and it works fine. I coulda solved this a week ago but I swear the exact same function didnt work then when I was searching!
  4. Well then I guess the only other thing to ask is am I doin it right? Cause it doesnt appear to be working. public void onItemPickup(EntityPlayer entityplayer, ItemStack itemstack) { if(itemstack.itemID == this.itemID) { NBTTagCompound tag = itemstack.getTagCompound(); if (tag == null) { tag = new NBTTagCompound(); itemstack.setTagCompound(tag); } tag.setString("Lore", "This is a test!"); } } when I give mself the item from the creative inventory it has no extra text under the name. Still doesnt if I drop it and pick it back up
  5. Its not gonna be crafted tho. Its for an adventure map so mobs are gonna drop em or buy em from villagers
  6. Ive seen lots of posts about NBT and editing during runtime and things like that but I cant find a simple answer to how to add tags when the item is created. I want the item to have certain tags like "lore" tags like youd add with MCEdit or Ingame NBTEdit but I want to set them in the items code. Surely its got to be possible but nothing Ive found works
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.