Commands let players perform actions and customize gameplay using text-based instructions. Use this topic to share feedback and ideas for improving commands and related tools.

9

/tp @e[type=item, name="coal", c=1] ~ ~ ~ should teleport ONE coal

2 Comments

Post a new comment:

Please sign in to leave a comment.

Sorted by oldest
  • 2
    Registered User commented
    Comment actions Permalink

    I disagree. The rules of target selectors are simple: a count of 1 means to teleport one entity. A stack of coal counts as a single entity, because items like to group up into single stacks, and then single entities. If you want to "move" one item in the stack at a time, you can summon a single coal at the target and use /data modify with scoreboards to remove one count from the item.

  • 0
    Registered User commented
    Comment actions Permalink

    I disagree because "@e" means all entities. that means all of the coal in your world gets teleported.