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
Created Issue:
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
Bedrock calls it sealantern (no space) for some reason
Sea Lanterns not recognized as a component in recipes.
Steps to Reproduce:
Drop the attached recipe into any addon's recipe folder.
Try to craft the recipe in-game.
What happens:
The recipe doesn't require Sea Lanterns to create the resulting output, and in fact will not properly create the recipe if you do include the Sea Lanterns.
What I expect to happen:
The recipe is created when the proper components are placed.
Additional Information:
The Sea Lantern recently had an issue where it wasn't detected in molang queries (MCPE-67893). I took the same approach when trying it as a recipe component, using it with and without the 'minecraft' namespace, and with and without camel-case lettering, etc. Minecraft detects that minecraft:sealantern and its variations are valid items, and doesn't throw any errors when loading the recipe. If you add an underscore (as was one of the attempts in the aforementioned report) it errors and will not do the recipe at all.
So I know the name is correct; it simply doesn't properly recognize it when used in a recipe.


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

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).