Molang

YSM Molang reference: YSM projectiles

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.

MolangWhat it doesSince
ysm.on_ground_timeDuration the arrow has been on the ground (in ticks)In-game arrows despawn 1200 ticks (60 seconds) after landing. Resets to 0 if the arrow moves during this time1.2.0
ysm.in_groundCheck if the arrow is in the ground1.2.0
ysm.projectile_ownerReturns the player entity that shot the arrowCan use the -> operator to query its properties ==Currently has a memory leak issue; not recommended==1.2.0
ysm.delta_movement_lengthGets the displacement length of the arrow between two ticks, used to determine speed1.2.0
ysm.is_spectral_arrowChecks if the arrow is a spectral arrow1.2.0
ysm.shoot_item_idItem ID of the weapon that shot this arrowCan be used to distinguish arrows shot from regular bows and crossbows2.3.0
ysm.throwable_itemItem ID of the item-based projectile2.5.0
ysm.hooked_inID of the entity hooked by the fishing bobberEmpty string if none2.5.0
ysm.is_bitingWhether a fish is biting the hookBoolean2.5.0