mojira.dev
MC-275135

Ominous Item Spawner doesn't work with /item or /loot replace

Ominous Item Spawners store their item nbt under "item" likely causing /item and /loot replace to be unable to affect them in any slot, the "contents" slot included, as other entities store their item nbt under "Item" capitalized (item, item_frame, etc)

Steps to Reproduce:
1. /summon ominous_item_spawner ~ ~ ~ {spawn_item_after_ticks:50,item:{id:"stone",count:1}}
2a. /item replace entity @n[type=ominous_item_spawner] contents with dirt
2b. /loot replace entity @n[type=ominous_item_spawner] contents loot blocks/dirt
2c. /execute if items entity @n[type=ominous_item_spawner] contents stone

Observed Results:
The ominous_item_spawner and the item it drops remain stone; the commands in step 2 fail
2a. "No targets accepted item [item] into slot 0"
2b. "Dropped 0 items"
2c. "Test failed"

Expected Results:
2a-b. The ominous_item_spawner and the item it drops change to dirt (or whatever is set)
2c. "Test passed"

While "contents" is the expected slot for this entity's nbt, the same result occurs with every other slot specifiable
This is overall behavior likely due to the fact that ominous item spawners store their item under "item" instead of "Item" with a capital 'I' like other entities do

[media]

[media]

Attachments

Comments 3

We do not have enough information to reproduce this issue.

Please include the following information to help us understand your problem:

Steps to Reproduce:
1. (Explain what needs to be done for the issue to happen)
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

Please also attach any needed commands, datapacks, resourcepacks, screenshots, videos, or worlds needed to help reproduce this issue.

Refer to the Bug Tracker Guidelines for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as Incomplete.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

I ran into this issue on 1.21.5, spent a while trying to figure out what was wrong with my command stack before narrowing it down to this issue

[media]

RoarkCats

(Unassigned)

1280530

Confirmed

Expansion B

Normal

Commands

1.21.1

Retrieved