mojira.dev
MCPE-67893

Molang's query.get_equipped_item_name could not get the Sea Lantern

When I was writing addons using entity events, I found that Molang's query.get_equipped_item_name could not get the Sea Lantern

Tried query.get_equipped_item_name ('main_hand') == 'sealantern' or 'sea_lantern', 'seaLantern' are invalid

Attachments

Comments 10

Hey, it ’s been 5 days, when will it be resolved?

Confirmed, the erroneous capitalization of the vanilla item name in bedrock breaks molang

Hi! Could you please attach the add-ons you're using to the ticket?

This affects 1.16.4, the attached screenshots show the relevant animation controller(the file is definitely not the issue, it works just fine when the commented out query is used & there's another controller in the file that works perfectly), and a screenshot of holding a sea lantern with no effect

[media][media]

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Can't reproduce anymore

Really? This still seems to be an issue for me. What name works for you?

seaLantern with capital L. Although granted, I was testing with the stop_expression argument in /playanimation, and I wouldn't be surprised if bedrock had different molang parsing settings for files

Resolving as Awaiting Response again. Could you please attach the add-ons you're using to this ticket?

I just attached it to the issue. It has an animation controller that should say whether you're holding a lantern/sea lantern or not(lantern to validate that the controller works).

Yangzii

(Unassigned)

461582

Confirmed

Windows

Win10 v1903

1.16.0.55 Beta, 1.16.201 Hotfix

1.17.40.21 Beta, 1.17.40

Retrieved