YSM Molang reference: Controller (ctrl.)
Every Molang function and variable you can use in Yes Steve Model animations and controllers, with what it returns and the YSM version that added it. New to Molang? Start with Molang in YSM.
- All 280
- Math functions 33
- Query (q.) 60
- YSM player & entity 105
- YSM projectiles 9
- Controller (ctrl.) 25
- Script controller 5
- TaCZ guns 9
- Immersive Melodies 5
- Touhou Little Maid 16
- Curios accessories 4
- Other mods 9
| Molang | What it does | Since |
|---|---|---|
| ctrl.death | true when dead | 2.3.0 |
| ctrl.riptide | true when triggering Riptide with a trident | 2.3.0 |
| ctrl.sleep | true when sleeping | 2.3.0 |
| ctrl.swim | true when swimming | 2.3.0 |
| ctrl.climb | true when crawling and moving | 2.3.0 |
| ctrl.climbing | true when crawling and stationary | 2.3.0 |
| ctrl.ladder_up | true when climbing up a ladder | 2.3.0 |
| ctrl.ladder_stillness | true when stationary on a ladder | 2.3.0 |
| ctrl.ladder_down | true when climbing down a ladder | 2.3.0 |
| ctrl.fly | true when flying | 2.3.0 |
| ctrl.elytra_fly | true when flying with Elytra | 2.3.0 |
| ctrl.swim_stand | true when treading water (swimming upright) | 2.3.0 |
| ctrl.attacked | true when attacked | 2.3.0 |
| ctrl.jump | true when jumping | 2.3.0 |
| ctrl.sneak | true when sneaking and moving | 2.3.0 |
| ctrl.sneaking | true when sneaking and stationary | 2.3.0 |
| ctrl.run | true when sprinting | 2.3.0 |
| ctrl.walk | true when walking | 2.3.0 |
| ctrl.idle | true when idle | 2.3.1 |
| ctrl.hold(slotType, id) | Usage: ctrl.hold('mainhand', '$minecraft:apple')slotType parameters: mainhand offhand The second parameter is similar to the legacy animation naming: $ for item ID, # for item tag, : for special category | 2.3.0 |
| ctrl.swing(slotType, id) | Usage: ctrl.swing('offhand', '#minecraft:axes')slotType parameters: mainhand offhandThe second parameter is similar to the legacy animation naming: $ for item ID, # for item tag, : for special category | 2.3.0 |
| ctrl.use(slotType, id) | Usage: ctrl.use('offhand', ':eat')slotType parameters: mainhand offhandThe second parameter is similar to the legacy animation naming: $ for item ID, # for item tag, : for special category | 2.3.0 |
| ctrl.armor(slotType, id) | Usage: ctrl.armor('head', '$minecraft:iron_helmet') First parameter options: feet, legs, chest, headslotType parameters: chest feet head legsThe second parameter is similar to the legacy animation naming: $ for item ID, # for item tag, : for special category | 2.3.0 |
| ctrl.ride(type, id) | Usage: ctrl.ride('vehicle', '$minecraft:pig') ctrl.ride('passenger', '$minecraft:pig')type parameters: vehicle passengerThe second parameter is similar to the legacy animation naming: $ for entity ID, # for entity tag, : for special category | 2.3.0 |
| ctrl.playing_extra_animation | Whether the player is playing a wheel animationReturns boolean | 2.5.0 |