Mojira Archive
MCM-973

query.can_climb returns false if the entity has a minecraft:navigation component

Partner Rank:

2

Partner Team Reporting:

Everbloom Studios

Verification builds:

1.15.0.54

Summary:

The MoLang query.can_climb now returns 0 if the entity has a minecraft:navigation.* component, even if it has the minecraft:can_climb component.

Impact:

This behavior is unintuitive. Some of our content relies on dummy query-able components for behavior-to-molang communication, and can_climb is often one of them.

Repro Steps:

  1. Create and join the provided world.
  2. Repeatedly punch the creeper to toggle its can_climb component.

Observed Results:

Punching the creeper appears to do nothing, despite the can_climb component being toggled.

In chat you only see "default" and "query.can_climb == 0" when joining

 

Compare this with /mobinfo or /aigoals (whichever one shows the list of active components in your version). Each time you punch it, component groups "normal" and "climb" change places.

Expected Results:

The creeper's "armor" should be toggling every time you punch it, indicating when can_climb is enabled. In chat you should also see:

query.can_climb == 0 when can_climb is removed, and

query.can_climb == 1 when can_climb is added, and

 

Screenshots/Videos attached: Yes/No

No

Regression Builds:

1.15.0.51

Fixed

Energyxxer

2020-02-29, 09:50 PM

2020-08-28, 12:06 AM

2020-08-28, 12:06 AM

1

0

Future Release

-