1

I have looked around google and have not found an answer to this question, mostly because I do not know what to search or what to call my "problem." I am making an adventure map and I am very advanced with command blocks. I have an item spawning that will

  1. Never despawn, and
  2. Never be picked up.

The item is a bow. What I want to do is have the entity display the text "Bow" when the player looks near the entity (like a name tag does!) . I know this is possible, but I haven't figured out how to do it yet. Here is my current command:

/summon Item ~ ~2 ~ {Item:{id:minecraft:bow,Count:1},Age:-32768,PickupDelay:32767} 

If there is already a question answering this, my sincere apologies, I have not found one.

2
  • Upvote for I am very advanced with command blocks
    – user143228
    May 29, 2016 at 17:31
  • 1
    :) @RudolfL.Jelínek
    – David
    May 30, 2016 at 5:57

1 Answer 1

3

Using the CustomName tag this can be achieved.

/summon Item ~ ~2 ~ {Item:{id:minecraft:bow,Count:1},CustomName:"Bow",CustomNameVisible:1,Age:-32768,PickupDelay:32767}

This is very simple, only thing is the text is there permanently, not only when you look at it.

1
  • If you set "CustomNameVisible to 0, you should only be able to see it when looking directly at the item"
    – Vovalium
    Jun 5, 2016 at 12:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .