mojira.dev
MCPE-239920

Hasitem filter unable to target Sulfur Cubes

Steps to reproduce:

  1. Spawn a Sulfur Cube with a spawn egg of by running the below command:

/summon sulfur_cube
  1. Place an item or block inside it (such as tnt):

/replaceitem entity @e[type=sulfur_cube,c=1] slot.weapon.mainhand 0 tnt
  1. Try to target it with hasitem filter:

/execute as @e[type=sulfur_cube,hasitem={item=tnt}] run say hi

Expected Result: A “hi” message in chat.

What actually happens: “No targets matched selector.” message in chat.

Linked issues

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media]

Zhea Evyline

(Unassigned)

Unconfirmed

Multiple

26.30

Retrieved