Sign in
Skip to main content

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.

3

Item command argument.

1 Comments

Post a new comment:

Please sign in to leave a comment.

Sorted by oldest
  • 1
    Registered User commented
    Comment actions Permalink

    /execute as @e[nbt={Inventory:[{id:"minecraft:grass_block"}]}] run say hi

     

    All entities with grass block will say "hi"