Mojira Archive
MCM-1455

Molang - Hardcoded variables to data-driven

Partner Rank: 4
Partner Team Reporting: Blockception
Verification builds: 1.17.40

Summary:

I already know that the molang team is planning to fix this, but this is here so just a ticket is made and can be used to track progress

The following molang variables are hardcoded but preferably are defined in the script component of an entity/item using proper molang code.

The following molang variables are not defined, weirdly defined but should be proper defined:

  • [ ] variable.armor_stand.hurt_time
  • [ ] variable.attack_animation_tick
  • [ ] variable.bob_animation
  • [ ] variable.damage_nearby_mobs
  • [ ] variable.DecorTextureIndex
  • [ ] variable.glow_alpha
  • [ ] variable.goat_has_left_horn
  • [ ] variable.goat_has_right_horn
  • [ ] variable.has_target
  • [ ] variable.is_brandishing_spear
  • [ ] variable.is_first_person
  • [ ] variable.is_holding_spyglass
  • [ ] variable.is_paperdoll
  • [ ] variable.is_using_vr
  • [ ] variable.ischarging
  • [ ] variable.map_face_icon
  • [ ] variable.offer_flower_tick
  • [ ] variable.swim_amount
  • [ ] variable.swinganimationtick
  • [ ] variable.use_item_interval_progress
  • [ ] variable.use_item_startup_progress
  • [ ] variable.isFlashing
  • [ ] variable.TropicalFish.Base
  • [ ] variable.TropicalFish.Pattern

Impact:

  • Good examples for the community to use.
  • Correct working vanilla data-driven files.

Repro Steps:

Observed Results:

Expected Results:

Correct, consistent vanilla files that not only follows minecraft readable format but also by written convention/documentation.

Screenshots/Videos attached: No

Regression Builds: N/A

Notes:

Files:

  • resourcepack/entities/agent.entity.json
  • resourcepack/entities/armor_stand.v1.0.entity.json
  • resourcepack/entities/boat.entity.json
  • resourcepack/entities/drowned.entity.json
  • resourcepack/entities/drowned.v1.0.entity.json
  • resourcepack/entities/ghast.entity.json
  • resourcepack/entities/glow_squid.entity.json
  • resourcepack/entities/goat.entity.json
  • resourcepack/entities/hoglin.entity.json
  • resourcepack/entities/husk.entity.json
  • resourcepack/entities/husk.v1.0.entityy.json
  • resourcepack/entities/iron_golem.entity.json
  • resourcepack/entities/llama.entity.json
  • resourcepack/entities/llama.v1.0.entity.json
  • resourcepack/entities/piglin_brute.entity.json
  • resourcepack/entities/piglin.entity.json
  • resourcepack/entities/player.entity.json
  • resourcepack/entities/skeleton.entity.json
  • resourcepack/entities/skeleton.v1.0.entity.json
  • resourcepack/entities/stray.entity.json
  • resourcepack/entities/stray.v1.0.entity.json
  • resourcepack/entities/tripod_camera.entity.json
  • resourcepack/entities/tropicalfish.entity.json
  • resourcepack/entities/vex.entity.json
  • resourcepack/entities/vex.v1.0.entity.json
  • resourcepack/entities/vex.v1.0.json
  • resourcepack/entities/vindicator.entity.json
  • resourcepack/entities/wither_skeleton.entity.json
  • resourcepack/entities/wither_skeleton.v1.0.entity.json
  • resourcepack/entities/zombie_pigman.entity.json
  • resourcepack/entities/zombie_pigman.v1.0.entity.json
  • resourcepack/entities/zombie_villager_v2.entity.json
  • resourcepack/entities/zombie_villager.entity.json
  • resourcepack/entities/zombie_villager.v1.0.entity.json
  • resourcepack/entities/zombie.entity.json
  • resourcepack/entities/zombie.v1.0.entity.json

Unresolved

Daan Verstraten

2021-11-01, 12:58 PM

2021-11-02, 07:41 PM

2

1

Future Release

-