<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.cobblemon.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=JPAKx4</id>
	<title>Cobblemon Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cobblemon.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=JPAKx4"/>
	<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php/Special:Contributions/JPAKx4"/>
	<updated>2026-06-01T22:20:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.10</generator>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Entity_Functions&amp;diff=6331</id>
		<title>Molang Entity Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Entity_Functions&amp;diff=6331"/>
		<updated>2025-09-26T02:22:10Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;LivingEntity&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage!!Must be called on&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;uuid(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the UUID of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.uuid()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;damage(amount: Double)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Deals damage equal to &amp;lt;code&amp;gt;amount&amp;lt;/code&amp;gt;. Damage type is generic.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.damage(5)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;walk_to(x: Double, y: Double, z: Double, speedMultiplier: Double?)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|If the entity is a &amp;lt;code&amp;gt;PathfinderMob&amp;lt;/code&amp;gt; then the mob will change its target to the &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;speedMultiplier&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;0.35&amp;lt;/code&amp;gt; by default.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.walk_to(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;has_walk_target(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is a &amp;lt;code&amp;gt;PathfinderMob&amp;lt;/code&amp;gt; and has a walk target or is currently pathfinding. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.has_walk_target()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_sneaking(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is sneaking. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_sneaking()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_sprinting(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is sprinting. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_sprinting()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_flying(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is flying. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_flying()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_in_water(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is in water. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_in_water()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_touching_water_or_rain(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is touching water or rain. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_touching_water_or_rain()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_touching_water(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is touching water. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_touching_water()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_underwater(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is underwater. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_under_water()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_in_lava(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is in lava. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_in_lava()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_on_fire(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is on fire. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_on_fire()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_invisible(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is invisible. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_invisible()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_sleeping(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is sleeping. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_sleeping()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_riding(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is riding. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_riding()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;health(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the current health of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.health()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;distance_to_pos(x: Double, y: Double, z: Double): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the distance from the entity to the position at &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;. Pythagoras baby!&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.distance_to_pos(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;max_health(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the max health of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.max_health()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;name(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the name of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.name()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;type(): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the type of the entity as a string if it is registered. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.type()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;yaw(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the yaw of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.yaw()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;pitch(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the pitch of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.pitch()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;x(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the x position of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.x()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;y(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the y position of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.y()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;z(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the z position of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.z()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;velocity_x(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the x velocity of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.velocity_x()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;velocity_y(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the y velocity of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.velocity_y()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;velocity_z(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the z velocity of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.velocity_z()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;width(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the width of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.width()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;height(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the height of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.height()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;entity_size(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the larger dimension between the xsize and the ysize of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.entity_size()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;entity_width(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the width of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.entity_width()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;entity_height(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the height of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.entity_height()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;id_modulo(modValue: Double): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the value of the entities&#039; UUID mod &amp;lt;code&amp;gt;modValue&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.id_modulo(32)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;horizontal_velocity(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the horizontal velocity of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.horizontal_velocity()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;vertical_velocity(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the vertical velocity of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.vertical_velocity()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;world(): ObjectValue&amp;lt;Holder&amp;lt;Level&amp;gt;&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the world that the entity is in as a &amp;lt;code&amp;gt;ObjectValue&amp;lt;Holder&amp;lt;Level&amp;gt;&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.world()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;biome(): ObjectValue&amp;lt;Holder&amp;lt;Biome&amp;gt;&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the biome that the entity is in as a &amp;lt;code&amp;gt;ObjectValue&amp;lt;Holder&amp;lt;Biome&amp;gt;&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.biome()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_passenger(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is invisible. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_passenger()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_healer_in_use(position: ArrayStruct&amp;lt;Int&amp;gt;): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns if the healing machine at &amp;lt;code&amp;gt;position&amp;lt;/code&amp;gt; is in use. Uses the entities&#039; level. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_healer_in_use(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;find_nearby_block(identifier: String, range: Double?): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Looks for a block within a cube with size &amp;lt;code&amp;gt;range&amp;lt;/code&amp;gt; centered around the entity, with a default  of &amp;lt;code&amp;gt;10&amp;lt;code&amp;gt;. Identifier namespace is &amp;lt;code&amp;gt;minecraft&amp;lt;/code&amp;gt; by default. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if block cannot be found or an &amp;lt;code&amp;gt;ArrayStruct&amp;lt;Int&amp;gt;&amp;lt;/code&amp;gt; for the position of the block.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.find_nearby_block(&#039;cobblemon:restoration_tank&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_nearby_entities(distance: Double): ArrayStruct&amp;lt;MoValue&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Get entities within a cube with size &amp;lt;code&amp;gt;distance&amp;lt;/code&amp;gt; centered around the entity. Returns an &amp;lt;code&amp;gt;ArrayStruct&amp;lt;/code&amp;gt; with the most specific type, such as &amp;lt;code&amp;gt;ObjectValue&amp;lt;Player&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ObjectValue&amp;lt;NPCEntity&amp;gt;&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;ObjectValue&amp;lt;LivingEntity&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.get_nearby_entities(10)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_standing_on_blocks(depth: Int, blocks, ResourceLocation...): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|If the entity is standing on any of the supplied &amp;lt;code&amp;gt;blocks&amp;lt;/code&amp;gt; then the funtion returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;, othewise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_standing_on_blocks(2, &#039;dirt&#039;, &#039;cobblemon:apricorn_log&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;play_animation(animation: String, target: String?): DoubleValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Plays an animation on an entity by the name &amp;lt;code&amp;gt;animation&amp;lt;/code&amp;gt;. If &amp;lt;code&amp;gt;target&amp;lt;/code&amp;gt; is not specified or null then all nearby entities will get the animation packet. If &amp;lt;code&amp;gt;target&amp;lt;/code&amp;gt; is either a player name or UUID then the packet will be sent to them only. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if packet(s) are sent, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.play_animation(&#039;sleep&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|PoseableEntities&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;spawn_bedrock_particles(effect: String, locator: String, player: MoValue?)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Sends bedrock particles of the resource &amp;lt;code&amp;gt;effect&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;locator&amp;lt;/code&amp;gt; to players around the entity, or to &amp;lt;code&amp;gt;player&amp;lt;/code&amp;gt; only. &amp;lt;code&amp;gt;player&amp;lt;/code&amp;gt; can either be a UUID or a &amp;lt;code&amp;gt;ObjectValue&amp;lt;Player&amp;gt;&amp;lt;/code&amp;gt;. Locator is required, even if unused on non-poseable entities.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.entity.spawn_bedrock_particles(&#039;cobblemon:cherry_leaves_particle&#039;, &#039;middle&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang&amp;diff=5786</id>
		<title>Molang</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang&amp;diff=5786"/>
		<updated>2025-04-20T00:39:11Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Cobblemon uses a [https://github.com/Hiroku/MoLang/ modified] version of [https://github.com/bedrockk/MoLang Bedrockk MoLang] to parse and execute MoLang. Updated as of 1.6.1.&lt;br /&gt;
&lt;br /&gt;
==Types==&lt;br /&gt;
&lt;br /&gt;
* [[Molang Types|Types]]&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
&lt;br /&gt;
* [[Molang General Functions|General (Standard) Functions]]&lt;br /&gt;
* [[Molang Registry Functions|Registry Functions (World, Block, Dimension, Biome)]]&lt;br /&gt;
* [[Molang Player Functions|Player Functions]]&lt;br /&gt;
* [[Molang Entity Functions|Entity Functions]]&lt;br /&gt;
* [[Molang NPC Functions|NPC Functions]]&lt;br /&gt;
* [[Molang Battle Functions|Battle Functions]]&lt;br /&gt;
* [[Molang BattleActor Functions|BattleActor Functions]]&lt;br /&gt;
* [[Molang Pokémon Functions|Pokémon Functions]]&lt;br /&gt;
* [[Molang PokémonEntity Functions|PokémonEntity Functions]]&lt;br /&gt;
* [[Molang PokémonStore Functions|PokémonStore Functions]]&lt;br /&gt;
* [[Molang Party Functions|Party Functions]]&lt;br /&gt;
* [[Molang PC Functions|PC Functions]]&lt;br /&gt;
* [[Molang SpawningContext Functions|SpawningContext Functions]]&lt;br /&gt;
* [[Molang Server Functions|Server Functions]]&lt;br /&gt;
* [[Molang Pokédex Functions|Pokédex Functions]]&lt;br /&gt;
* [[Molang Species Functions|Species Functions]]&lt;br /&gt;
&lt;br /&gt;
==== Client Only ====&lt;br /&gt;
&lt;br /&gt;
* [[Molang Client General Functions|General Functions]]&lt;br /&gt;
* [[Molang Animation Functions|Animation Functions]]&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang&amp;diff=5785</id>
		<title>Molang</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang&amp;diff=5785"/>
		<updated>2025-04-19T23:14:48Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Added main MoLang documentation page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Cobblemon uses [https://github.com/bedrockk/MoLang Bedrockk MoLang] to parse and execute MoLang. Updated as of 1.6.1.&lt;br /&gt;
&lt;br /&gt;
==Types==&lt;br /&gt;
&lt;br /&gt;
* [[Molang Types|Types]]&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
&lt;br /&gt;
* [[Molang General Functions|General (Standard) Functions]]&lt;br /&gt;
* [[Molang Registry Functions|Registry Functions (World, Block, Dimension, Biome)]]&lt;br /&gt;
* [[Molang Player Functions|Player Functions]]&lt;br /&gt;
* [[Molang Entity Functions|Entity Functions]]&lt;br /&gt;
* [[Molang NPC Functions|NPC Functions]]&lt;br /&gt;
* [[Molang Battle Functions|Battle Functions]]&lt;br /&gt;
* [[Molang BattleActor Functions|BattleActor Functions]]&lt;br /&gt;
* [[Molang Pokémon Functions|Pokémon Functions]]&lt;br /&gt;
* [[Molang PokémonEntity Functions|PokémonEntity Functions]]&lt;br /&gt;
* [[Molang PokémonStore Functions|PokémonStore Functions]]&lt;br /&gt;
* [[Molang Party Functions|Party Functions]]&lt;br /&gt;
* [[Molang PC Functions|PC Functions]]&lt;br /&gt;
* [[Molang SpawningContext Functions|SpawningContext Functions]]&lt;br /&gt;
* [[Molang Server Functions|Server Functions]]&lt;br /&gt;
* [[Molang Pokédex Functions|Pokédex Functions]]&lt;br /&gt;
* [[Molang Species Functions|Species Functions]]&lt;br /&gt;
&lt;br /&gt;
==== Client Only ====&lt;br /&gt;
&lt;br /&gt;
* [[Molang Client General Functions|General Functions]]&lt;br /&gt;
* [[Molang Animation Functions|Animation Functions]]&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Animation_Functions&amp;diff=5784</id>
		<title>Molang Animation Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Animation_Functions&amp;diff=5784"/>
		<updated>2025-04-19T23:13:47Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Fixed formatting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Type is &amp;lt;code&amp;gt;QueryStruct&amp;lt;PoseableModel&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;exclude_labels(): ObjectValue&amp;lt;ExcludedLabels&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;ExcludedLabels&amp;gt;&amp;lt;/code&amp;gt; from a &amp;lt;code&amp;gt;PoseableModel&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.exclude_labels()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bedrock_primary(group: String, animation: String, options: MoValue...): ObjectValue&amp;lt;PrimaryAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;PrimaryAnimation&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;group&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;animation&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;options&amp;lt;/code&amp;gt; can either be &amp;lt;code&amp;gt;ExcludedLabels&amp;lt;/code&amp;gt;, a &amp;lt;code&amp;gt;WaveFunction&amp;lt;/code&amp;gt; (only the last one is used), or a String that represents a label to exclude. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;PrimaryAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;PrimaryAnimation&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;I don&#039;t know what is an example&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bedrock_stateful(group: String, animation: String, enduresPrimary: IDK WHAT THIS IS): ObjectValue&amp;lt;BedrockActiveAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;BedrockActiveAnimation&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;group&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;animation&amp;lt;/code&amp;gt;. IDK WHAT EDURESPRIMARY IS. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;BedrockActiveAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;BedrockActiveAnimation&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;I don&#039;t know what is an example&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bedrock(group: String, animation: String): ObjectValue&amp;lt;BedrockPoseAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;BedrockPoseAnimation&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;group&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;animation&amp;lt;/code&amp;gt;. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;BedrockActiveAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;BedrockActiveAnimation&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;&lt;br /&gt;
I don&#039;t know what is an example&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;look(boneName: String, pitchMultiplier: Double?, yawMulitplier: Double?, maxPitch: Double?, minPitch: Double?, maxYaw, Double?, minYaw: Double?): ObjectValue&amp;lt;SingleBoneLookAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;SingleBoneLookAnimation&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;boneName&amp;lt;/code&amp;gt; and other options. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;SingleBoneLookAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;SingleBoneLookAnimation&amp;lt;/code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;1.0, 1.0, 70.0, -45.0, 45.0, -45.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.look(&#039;head&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;quadruped_walk(periodMultiplier: Double?, amplitudeMultiplier: Double? leftFrontLeftName: String?, leftFrontRightName: String?, leftBackLeftName: String?. leftBackRightName: String?): ObjectValue&amp;lt;QuadrupedWalkAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;QuadrupedWalkAnimation&amp;lt;/code&amp;gt; using the options. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;QuadrupedWalkAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;QuadrupedWalkAnimation&amp;lt;/code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;0.6662, 1.4, &#039;leg_front_left&#039;, leg_front_right&#039;, &#039;leg_back_left&#039;, &#039;leg_back_right&#039;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.quadruped_walk()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;biped_walk(periodMultiplier: Double?, amplitudeMultiplier: Double? leftLegName?: String, rightLegName: String?): ObjectValue&amp;lt;BipedWalkAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;BipedWalkAnimation&amp;lt;/code&amp;gt; using the options. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;BipedWalkAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;BipedWalkAnimation&amp;lt;/code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;0.6662, 1.4, &#039;leg_left&#039;, &#039;leg_right&#039;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.biped_walk()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bimanual_swing(periodMultiplier: Double?, amplitudeMultiplier: Double? leftArmName: String?, rightArmName String?): ObjectValue&amp;lt;BimanualSwingAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;BimanualSwingAnimation&amp;lt;/code&amp;gt; using the options. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;BimanualSwingAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;BimanualSwingAnimation&amp;lt;/code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;0.6662, 1.0, &#039;arm_left&#039;, &#039;arm_right&#039;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.bimanual_swing()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;sine_wing_flap(amplitude: Double?, period: Double?, verticalShift: Double?, axis: String?, wingLeft: String?, wingRight: String?): ObjectValue&amp;lt;WingFlapIdleAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;WingFlapIdleAnimation&amp;lt;/code&amp;gt; using the options. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;WingFlapIdleAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;WingFlapIdleAnimation&amp;lt;/code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;0.9, 0.9, 0.0, &#039;y&#039;, &#039;wing_left&#039;, &#039;wing_right&#039;&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;axis&amp;lt;/code&amp;gt; can either be &#039;x&#039;, &#039;y&#039;, or &#039;z&#039;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.sine_wing_flap()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bedrock_quirk(animationGroup: String, animationNames: MoValue, minSeconds: Double?, maxSeconds: Double?, loopTimes: Int?): ObjectValue&amp;lt;SimpleQuirk&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;SimpleQuirk&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;animationGroup&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;animationNames&amp;lt;/code&amp;gt; and the other options. &amp;lt;code&amp;gt;animationNames&amp;lt;/code&amp;gt; can either be an &amp;lt;code&amp;gt;ArrayStruct&amp;lt;String&amp;gt;&amp;lt;/code&amp;gt; or a single String. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;SimpleQuirk&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;SimpleQuirk&amp;lt;/code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;8.0, 30.0, 1&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;I don&#039;t know what is an example&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;primary_animation(activeAnimation: ObjectValue&amp;lt;ActiveAnimation&amp;gt;, options: MoValue...): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;PrimaryAnimation&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;activeAnimation&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;options&amp;lt;/code&amp;gt; can either be &amp;lt;code&amp;gt;ExcludedLabels&amp;lt;/code&amp;gt;, a &amp;lt;code&amp;gt;WaveFunction&amp;lt;/code&amp;gt; (only the last one is used), or a String that represents a label to exclude. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;PrimaryAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;PrimaryAnimation&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;I don&#039;t know what is an example&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;punch(headName: String?, bodyName: String?, leftArmName: String?, rightArmName: String?, swingRight? Boolean): ObjectValue&amp;lt;PunchAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;PunchAnimation&amp;lt;/code&amp;gt; using the options. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;PunchAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;PunchAnimation&amp;lt;/code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;&#039;head&#039;, &#039;body&#039;, &#039;arm_left&#039;, &#039;arm_right&#039;, true&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.punch()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bedrock_primary_quirk(animationGroup: String, animationNames: MoValue, minSeconds: Double?, maxSeconds: Double?, loopTimes: Int?, options: MoValue...): ObjectValue&amp;lt;SimpleQuirk&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;SimpleQuirk&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;animationGroup&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;animationNames&amp;lt;/code&amp;gt; and the other options. &amp;lt;code&amp;gt;animationNames&amp;lt;/code&amp;gt; can either be an &amp;lt;code&amp;gt;ArrayStruct&amp;lt;String&amp;gt;&amp;lt;/code&amp;gt; or a single String. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;SimpleQuirk&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;SimpleQuirk&amp;lt;/code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;8.0, 30.0, 1&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;options&amp;lt;/code&amp;gt; can either be a &amp;lt;code&amp;gt;WaveFunction&amp;lt;/code&amp;gt; (only the last one is used) or a String that represents a label to exclude.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;I don&#039;t know what is an example&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Animation_Functions&amp;diff=5783</id>
		<title>Molang Animation Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Animation_Functions&amp;diff=5783"/>
		<updated>2025-04-19T23:08:02Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Fixed formatting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Type is &amp;lt;code&amp;gt;QueryStruct&amp;lt;PoseableModel&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;exclude_labels(): ObjectValue&amp;lt;ExcludedLabels&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;ExcludedLabels&amp;gt;&amp;lt;/code&amp;gt; from a &amp;lt;code&amp;gt;PoseableModel&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.exclude_labels()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bedrock_primary(group: String, animation: String, options: MoValue...): ObjectValue&amp;lt;PrimaryAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;PrimaryAnimation&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;group&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;animation&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;options&amp;lt;/code&amp;gt; can either be &amp;lt;code&amp;gt;ExcludedLabels&amp;lt;/code&amp;gt;, a &amp;lt;code&amp;gt;WaveFunction&amp;lt;/code&amp;gt; (only the last one is used), or a String that represents a label to exclude. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;PrimaryAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;PrimaryAnimation&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;I don&#039;t know what is an example&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bedrock_stateful(group: String, animation: String, enduresPrimary: IDK WHAT THIS IS): ObjectValue&amp;lt;BedrockActiveAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;BedrockActiveAnimation&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;group&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;animation&amp;lt;/code&amp;gt;. IDK WHAT EDURESPRIMARY IS. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;BedrockActiveAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;BedrockActiveAnimation&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;I don&#039;t know what is an example&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bedrock(group: String, animation: String): ObjectValue&amp;lt;BedrockPoseAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;nowiki&amp;gt;&amp;lt;code&amp;gt;BedrockPoseAnimation&amp;lt;/code&amp;gt;&amp;lt;/nowiki&amp;gt; using the &amp;lt;nowiki&amp;gt;&amp;lt;code&amp;gt;group&amp;lt;/code&amp;gt;&amp;lt;/nowiki&amp;gt; and &amp;lt;nowiki&amp;gt;&amp;lt;code&amp;gt;animation&amp;lt;/code&amp;gt;&amp;lt;/nowiki&amp;gt;. Returns an &amp;lt;nowiki&amp;gt;&amp;lt;code&amp;gt;ObjectValue&amp;lt;BedrockActiveAnimation&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/nowiki&amp;gt; of the newly created &amp;lt;nowiki&amp;gt;&amp;lt;code&amp;gt;BedrockActiveAnimation&amp;lt;/code&amp;gt;&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;&lt;br /&gt;
I don&#039;t know what is an example&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;look(boneName: String, pitchMultiplier: Double?, yawMulitplier: Double?, maxPitch: Double?, minPitch: Double?, maxYaw, Double?, minYaw: Double?): ObjectValue&amp;lt;SingleBoneLookAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;SingleBoneLookAnimation&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;boneName&amp;lt;/code&amp;gt; and other options. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;SingleBoneLookAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;SingleBoneLookAnimation&amp;lt;/code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;1.0, 1.0, 70.0, -45.0, 45.0, -45.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.look(&#039;head&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;quadruped_walk(periodMultiplier: Double?, amplitudeMultiplier: Double? leftFrontLeftName: String?, leftFrontRightName: String?, leftBackLeftName: String?. leftBackRightName: String?): ObjectValue&amp;lt;QuadrupedWalkAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;QuadrupedWalkAnimation&amp;lt;/code&amp;gt; using the options. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;QuadrupedWalkAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;QuadrupedWalkAnimation&amp;lt;/code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;0.6662, 1.4, &#039;leg_front_left&#039;, leg_front_right&#039;, &#039;leg_back_left&#039;, &#039;leg_back_right&#039;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.quadruped_walk()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;biped_walk(periodMultiplier: Double?, amplitudeMultiplier: Double? leftLegName?: String, rightLegName: String?): ObjectValue&amp;lt;BipedWalkAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;BipedWalkAnimation&amp;lt;/code&amp;gt; using the options. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;BipedWalkAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;BipedWalkAnimation&amp;lt;/code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;0.6662, 1.4, &#039;leg_left&#039;, &#039;leg_right&#039;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.biped_walk()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bimanual_swing(periodMultiplier: Double?, amplitudeMultiplier: Double? leftArmName: String?, rightArmName String?): ObjectValue&amp;lt;BimanualSwingAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;BimanualSwingAnimation&amp;lt;/code&amp;gt; using the options. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;BimanualSwingAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;BimanualSwingAnimation&amp;lt;/code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;0.6662, 1.0, &#039;arm_left&#039;, &#039;arm_right&#039;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.bimanual_swing()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;sine_wing_flap(amplitude: Double?, period: Double?, verticalShift: Double?, axis: String?, wingLeft: String?, wingRight: String?): ObjectValue&amp;lt;WingFlapIdleAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;WingFlapIdleAnimation&amp;lt;/code&amp;gt; using the options. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;WingFlapIdleAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;WingFlapIdleAnimation&amp;lt;/code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;0.9, 0.9, 0.0, &#039;y&#039;, &#039;wing_left&#039;, &#039;wing_right&#039;&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;axis&amp;lt;/code&amp;gt; can either be &#039;x&#039;, &#039;y&#039;, or &#039;z&#039;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.sine_wing_flap()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bedrock_quirk(animationGroup: String, animationNames: MoValue, minSeconds: Double?, maxSeconds: Double?, loopTimes: Int?): ObjectValue&amp;lt;SimpleQuirk&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;SimpleQuirk&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;animationGroup&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;animationNames&amp;lt;/code&amp;gt; and the other options. &amp;lt;code&amp;gt;animationNames&amp;lt;/code&amp;gt; can either be an &amp;lt;code&amp;gt;ArrayStruct&amp;lt;String&amp;gt;&amp;lt;/code&amp;gt; or a single String. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;SimpleQuirk&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;SimpleQuirk&amp;lt;/code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;8.0, 30.0, 1&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;I don&#039;t know what is an example&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;primary_animation(activeAnimation: ObjectValue&amp;lt;ActiveAnimation&amp;gt;, options: MoValue...): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;PrimaryAnimation&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;activeAnimation&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;options&amp;lt;/code&amp;gt; can either be &amp;lt;code&amp;gt;ExcludedLabels&amp;lt;/code&amp;gt;, a &amp;lt;code&amp;gt;WaveFunction&amp;lt;/code&amp;gt; (only the last one is used), or a String that represents a label to exclude. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;PrimaryAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;PrimaryAnimation&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;I don&#039;t know what is an example&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;punch(headName: String?, bodyName: String?, leftArmName: String?, rightArmName: String?, swingRight? Boolean): ObjectValue&amp;lt;PunchAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;PunchAnimation&amp;lt;/code&amp;gt; using the options. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;PunchAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;PunchAnimation&amp;lt;/code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;&#039;head&#039;, &#039;body&#039;, &#039;arm_left&#039;, &#039;arm_right&#039;, true&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.punch()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bedrock_primary_quirk(animationGroup: String, animationNames: MoValue, minSeconds: Double?, maxSeconds: Double?, loopTimes: Int?, options: MoValue...): ObjectValue&amp;lt;SimpleQuirk&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;SimpleQuirk&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;animationGroup&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;animationNames&amp;lt;/code&amp;gt; and the other options. &amp;lt;code&amp;gt;animationNames&amp;lt;/code&amp;gt; can either be an &amp;lt;code&amp;gt;ArrayStruct&amp;lt;String&amp;gt;&amp;lt;/code&amp;gt; or a single String. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;SimpleQuirk&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;SimpleQuirk&amp;lt;/code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;8.0, 30.0, 1&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;options&amp;lt;/code&amp;gt; can either be a &amp;lt;code&amp;gt;WaveFunction&amp;lt;/code&amp;gt; (only the last one is used) or a String that represents a label to exclude.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;I don&#039;t know what is an example&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Animation_Functions&amp;diff=5782</id>
		<title>Molang Animation Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Animation_Functions&amp;diff=5782"/>
		<updated>2025-04-19T23:03:02Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Added Molang Animation Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Type is &amp;lt;code&amp;gt;QueryStruct&amp;lt;PoseableModel&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;exclude_labels(): ObjectValue&amp;lt;ExcludedLabels&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;ExcludedLabels&amp;gt;&amp;lt;/code&amp;gt; from a &amp;lt;code&amp;gt;PoseableModel&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.exclude_labels()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bedrock_primary(group: String, animation: String, options: MoValue...): ObjectValue&amp;lt;PrimaryAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;PrimaryAnimation&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;group&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;animation&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;options&amp;lt;/code&amp;gt; can either be &amp;lt;code&amp;gt;ExcludedLabels&amp;lt;/code&amp;gt;, a &amp;lt;code&amp;gt;WaveFunction&amp;lt;/code&amp;gt; (only the last one is used), or a String that represents a label to exclude. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;PrimaryAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;PrimaryAnimation&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;I don&#039;t know what is an example&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bedrock_stateful(group: String, animation: String, enduresPrimary: IDK WHAT THIS IS): ObjectValue&amp;lt;BedrockActiveAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;BedrockActiveAnimation&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;group&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;animation&amp;lt;/code&amp;gt;. IDK WHAT EDURESPRIMARY IS. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;BedrockActiveAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;BedrockActiveAnimation&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;I don&#039;t know what is an example&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bedrock(group: String, animation: String): ObjectValue&amp;lt;BedrockPoseAnimation&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;BedrockPoseAnimation&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;group&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;animation&amp;lt;/code&amp;gt;. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;BedrockActiveAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;BedrockActiveAnimation&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;I don&#039;t know what is an example&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;look(boneName: String, pitchMultiplier: Double?, yawMulitplier: Double?, maxPitch: Double?, minPitch: Double?, maxYaw, Double?, minYaw: Double?): ObjectValue&amp;lt;SingleBoneLookAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;SingleBoneLookAnimation&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;boneName&amp;lt;/code&amp;gt; and other options. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;SingleBoneLookAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;SingleBoneLookAnimation&amp;lt;code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;1.0, 1.0, 70.0, -45.0, 45.0, -45.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.look(&#039;head&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;quadruped_walk(periodMultiplier: Double?, amplitudeMultiplier: Double? leftFrontLeftName: String?, leftFrontRightName: String?, leftBackLeftName: String?. leftBackRightName: String?): ObjectValue&amp;lt;QuadrupedWalkAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;QuadrupedWalkAnimation&amp;lt;/code&amp;gt; using the options. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;QuadrupedWalkAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;QuadrupedWalkAnimation&amp;lt;code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;0.6662, 1.4, &#039;leg_front_left&#039;, leg_front_right&#039;, &#039;leg_back_left&#039;, &#039;leg_back_right&#039;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.quadruped_walk()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;biped_walk(periodMultiplier: Double?, amplitudeMultiplier: Double? leftLegName?: String, rightLegName: String?): ObjectValue&amp;lt;BipedWalkAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;BipedWalkAnimation&amp;lt;/code&amp;gt; using the options. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;BipedWalkAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;BipedWalkAnimation&amp;lt;code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;0.6662, 1.4, &#039;leg_left&#039;, &#039;leg_right&#039;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.biped_walk()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bimanual_swing(periodMultiplier: Double?, amplitudeMultiplier: Double? leftArmName: String?, rightArmName String?): ObjectValue&amp;lt;BimanualSwingAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;BimanualSwingAnimation&amp;lt;/code&amp;gt; using the options. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;BimanualSwingAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;BimanualSwingAnimation&amp;lt;code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;0.6662, 1.0, &#039;arm_left&#039;, &#039;arm_right&#039;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.bimanual_swing()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;sine_wing_flap(amplitude: Double?, period: Double?, verticalShift: Double?, axis: String?, wingLeft: String?, wingRight: String?): ObjectValue&amp;lt;WingFlapIdleAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;WingFlapIdleAnimation&amp;lt;/code&amp;gt; using the options. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;WingFlapIdleAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;WingFlapIdleAnimation&amp;lt;code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;0.9, 0.9, 0.0, &#039;y&#039;, &#039;wing_left&#039;, &#039;wing_right&#039;&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;axis&amp;lt;/code&amp;gt; can either be &#039;x&#039;, &#039;y&#039;, or &#039;z&#039;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.sine_wing_flap()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bedrock_quirk(animationGroup: String, animationNames: MoValue, minSeconds: Double?, maxSeconds: Double?, loopTimes: Int?): ObjectValue&amp;lt;SimpleQuirk&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;SimpleQuirk&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;animationGroup&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;animationNames&amp;lt;/code&amp;gt; and the other options. &amp;lt;code&amp;gt;animationNames&amp;lt;/code&amp;gt; can either be an &amp;lt;code&amp;gt;ArrayStruct&amp;lt;String&amp;gt;&amp;lt;/code&amp;gt; or a single String. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;SimpleQuirk&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;SimpleQuirk&amp;lt;code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;8.0, 30.0, 1&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;I don&#039;t know what is an example&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;primary_animation(activeAnimation: ObjectValue&amp;lt;ActiveAnimation&amp;gt;, options: MoValue...): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;PrimaryAnimation&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;activeAnimation&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;options&amp;lt;/code&amp;gt; can either be &amp;lt;code&amp;gt;ExcludedLabels&amp;lt;/code&amp;gt;, a &amp;lt;code&amp;gt;WaveFunction&amp;lt;/code&amp;gt; (only the last one is used), or a String that represents a label to exclude. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;PrimaryAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;PrimaryAnimation&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;I don&#039;t know what is an example&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;punch(headName: String?, bodyName: String?, leftArmName: String?, rightArmName: String?, swingRight? Boolean): ObjectValue&amp;lt;PunchAnimation&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;PunchAnimation&amp;lt;/code&amp;gt; using the options. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;PunchAnimation&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;PunchAnimation&amp;lt;code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;&#039;head&#039;, &#039;body&#039;, &#039;arm_left&#039;, &#039;arm_right&#039;, true&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.model.punch()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bedrock_primary_quirk(animationGroup: String, animationNames: MoValue, minSeconds: Double?, maxSeconds: Double?, loopTimes: Int?, options: MoValue...): ObjectValue&amp;lt;SimpleQuirk&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Creates a new &amp;lt;code&amp;gt;SimpleQuirk&amp;lt;/code&amp;gt; using the &amp;lt;code&amp;gt;animationGroup&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;animationNames&amp;lt;/code&amp;gt; and the other options. &amp;lt;code&amp;gt;animationNames&amp;lt;/code&amp;gt; can either be an &amp;lt;code&amp;gt;ArrayStruct&amp;lt;String&amp;gt;&amp;lt;/code&amp;gt; or a single String. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;SimpleQuirk&amp;gt;&amp;lt;/code&amp;gt; of the newly created &amp;lt;code&amp;gt;SimpleQuirk&amp;lt;code&amp;gt;. The default values are in order here: &amp;lt;code&amp;gt;8.0, 30.0, 1&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;options&amp;lt;/code&amp;gt; can either be a &amp;lt;code&amp;gt;WaveFunction&amp;lt;/code&amp;gt; (only the last one is used) or a String that represents a label to exclude.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;I don&#039;t know what is an example&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Client_General_Functions&amp;diff=5781</id>
		<title>Molang Client General Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Client_General_Functions&amp;diff=5781"/>
		<updated>2025-04-19T23:02:00Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Added Client General Molang Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;sound(soundId: ResourceLocation, _: any, pitch: Double?) 3 params but only two used?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Plays a sound with &amp;lt;code&amp;gt;soundId&amp;lt;/code&amp;gt; identifier. &amp;lt;code&amp;gt;pitch&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; by defaut.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.sound(&#039;minecraft:block.chest.close&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_time(min: Int, max: Int): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if time in ticks is in between &amp;lt;code&amp;gt;min&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;max&amp;lt;/code&amp;gt; (inclusive).&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.is_time(0, 24000)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;say(message: String)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Puts the &amp;lt;code&amp;gt;message&amp;lt;/code&amp;gt; in the chat.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.say(&#039;Hello World!&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Pok%C3%A9dex_Functions&amp;diff=5780</id>
		<title>Molang Pokédex Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Pok%C3%A9dex_Functions&amp;diff=5780"/>
		<updated>2025-04-19T23:00:59Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Fix Formatting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;AbstractPokedexManager&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage!!Must Be &amp;lt;code&amp;gt;PokedexManager&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_species_record(species: ResourceLocation): QueryStruct&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a &amp;lt;code&amp;gt;QueryStruct&amp;lt;SpeciesDexRecord&amp;gt;&amp;lt;/code&amp;gt; with useful functions for acessing and modifiing records. If the &amp;lt;code&amp;gt;ResourceLocation&amp;lt;/code&amp;gt; is invalid or the record does not exist then the function returns an empty &amp;lt;code&amp;gt;QueryStruct&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokedex.get_species_record(&#039;pikachu&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;has_seen(species: ResourceLocation, form: String?): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the Pokémon of &amp;lt;code&amp;gt;species&amp;lt;/code&amp;gt; and optionally &amp;lt;code&amp;gt;form&amp;lt;/code&amp;gt; been encountered or higher, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokedex.has_seen(&#039;pikachu&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;has_caught(species: ResourceLocation, form: String?): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the Pokémon of &amp;lt;code&amp;gt;species&amp;lt;/code&amp;gt; and optionally &amp;lt;code&amp;gt;form&amp;lt;/code&amp;gt; been caught, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokedex.has_caught(&#039;cobblemon:pikachu&#039;, &#039;alolan&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;caught_count(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the number of caught Pokémon as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokedex.caught_count()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;seen_count(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
Returns the number of seen Pokémon as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokedex.seen_count()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;caught_percent(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
Returns the percent of Pokémon caught as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokedex.caught_percent()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;seen_percent(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
Returns the percent of Pokémon seen as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokedex.seen_percent()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;player_id(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the Player&#039;s UUID that belongs to the Pokédex.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokedex.player_id()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;see(pokemon: ObjectValue&amp;lt;Pokemon&amp;gt;): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Updates the Pokédex with a new encountered record of the &amp;lt;code&amp;gt;Pokemon&amp;lt;/code&amp;gt;. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokedex.see(v.pokemon)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;catch(Pokemon: ObjectValue&amp;lt;Pokemon&amp;gt;): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Updates the Pokédex with a new catch record of the &amp;lt;code&amp;gt;Pokemon&amp;lt;/code&amp;gt;. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokedex.catch(v.pokemon)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Species_Functions&amp;diff=5779</id>
		<title>Molang Species Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Species_Functions&amp;diff=5779"/>
		<updated>2025-04-19T22:54:02Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Added Molang Species Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;Species&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;identifier(): ResourceIdentifier&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the species as a &amp;lt;code&amp;gt;ResourceIdentifier&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.species.identifier()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;name(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the species name as a String.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.species.name()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;primary_type(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the primary type as a String.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.species.primary_type()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;secondary_type(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the secondary type or &#039;null&#039; as a String.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.species.secondary()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;experience_group(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the experience group as a String.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.species.experience_group()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;height(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the height as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.species.height()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;weigth(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the weight as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.species.weight()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;base_scale(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the base scale as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.species.base_scale()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;hitbox_width(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the hitbox width as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.species.hitbox_width()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;hitbox_height(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the hitbox height as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.species.hitbox_height()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;hitbox_fixed(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the hitbox fixed as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.species.hitbox_fixed()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;catch_rate(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the catch rate as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.species.catch_rate()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Pok%C3%A9dex_Functions&amp;diff=5778</id>
		<title>Molang Pokédex Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Pok%C3%A9dex_Functions&amp;diff=5778"/>
		<updated>2025-04-19T22:52:25Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Added Pokedex Molang Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;AbstractPokedexManager&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage!!Must Be &amp;lt;code&amp;gt;PokedexManager&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_species_record(species: ResourceLocation): QueryStruct&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a &amp;lt;code&amp;gt;QueryStruct&amp;lt;SpeciesDexRecord&amp;gt;&amp;lt;/code&amp;gt; with useful functions for acessing and modifiing records. If the &amp;lt;code&amp;gt;ResourceLocation&amp;lt;/code&amp;gt; is invalid or the record does not exist then the function returns an empty &amp;lt;code&amp;gt;QueryStruct&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokedex.get_species_record(&#039;pikachu&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;has_seen(species: ResourceLocation, form: String?): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the Pokémon of &amp;lt;code&amp;gt;species&amp;lt;/code&amp;gt; and optionally &amp;lt;code&amp;gt;form&amp;lt;/code&amp;gt; been encountered or higher, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokedex.has_seen(&#039;pikachu&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;has_caught(species: ResourceLocation, form: String?): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the Pokémon of &amp;lt;code&amp;gt;species&amp;lt;/code&amp;gt; and optionally &amp;lt;code&amp;gt;form&amp;lt;/code&amp;gt; been caught, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokedex.has_caught(&#039;cobblemon:pikachu&#039;, &#039;alolan&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;caught_count(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the number of caught Pokémon as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokedex.caught_count()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;|seen_count(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the number of seen Pokémon as a Double.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;|v.pokedex.seen_count()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;|caught_percent(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the percent of Pokémon caught as a Double.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;|v.pokedex.caught_percent()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;|seen_percent(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the percent of Pokémon seen as a Double.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;|v.pokedex.seen_percent()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;|player_id(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the Player&#039;s UUID that belongs to the Pokédex.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;|v.pokedex.player_id()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;see(pokemon: ObjectValue&amp;lt;Pokemon&amp;gt;): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Updates the Pokédex with a new encountered record of the &amp;lt;code&amp;gt;Pokemon&amp;lt;/code&amp;gt;. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokedex.see(v.pokemon)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;catch(Pokemon: ObjectValue&amp;lt;Pokemon&amp;gt;): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Updates the Pokédex with a new catch record of the &amp;lt;code&amp;gt;Pokemon&amp;lt;/code&amp;gt;. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokedex.catch(v.pokemon)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Server_Functions&amp;diff=5777</id>
		<title>Molang Server Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Server_Functions&amp;diff=5777"/>
		<updated>2025-04-19T22:49:43Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Added Molang Server Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;MinecraftServer&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_world(dimension: ResourceLocation): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|If &amp;lt;code&amp;gt;dimension&amp;lt;/code&amp;gt; is valid then returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;World&amp;gt;&amp;lt;/code&amp;gt;, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.server.get_world(&#039;minecraft:nether&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;broadcast(message: String, bypassHiddenChat: Boolean?): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Sends the &amp;lt;code&amp;gt;message&amp;lt;/code&amp;gt; to all players. &amp;lt;code&amp;gt;bypassHiddenChat&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; by default.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.server.broadcast(&#039;Hello World!&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_player_by_uuid(uuid: String): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|If &amp;lt;code&amp;gt;uuid&amp;lt;/code&amp;gt; is a valid UUID then returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;Player&amp;gt;&amp;lt;/code&amp;gt;, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.server.get_player_by_uuid(v.player_uuid)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_player_by_username(name: String): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|If &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; is a valid name then returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;Player&amp;gt;&amp;lt;/code&amp;gt;, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.server.get_player_by_username(v.player_name)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;data(): VariableStruct&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the &amp;lt;code&amp;gt;VariableStruct&amp;lt;/code&amp;gt; representing &amp;lt;code&amp;gt;MoLangDataStoreFactory&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.server.data()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;save_data(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Saves the &amp;lt;code&amp;gt;MoLangDataStoreFactory&amp;lt;/code&amp;gt; and returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.server.save_data()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_SpawningContext_Functions&amp;diff=5776</id>
		<title>Molang SpawningContext Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_SpawningContext_Functions&amp;diff=5776"/>
		<updated>2025-04-19T22:49:09Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Added Molang SpawningContext Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;SpawningContext&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;biome(): ObjectValue&amp;lt;Biome&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;Biome&amp;gt;&amp;lt;/code&amp;gt; of the biome the SpawningContext is in.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.spawning_context.biome()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;world(): ObjectValue&amp;lt;World&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;World&amp;gt;&amp;lt;/code&amp;gt; of the world the SpawningContext is in.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.spawning_context.world()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;light(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the light value of the SpawningContext.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.spawning_context.light()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;x(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the x value as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.spawning_context.x()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;y(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the y value as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.spawning_context.y()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;z(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the z value as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.spawning_context.z()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;moon_phase(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the moon phase as a Double&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.spawning_context.moon_phase()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;can_see_sky(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the SpawningContext can see the sky, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.spawning_context.can_see_sky()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;bucket(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the bucket as a String.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.spawning_context.bucket()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;player(): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;Player&amp;gt;&amp;lt;/code&amp;gt; if the spawning was caused by a player, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.spawning_context.player()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_PC_Functions&amp;diff=5775</id>
		<title>Molang PC Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_PC_Functions&amp;diff=5775"/>
		<updated>2025-04-19T22:47:09Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Added PC Molang functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Can also use [[Molang PokémonStore Functions|PokémonStore functions]]. Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;PCStore&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_pokemon(box: Int, slot: Int): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;Pokemon&amp;gt;&amp;lt;/code&amp;gt; of the pokemon at the supplied &amp;lt;code&amp;gt;box&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;slot&amp;lt;/code&amp;gt;. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if there is no Pokémon there.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pc.get_pokemon(0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;resize(newSize: Int, lockNewSize: Boolean?): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Resizes the PC with the supplied &amp;lt;code&amp;gt;newSize&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;lockNewSize&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; by default. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pc.resize(25)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_box_count(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the number of boxes as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pc.get_box_count()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Party_Functions&amp;diff=5774</id>
		<title>Molang Party Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Party_Functions&amp;diff=5774"/>
		<updated>2025-04-19T22:46:19Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Added Molang Party Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Can also use [[Molang PokémonStore Functions|PokémonStore functions]]. Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;PartyStore&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_pokemon(index: Int): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;Pokemon&amp;gt;&amp;lt;/code&amp;gt; at the &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; of the party. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if there is no Pokémon at the supplied &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.party.get_pokemon(0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Pok%C3%A9monEntity_Functions&amp;diff=5773</id>
		<title>Molang PokémonEntity Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Pok%C3%A9monEntity_Functions&amp;diff=5773"/>
		<updated>2025-04-19T22:44:01Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Switch to common molang syntax.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Can also use [[Molang Entity Functions|entity]] and [[Molang Pokémon Functions|pokémon]] functions. Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;PokemonEntity&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;in_battle(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the Pokémon is in battle, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon_entity.in_battle()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_moving(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the Pokémon is moving otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon_entity.is_moving()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_flying(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the Pokémon is in flying, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon_entity.is_flying()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;has_aspect(aspect: String): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the Pokémon has the &amp;lt;code&amp;gt;aspect&amp;lt;/code&amp;gt;, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon_entity.has_aspect(&#039;alolan&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_pokemon(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon_entity.is_pokemon()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Pok%C3%A9monEntity_Functions&amp;diff=5772</id>
		<title>Molang PokémonEntity Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Pok%C3%A9monEntity_Functions&amp;diff=5772"/>
		<updated>2025-04-19T22:41:59Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Added Molang PokemonEntity Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Can also use [[Molang Entity Functions|entity]] and [[Molang Pokémon Functions|pokémon]] functions. Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;PokemonEntity&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;in_battle(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the Pokémon is in battle, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemonEntity.in_battle()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_moving(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the Pokémon is moving otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemonEntity.is_moving()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_flying(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the Pokémon is in flying, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemonEntity.is_flying()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;has_aspect(aspect: String): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the Pokémon has the &amp;lt;code&amp;gt;aspect&amp;lt;/code&amp;gt;, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemonEntity.has_aspect(&#039;alolan&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_pokemon(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemonEntity.is_pokemon()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Pok%C3%A9monStore_Functions&amp;diff=5771</id>
		<title>Molang PokémonStore Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Pok%C3%A9monStore_Functions&amp;diff=5771"/>
		<updated>2025-04-19T22:41:43Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Added Molang PokemonStore Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;PokemonStore&amp;lt;*&amp;gt;&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;add(pokemon: ObjectValue&amp;lt;Pokemon&amp;gt;): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Adds Pokémon to the first available spot. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if there was space, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.store.add(v.pokemon)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;add_by_properties(properties: String): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|If the type of the store is &amp;lt;code&amp;gt;PlayerPartyStore&amp;lt;/code&amp;gt; then create a Pokémon with the listed &amp;lt;code&amp;gt;properties&amp;lt;/code&amp;gt; and add it to the store. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if there was space, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.store.add_by_properties(&#039;species=cobblemon:pikachu gender=male&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;find_by_properties(properties: String): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Finds the first Pokémon with the listed &amp;lt;code&amp;gt;properties&amp;lt;/code&amp;gt; in the store and returns a &amp;lt;code&amp;gt;ObjectValue&amp;lt;Pokemon&amp;gt;&amp;lt;/code&amp;gt; Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if no pokemon found.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.store.find_by_properties(&#039;species=cobblemon:pikachu gender=male&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;find_all_by_properties(properties: String): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns an &amp;lt;code&amp;gt;ArrayStruct&amp;lt;ObjectValue&amp;lt;Pokemon&amp;gt;&amp;gt;&amp;lt;/code&amp;gt; of all Pokémon with the listed &amp;lt;code&amp;gt;properties&amp;lt;/code&amp;gt; in the store.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.store.find_all_by_properties(&#039;species=cobblemon:pikachu gender=male&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;find_by_id(id: String): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;Pokemon&amp;gt;&amp;lt;/code&amp;gt; that matches the UUID &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; of the Pokémon. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if no Pokémon is found.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.store.find_by_id(v.pokemon.id())&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;remove_by_id(id: String): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Removes a Pokémon that matches the UUID &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt;. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if removed, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.store.remove_by_id(v.pokemon.id())&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;average_level(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the average level of all Pokémon in the store. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if there is no Pokémon.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.store.average_level()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;count(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the number of Pokémon in a store.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.store.count()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;count_by_properties(properties: String): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the count of Pokémon that match the listed &amp;lt;code&amp;gt;properties&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.store.count_by_properties(&#039;gender=male&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;highest_level(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the highest level of all Pokémon in a store as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.store.highest_level()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;lowest_level(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the lowest level of all Pokémon in a store as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.store.lowest_level()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;heal(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Heals all Pokémon in a store. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.store.heal()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;healing_remainder_percent(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the cumulative percentage of health missing as a Double.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.store.healing_remainder_percent()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;has_usable_pokemon(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if any Pokémon is not fainted, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.store.has_usable_pokemon()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Pok%C3%A9mon_Functions&amp;diff=5770</id>
		<title>Molang Pokémon Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Pok%C3%A9mon_Functions&amp;diff=5770"/>
		<updated>2025-04-19T22:38:48Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Added Molang Pokemon Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;Pokemon&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;id(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the UUID of the Pokémon as a String.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon.id()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;level(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the level of the Pokémon as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon.level()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;max_hp(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the max hp of the Pokémon as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon.hp()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;current_hp(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the current hp of the Pokémon as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon.current_hp()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;friendship(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the friendship of the Pokémon as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon.friendship()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;evs(): QueryStruct&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns all evs of the Pokémon as a &amp;lt;code&amp;gt;QueryStruct&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon.evs()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;ivs(): QueryStuct&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns all ivs of the Pokémon as a &amp;lt;code&amp;gt;QueryStruct&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon.ivs()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_wild(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the Pokémon is wild, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon.is_wild()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_shiny(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the Pokémon is shiny, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon.is_shiny()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;species(): ObjectValue&amp;lt;Species&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns an ObjectValue&amp;lt;Species&amp;gt; of the Pokémon&#039;s species.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon.species()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;form(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the form as a String.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon.form()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;weight: Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the weight of the Pokémon as a Double.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon.weight()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;matches(properties: String): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the Pokémon matches the &amp;lt;code&amp;gt;properties&amp;lt;/code&amp;gt; String, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon.matches(&#039;gender=male&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;apply(properties: String): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Applies the &amp;lt;code&amp;gt;properties&amp;lt;/code&amp;gt; to the Pokémon. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon.apply(&#039;gender=male&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;owner(): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the Pokémon&#039;s owner as a &amp;lt;code&amp;gt;ObjectValue&amp;lt;Player&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if there is no owner.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.pokemon.owner()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_BattleActor_Functions&amp;diff=5769</id>
		<title>Molang BattleActor Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_BattleActor_Functions&amp;diff=5769"/>
		<updated>2025-04-19T22:37:31Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Add Molang BattleActor Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;BattleActor&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage!!Must be called on&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_npc(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the actor is a NPC, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.actor.is_npc()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_player(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the actor is a Player, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.actor.is_player()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_wild(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the actor is a wild Pokémon, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.actor.is_wild()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;npc(): ObjectValue&amp;lt;NPCBattleActor&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a struct of &amp;lt;code&amp;gt;ObjectValue&amp;lt;NPCBattleActor&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.actor.npc()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|NPCBattleActor&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;player(): ObjectValue&amp;lt;PlayerBattleActor&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a struct of &amp;lt;code&amp;gt;ObjectValue&amp;lt;PlayerBattleActor&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.actor.player()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|PlayerBattleActor&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Battle_Functions&amp;diff=5767</id>
		<title>Molang Battle Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Battle_Functions&amp;diff=5767"/>
		<updated>2025-04-19T22:18:04Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Add Molang Battle Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;PokemonBattle&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;battle_id(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the ID of the battle as a String.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.battle.battle_id()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_pvn(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if battle is Player vs. NPC, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.battle.is_pvn()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_pvp(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if battle is Player vs. Player, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.battle.is_pvp()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_pvw(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if battle is Player vs. a wild Pokémon, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.battle.is_pve()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;battle_type(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the battle format as a String.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.battle.battle_type()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;environment(): CHECK TYPE&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the environment.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.battle.environment()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_actor(uuid: String): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the struct of the &amp;lt;code&amp;gt;ObjectValue&amp;lt;BattleActor&amp;gt;&amp;lt;code&amp;gt; if present, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.battle.get_actor(q.npc.get_id())&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;stop()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Stops the battle.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.battle.stop()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;actors(): ArrayValue&amp;lt;ObjectValue&amp;lt;BattleActor&amp;gt;&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns an &amp;lt;code&amp;gt;ArrayValue&amp;lt;ObjectValue&amp;lt;BattleActor&amp;gt;&amp;gt;&amp;lt;/code&amp;gt; of all actors in a battle&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.battle.actors()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_NPC_Functions&amp;diff=5768</id>
		<title>Molang NPC Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_NPC_Functions&amp;diff=5768"/>
		<updated>2025-04-19T22:17:55Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Add Molang NPC Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Can also use [[Molang Entity Functions|entity functions]]. Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;NPCEntity&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;class(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the id of the NPC as a String.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.class()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;name(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the name of the NPC.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.name()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;level(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the level of the NPC.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.level()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;has_aspect(aspect: String): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the NPC contains the &amp;lt;code&amp;gt;aspect&amp;lt;/code&amp;gt;, otherwise returns &amp;lt;code&amp;gt;0.0&amp;gt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.has_aspect(&#039;champion&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;face(isLeftSide: Boolean?): ObjectValue&amp;lt;ReferenceDialogueFaceProvider&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a ObjectValue of &amp;lt;code&amp;gt;[[https://gitlab.com/cable-mc/cobblemon/-/blob/main/common/src/main/kotlin/com/cobblemon/mod/common/api/dialogue/DialogueFace.kt ReferenceDialogueFaceProvider]]&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;isLeftSide&amp;lt;/code&amp;gt; is true by default.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.face()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;in_battle(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; NPC is in battle, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.in_battle()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;battles(): ArrayStruct&amp;lt;CHECK TYPE&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns all battles currently ongoing for this NPC.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.battles()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;stop_battles()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Stops all ongoing battles for this NPC.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.stop_battles()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_doing_activity(identifiers: String...): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the NPC is doing any of the activities listed in the parameters, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.is_doing_activity(&#039;rest&#039;, &#039;idle&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;run_script_on_client(script: String)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|If run by a server a packet will be sent to all players in the same world as the NPC that tells the clients to run the &amp;lt;code&amp;gt;script&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.run_script_on_client(&#039;cobblemon:npc_battle_cooling_down&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;run_script(identifier: String): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Runs a script from an &amp;lt;code&amp;gt;identifier&amp;lt;/code&amp;gt;. Returns the result of the script or &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if it fails.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.run_script(&#039;cobblemon:npc_battle_cooling_down&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;run_action_effect(actionIdentifier: String): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Runs an action effect. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if effect is found, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.run_action_effect(&amp;quot;cobblemon:generic_damage&amp;quot;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;put_pokemon_in_healer(position: ArrayStruct&amp;lt;Int&amp;gt;): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|The NPC attempts to put pokemon in a healing machine at &amp;lt;code&amp;gt;position&amp;lt;/code&amp;gt;. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if it succeeded, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.put_pokemon_in_healer(t.pos)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;look_at_position(x: Double, y: Double, z: Double)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Makes the NPC look at the position of &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.look_at_position(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;environment(): MoLangEnvironment&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the NPC&#039;s environment.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.environment()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;party(): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;PartyStore&amp;gt;&amp;lt;/code&amp;gt; if the NPC has a party, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.party()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;has_party(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if NPC has a party, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.has_party()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_npc(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.is_npc()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;can_battle(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if NPC has a party and that party has health or if the party has &amp;lt;code&amp;gt;isStatic&amp;lt;/code&amp;gt; set to false. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.npc.can_battle()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Player_Functions&amp;diff=5766</id>
		<title>Molang Player Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Player_Functions&amp;diff=5766"/>
		<updated>2025-04-19T22:08:52Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Add link to Entity Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Players can also use [[Molang Entity Functions|entity functions]]. Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;Player&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage!!Server Only&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;username(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the name of a player.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.username()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;uuid(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the UUID of a player.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.uuid()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;main_held_item(): ObjectValue&amp;lt;Item&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the Item Object in the player&#039;s main hand.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.main_held_item()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;off_held_item(): ObjectValue&amp;lt;Item&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the Item Object in the player&#039;s off hand.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.off_held_item()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;face(isLeftSide: Boolean?): ObjectValue&amp;lt;PlayerDialogueFaceProvider&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a ObjectValue of &amp;lt;code&amp;gt;[[https://gitlab.com/cable-mc/cobblemon/-/blob/main/common/src/main/kotlin/com/cobblemon/mod/common/api/dialogue/DialogueFace.kt PlayerDialogueFaceProvider]]&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;isLeftSide&amp;lt;/code&amp;gt; is true by default.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.face()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;swing_hand()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Swings the player&#039;s hand.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.swing_hand()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;food_level(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the food level of the player.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.food_level()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;saturation_level(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the saturation level of the player.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.saturation_level()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;tell(message: String, overlay: Boolean?)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Displays a message in the player&#039;s chat, and will overlay if &amp;lt;code&amp;gt;overlay&amp;lt;/code&amp;gt; is set to true.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.tell(&#039;Hello world!&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;teleport(x: Double, y: Double, z: Double, playParticleOptions: Boolean?)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Teleports the player to &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;. If &amp;lt;code&amp;gt;playParticleOptionss&amp;lt;/code&amp;gt; is true then particles will be displayed.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.teleport(0,0,0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;heal(amount: Double?)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Will heal a player by &amp;lt;code&amp;gt;amount&amp;lt;/code&amp;gt;, or to max health if unspecified.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.heal(5)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;environment(): MoLangEnvironment&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a MoLang environment with the query set as a &amp;lt;code&amp;gt;ObjectValue&amp;lt;Player&amp;gt;&amp;lt;/code&amp;gt; for this player.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.environment()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_player(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;p.player.is_player()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;run_command(command: String)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Runs a command as the player.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;run_command(&#039;/say Hello World!&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_party_at_full_health(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns if no Pokémon is able to heal, aka all is at full health.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.is_party_at_full_health()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;can_heal_at_healer(position: ArrayStruct&amp;lt;Int&amp;gt;): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if the block is not a healing machine or if the healing machine cannot heal the player&#039;s party. Otherwise returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.can_heal_at_healer(v.location)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;put_pokemon_in_healer(position: ArrayStruct&amp;lt;Int&amp;gt;): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Attempts to heal all Pokémon in the party at the specified healing machine. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if the block is not a healing machine or if the party cannot be healed. Otherwise returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.party.put_pokemon_in_healer(v.location)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;party(): ObjectValue&amp;lt;PartyStore&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a struct of the player&#039;s party store.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.party()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;pc(): ObjectValue&amp;lt;PCStore&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a struct of the player&#039;s PC store.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.pc()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;has_permission(permission: String, level: Int?)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the player has this permission at the specified &amp;lt;code&amp;gt;level&amp;lt;/code&amp;gt;, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;level&amp;lt;/code&amp;gt; is 4 at default.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.has_permission(&#039;command.pc&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;data(): VariableStruct&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a &amp;lt;code&amp;gt;VariableStruct&amp;lt;/code&amp;gt; from Cobblemon&#039;s Molang store for that player&#039;s UUID.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.data()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;save_data()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Saves to Cobblemon&#039;s Molang Store for that player&#039;s UUID.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.save_data()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;in_battle(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the player is in battle, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.in_battle()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;battle(): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a Struct CHECK TYPE if in battle, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.battle()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_npc_data(npc: MoValue): VariableStruct&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Get the NPC&#039;s data from the player&#039;s MoLang store. &amp;lt;code&amp;gt;npc&amp;lt;/code&amp;gt; can either be the NPC&#039;s UUID or an &amp;lt;code&amp;gt;ObjectValue&amp;lt;NPCEntity&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.get_npc_data(q.npc)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_npc_variable(npc: MoValue, variable: String): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Get a variable from the NPC&#039;s data from the player&#039;s MoLang store. &amp;lt;code&amp;gt;npc&amp;lt;/code&amp;gt; can either be the NPC&#039;s UUID or a &amp;lt;code&amp;gt;ObjectValue&amp;lt;NPCEntity&amp;gt;&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;variable&amp;lt;/code&amp;gt; is a string key. If the key is not in the NPC data or the variable is null it will return &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.get_npc_data(q.npc, &#039;fight_count&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;set_npc_data(npc: MoValue, variable: String, value: MoValue, saveAfterwards: Boolean?): DoubleValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Set a variable from the NPC&#039;s data from the player&#039;s MoLang store. &amp;lt;code&amp;gt;npc&amp;lt;/code&amp;gt; can either be the NPC&#039;s UUID or a &amp;lt;code&amp;gt;ObjectValue&amp;lt;NPCEntity&amp;gt;&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;variable&amp;lt;/code&amp;gt; is used as the key and &amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt; is used as the value. &amp;lt;code&amp;gt;saveAfterwards&amp;lt;/code&amp;gt; is true by default. Will return &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.set_npc_data(q.npc, &#039;fight_count&#039;, 1)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;pokedex(): ObjectValue&amp;lt;AbstractPokedexManager&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;AbstractPokedexManager&amp;gt;&amp;lt;/code&amp;gt; of the player&#039;s pokedex.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.pokedex()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Entity_Functions&amp;diff=5765</id>
		<title>Molang Entity Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Entity_Functions&amp;diff=5765"/>
		<updated>2025-04-19T22:07:51Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Added Entity Molang Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;LivingEntity&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage!!Must be called on&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;uuid(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the UUID of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.uuid()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;damage(amount: Double)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Deals damage equal to &amp;lt;code&amp;gt;amount&amp;lt;/code&amp;gt;. Damage type is generic.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.damage(5)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;walk_to(x: Double, y: Double, z: Double, speedMultiplier: Double?)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|If the entity is a &amp;lt;code&amp;gt;PathfinderMob&amp;lt;/code&amp;gt; then the mob will change its target to the &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;speedMultiplier&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;0.35&amp;lt;/code&amp;gt; by default.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.walk_to(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;has_walk_target(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is a &amp;lt;code&amp;gt;PathfinderMob&amp;lt;/code&amp;gt; and has a walk target or is currently pathfinding. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.has_walk_target()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_sneaking(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is sneaking. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_sneaking()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_sprinting(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is sprinting. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_sprinting()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_flying(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is flying. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_flying()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_in_water(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is in water. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_in_water()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_touching_water_or_rain(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is touching water or rain. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_touching_water_or_rain()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_touching_water(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is touching water. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_touching_water()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_underwater(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is underwater. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_under_water()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_in_lava(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is in lava. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_in_lava()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_on_fire(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is on fire. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_on_fire()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_invisible(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is invisible. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_invisible()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_sleeping(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is sleeping. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_sleeping()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_riding(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is riding. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_riding()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;health(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the current health of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.health()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;distance_to_pos(x: Double, y: Double, z: Double): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the distance from the entity to the position at &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;. Pythagoras baby!&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.distance_to_pos(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;max_health(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the max health of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.max_health()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;name(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the name of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.name()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;type(): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the type of the entity as a string if it is registered. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.type()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;yaw(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the yaw of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.yaw()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;pitch(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the pitch of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.pitch()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;x(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the x position of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.x()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;y(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the y position of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.y()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;z(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the z position of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.z()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;velocity_x(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the x velocity of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.velocity_x()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;velocity_y(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the y velocity of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.velocity_y()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;velocity_z(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the z velocity of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.velocity_z()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;width(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the width of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.width()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;height(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the height of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.height()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;entity_size(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the larger dimension between the xsize and the ysize of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.entity_size()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;entity_width(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the width of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.entity_width()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;entity_height(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the height of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.entity_height()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;id_modulo(modValue: Double): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the value of the entities&#039; UUID mod &amp;lt;code&amp;gt;modValue&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.id_modulo(32)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;horizontal_velocity(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the horizontal velocity of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.horizontal_velocity()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;vertical_velocity(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the vertical velocity of the entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.vertical_velocity()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;world(): ObjectValue&amp;lt;Holder&amp;lt;Level&amp;gt;&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the world that the entity is in as a &amp;lt;code&amp;gt;ObjectValue&amp;lt;Holder&amp;lt;Level&amp;gt;&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.world()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;biome(): ObjectValue&amp;lt;Holder&amp;lt;Biome&amp;gt;&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the biome that the entity is in as a &amp;lt;code&amp;gt;ObjectValue&amp;lt;Holder&amp;lt;Biome&amp;gt;&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.biome()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_passenger(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the entity is invisible. Otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_passenger()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_healer_in_use(position: ArrayStruct&amp;lt;Int&amp;gt;): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns if the healing machine at &amp;lt;code&amp;gt;position&amp;lt;/code&amp;gt; is in use. Uses the entities&#039; level. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_healer_in_use(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;find_nearby_block(identifier: String, range: Double?): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Looks for a block within a cube with size &amp;lt;code&amp;gt;range&amp;lt;/code&amp;gt; centered around the entity, with a default  of &amp;lt;code&amp;gt;10&amp;lt;code&amp;gt;. Identifier namespace is &amp;lt;code&amp;gt;minecraft&amp;lt;/code&amp;gt; by default. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if block cannot be found or an &amp;lt;code&amp;gt;ArrayStruct&amp;lt;Int&amp;gt;&amp;lt;/code&amp;gt; for the position of the block.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.find_nearby_block(&#039;cobblemon:restoration_tank&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_nearby_entities(distance: Double): ArrayStruct&amp;lt;MoValue&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Get entities within a cube with size &amp;lt;code&amp;gt;distance&amp;lt;/code&amp;gt; centered around the entity. Returns an &amp;lt;code&amp;gt;ArrayStruct&amp;lt;/code&amp;gt; with the most specific type, such as &amp;lt;code&amp;gt;ObjectValue&amp;lt;Player&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ObjectValue&amp;lt;NPCEntity&amp;gt;&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;ObjectValue&amp;lt;LivingEntity&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.get_nearby_entities(10)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_standing_on_blocks(depth: Int, blocks, ResourceLocation...): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|If the entity is standing on any of the supplied &amp;lt;code&amp;gt;blocks&amp;lt;/code&amp;gt; then the funtion returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;, othewise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.is_standing_on_blocks(2, &#039;dirt&#039;, &#039;cobblemon:apricorn_log&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;play_animation(animation: String, target: String?): DoubleValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Plays an animation on an entity by the name &amp;lt;code&amp;gt;animation&amp;lt;/code&amp;gt;. If &amp;lt;code&amp;gt;target&amp;lt;/code&amp;gt; is not specified or null then all nearby entities will get the animation packet. If &amp;lt;code&amp;gt;target&amp;lt;/code&amp;gt; is either a player name or UUID then the packet will be sent to them only. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if packet(s) are sent, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.entity.play_animation(&#039;sleep&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|PoseableEntities&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;spawn_bedrock_particles(effect: String, locator: String, player: MoValue?)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Sends bedrock particles of the resource &amp;lt;code&amp;gt;effect&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;locator&amp;lt;/code&amp;gt; to players around the entity, or to &amp;lt;code&amp;gt;player&amp;lt;/code&amp;gt; only. &amp;lt;code&amp;gt;player&amp;lt;/code&amp;gt; can either be a UUID or a &amp;lt;code&amp;gt;ObjectValue&amp;lt;Player&amp;gt;&amp;lt;/code&amp;gt;. Locator is required, even if unused on non-poseable entities.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;IDK WHAT A VALID EXAMPLE IS&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Player_Functions&amp;diff=5764</id>
		<title>Molang Player Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Player_Functions&amp;diff=5764"/>
		<updated>2025-04-19T22:05:39Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: /* Player Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Players can also use entity functions. Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;Player&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage!!Server Only&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;username(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the name of a player.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.username()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;uuid(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the UUID of a player.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.uuid()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;main_held_item(): ObjectValue&amp;lt;Item&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the Item Object in the player&#039;s main hand.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.main_held_item()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;off_held_item(): ObjectValue&amp;lt;Item&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the Item Object in the player&#039;s off hand.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.off_held_item()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;face(isLeftSide: Boolean?): ObjectValue&amp;lt;PlayerDialogueFaceProvider&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a ObjectValue of &amp;lt;code&amp;gt;[[https://gitlab.com/cable-mc/cobblemon/-/blob/main/common/src/main/kotlin/com/cobblemon/mod/common/api/dialogue/DialogueFace.kt PlayerDialogueFaceProvider]]&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;isLeftSide&amp;lt;/code&amp;gt; is true by default.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.face()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;swing_hand()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Swings the player&#039;s hand.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.swing_hand()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;food_level(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the food level of the player.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.food_level()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;saturation_level(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the saturation level of the player.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.saturation_level()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;tell(message: String, overlay: Boolean?)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Displays a message in the player&#039;s chat, and will overlay if &amp;lt;code&amp;gt;overlay&amp;lt;/code&amp;gt; is set to true.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.tell(&#039;Hello world!&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;teleport(x: Double, y: Double, z: Double, playParticleOptions: Boolean?)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Teleports the player to &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;. If &amp;lt;code&amp;gt;playParticleOptionss&amp;lt;/code&amp;gt; is true then particles will be displayed.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.teleport(0,0,0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;heal(amount: Double?)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Will heal a player by &amp;lt;code&amp;gt;amount&amp;lt;/code&amp;gt;, or to max health if unspecified.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.heal(5)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;environment(): MoLangEnvironment&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a MoLang environment with the query set as a &amp;lt;code&amp;gt;ObjectValue&amp;lt;Player&amp;gt;&amp;lt;/code&amp;gt; for this player.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.environment()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_player(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;p.player.is_player()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;run_command(command: String)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Runs a command as the player.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;run_command(&#039;/say Hello World!&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_party_at_full_health(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns if no Pokémon is able to heal, aka all is at full health.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.is_party_at_full_health()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;can_heal_at_healer(position: ArrayStruct&amp;lt;Int&amp;gt;): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if the block is not a healing machine or if the healing machine cannot heal the player&#039;s party. Otherwise returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.can_heal_at_healer(v.location)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;put_pokemon_in_healer(position: ArrayStruct&amp;lt;Int&amp;gt;): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Attempts to heal all Pokémon in the party at the specified healing machine. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if the block is not a healing machine or if the party cannot be healed. Otherwise returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.party.put_pokemon_in_healer(v.location)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;party(): ObjectValue&amp;lt;PartyStore&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a struct of the player&#039;s party store.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.party()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;pc(): ObjectValue&amp;lt;PCStore&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a struct of the player&#039;s PC store.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.pc()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;has_permission(permission: String, level: Int?)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the player has this permission at the specified &amp;lt;code&amp;gt;level&amp;lt;/code&amp;gt;, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;level&amp;lt;/code&amp;gt; is 4 at default.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.has_permission(&#039;command.pc&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;data(): VariableStruct&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a &amp;lt;code&amp;gt;VariableStruct&amp;lt;/code&amp;gt; from Cobblemon&#039;s Molang store for that player&#039;s UUID.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.data()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;save_data()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Saves to Cobblemon&#039;s Molang Store for that player&#039;s UUID.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.save_data()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;in_battle(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the player is in battle, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.in_battle()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;battle(): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a Struct CHECK TYPE if in battle, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.battle()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_npc_data(npc: MoValue): VariableStruct&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Get the NPC&#039;s data from the player&#039;s MoLang store. &amp;lt;code&amp;gt;npc&amp;lt;/code&amp;gt; can either be the NPC&#039;s UUID or an &amp;lt;code&amp;gt;ObjectValue&amp;lt;NPCEntity&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.get_npc_data(q.npc)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_npc_variable(npc: MoValue, variable: String): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Get a variable from the NPC&#039;s data from the player&#039;s MoLang store. &amp;lt;code&amp;gt;npc&amp;lt;/code&amp;gt; can either be the NPC&#039;s UUID or a &amp;lt;code&amp;gt;ObjectValue&amp;lt;NPCEntity&amp;gt;&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;variable&amp;lt;/code&amp;gt; is a string key. If the key is not in the NPC data or the variable is null it will return &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.get_npc_data(q.npc, &#039;fight_count&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;set_npc_data(npc: MoValue, variable: String, value: MoValue, saveAfterwards: Boolean?): DoubleValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Set a variable from the NPC&#039;s data from the player&#039;s MoLang store. &amp;lt;code&amp;gt;npc&amp;lt;/code&amp;gt; can either be the NPC&#039;s UUID or a &amp;lt;code&amp;gt;ObjectValue&amp;lt;NPCEntity&amp;gt;&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;variable&amp;lt;/code&amp;gt; is used as the key and &amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt; is used as the value. &amp;lt;code&amp;gt;saveAfterwards&amp;lt;/code&amp;gt; is true by default. Will return &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.set_npc_data(q.npc, &#039;fight_count&#039;, 1)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;pokedex(): ObjectValue&amp;lt;AbstractPokedexManager&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;AbstractPokedexManager&amp;gt;&amp;lt;/code&amp;gt; of the player&#039;s pokedex.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.pokedex()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Player_Functions&amp;diff=5763</id>
		<title>Molang Player Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Player_Functions&amp;diff=5763"/>
		<updated>2025-04-19T22:04:10Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Added Molang Player Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Player Functions==&lt;br /&gt;
Players can also use entity functions. Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;Player&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage!!Server Only&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;username(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the name of a player.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.username()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;uuid(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the UUID of a player.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.uuid()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;main_held_item(): ObjectValue&amp;lt;Item&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the Item Object in the player&#039;s main hand.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.main_held_item()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;off_held_item(): ObjectValue&amp;lt;Item&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the Item Object in the player&#039;s off hand.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.off_held_item()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;face(isLeftSide: Boolean?): ObjectValue&amp;lt;PlayerDialogueFaceProvider&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a ObjectValue of &amp;lt;code&amp;gt;[[https://gitlab.com/cable-mc/cobblemon/-/blob/main/common/src/main/kotlin/com/cobblemon/mod/common/api/dialogue/DialogueFace.kt PlayerDialogueFaceProvider]]&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;isLeftSide&amp;lt;/code&amp;gt; is true by default.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.face()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;swing_hand()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Swings the player&#039;s hand.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.swing_hand()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;food_level(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the food level of the player.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.food_level()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;saturation_level(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the saturation level of the player.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.saturation_level()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;tell(message: String, overlay: Boolean?)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Displays a message in the player&#039;s chat, and will overlay if &amp;lt;code&amp;gt;overlay&amp;lt;/code&amp;gt; is set to true.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.tell(&#039;Hello world!&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;teleport(x: Double, y: Double, z: Double, playParticleOptions: Boolean?)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Teleports the player to &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;. If &amp;lt;code&amp;gt;playParticleOptionss&amp;lt;/code&amp;gt; is true then particles will be displayed.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.teleport(0,0,0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;heal(amount: Double?)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Will heal a player by &amp;lt;code&amp;gt;amount&amp;lt;/code&amp;gt;, or to max health if unspecified.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.heal(5)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;environment(): MoLangEnvironment&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a MoLang environment with the query set as a &amp;lt;code&amp;gt;ObjectValue&amp;lt;Player&amp;gt;&amp;lt;/code&amp;gt; for this player.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.environment()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_player(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;p.player.is_player()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;run_command(command: String)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Runs a command as the player.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;run_command(&#039;/say Hello World!&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_party_at_full_health(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns if no Pokémon is able to heal, aka all is at full health.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.is_party_at_full_health()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;can_heal_at_healer(position: ArrayStruct&amp;lt;Int&amp;gt;): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if the block is not a healing machine or if the healing machine cannot heal the player&#039;s party. Otherwise returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.can_heal_at_healer(v.location)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;put_pokemon_in_healer(position: ArrayStruct&amp;lt;Int&amp;gt;): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Attempts to heal all Pokémon in the party at the specified healing machine. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if the block is not a healing machine or if the party cannot be healed. Otherwise returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.party.put_pokemon_in_healer(v.location)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;party(): ObjectValue&amp;lt;PartyStore&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a struct of the player&#039;s party store.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.party()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;pc(): ObjectValue&amp;lt;PCStore&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a struct of the player&#039;s PC store.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.pc()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;has_permission(permission: String, level: Int?)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the player has this permission at the specified &amp;lt;code&amp;gt;level&amp;lt;/code&amp;gt;, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;level&amp;lt;/code&amp;gt; is 4 at default.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.has_permission(&#039;command.pc&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;data(): VariableStruct&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a &amp;lt;code&amp;gt;VariableStruct&amp;lt;/code&amp;gt; from Cobblemon&#039;s Molang store for that player&#039;s UUID.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.data()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;save_data()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Saves to Cobblemon&#039;s Molang Store for that player&#039;s UUID.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.save_data()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;in_battle(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the player is in battle, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.in_battle()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;battle(): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a Struct CHECK TYPE if in battle, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.battle()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_npc_data(npc: MoValue): VariableStruct&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Get the NPC&#039;s data from the player&#039;s MoLang store. &amp;lt;code&amp;gt;npc&amp;lt;/code&amp;gt; can either be the NPC&#039;s UUID or an &amp;lt;code&amp;gt;ObjectValue&amp;lt;NPCEntity&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.get_npc_data(q.npc)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_npc_variable(npc: MoValue, variable: String): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Get a variable from the NPC&#039;s data from the player&#039;s MoLang store. &amp;lt;code&amp;gt;npc&amp;lt;/code&amp;gt; can either be the NPC&#039;s UUID or a &amp;lt;code&amp;gt;ObjectValue&amp;lt;NPCEntity&amp;gt;&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;variable&amp;lt;/code&amp;gt; is a string key. If the key is not in the NPC data or the variable is null it will return &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.get_npc_data(q.npc, &#039;fight_count&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;set_npc_data(npc: MoValue, variable: String, value: MoValue, saveAfterwards: Boolean?): DoubleValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Set a variable from the NPC&#039;s data from the player&#039;s MoLang store. &amp;lt;code&amp;gt;npc&amp;lt;/code&amp;gt; can either be the NPC&#039;s UUID or a &amp;lt;code&amp;gt;ObjectValue&amp;lt;NPCEntity&amp;gt;&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;variable&amp;lt;/code&amp;gt; is used as the key and &amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt; is used as the value. &amp;lt;code&amp;gt;saveAfterwards&amp;lt;/code&amp;gt; is true by default. Will return &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.set_npc_data(q.npc, &#039;fight_count&#039;, 1)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;pokedex(): ObjectValue&amp;lt;AbstractPokedexManager&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;AbstractPokedexManager&amp;gt;&amp;lt;/code&amp;gt; of the player&#039;s pokedex.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.player.pokedex()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Yes&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Registry_Functions&amp;diff=5762</id>
		<title>Molang Registry Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Registry_Functions&amp;diff=5762"/>
		<updated>2025-04-19T22:01:26Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Registry ObjectValue Functions==&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_in(tag: ResouceLocation): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if &amp;lt;code&amp;gt;tag&amp;lt;/code&amp;gt; is in the registry, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.registry.is_in(&#039;#cobblemon:guilded_chest&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_of(identifier: ResourceLocation): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if &amp;lt;code&amp;gt;identifier&amp;lt;/code&amp;gt; is in the registry, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.registry.is_of(&#039;minecraft:dirt&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Biome Functions==&lt;br /&gt;
Can use the Registry &amp;lt;code&amp;gt;ObjectValue&amp;lt;/code&amp;gt;. Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;Biome&amp;gt;&amp;lt;/code&amp;gt;.*&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|None :)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==World Functions==&lt;br /&gt;
Can use the Registry &amp;lt;code&amp;gt;ObjectValue&amp;lt;/code&amp;gt;. Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;Level&amp;gt;&amp;lt;/code&amp;gt;.*&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;game_time(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the game time in ticks.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.game_time()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;time_of_day(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the &amp;lt;code&amp;gt;dayTime&amp;lt;/code&amp;gt; in ticks.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.time_of_day()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;server(): QueryStruct&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a Server object if on a server, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.server()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_raining_at(x: Int, y: Int, z: Int): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Takes a block position and returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if it is raining there, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.is_raining_at(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_chunk_loaded_at(x: Int, y: Int, z: Int): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Takes a block position and returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the chunk containing the block is loaded, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.is_chunk_loaded_at(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_thundering(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the the world is thundering, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.is_thundering()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_raining(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the the world is raining, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.is_raining()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;set_block(x: Int, y: Int, z: Int, block: String): Double?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Take a block position and set it to be a block. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; and logs the unknown string if it&#039;s an invalid block. Check if world.set block returns anything&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.set_block(0, 0, 0, &#039;minecraft:dirt&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_block(x: Int, y: Int, z: Int): ObjectValue&amp;lt;Block&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Gets the block at the location &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.get_block(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;spawn_explosion(x: Double, y: Double, z: Double, range: Double, interaction: String?) Check if world.explode returns anything&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Spawns an explosion at &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt; with range of &amp;lt;code&amp;gt;range&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;interaction&amp;lt;/code&amp;gt; is a string of what kind of explosion it should be, such as &amp;lt;code&amp;gt;block&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;mob&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;tnt&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;trigger&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;none&amp;lt;/code&amp;gt;. Is &amp;lt;code&amp;gt;tnt&amp;lt;/code&amp;gt; by default.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.spawn_explosion(0, 0, 0, 3)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;spawn_lightning(x: Double, y: Double, z: Double): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Spawns a lightning bolt at the location &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.spawn_lightning(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;spawn_bedrock_particles(particle: String, x: Double, y: Double, z: Double, player: MoValue?) Double?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Spawns bedrock particles at the location &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;. When run on the server, if a &amp;lt;code&amp;gt;player&amp;lt;/code&amp;gt; value is specified (either a player object or a UUID) then only the &amp;lt;code&amp;gt;player&amp;lt;/code&amp;gt; specified will receive the packet, otherwise all nearby players will receive it. If run on a client then it will play the animation for only that player, ignoring the &amp;lt;code&amp;gt;player&amp;lt;/code&amp;gt; value, returning &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if the particle is not in the registry.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.spawn_bedrock_particles(&#039;ambient_shiny_particles&#039;, 0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_entities_around(x: Double, y: Double, z: Double, range: Double): ArrayStruct&amp;lt;MoValue&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a list of entities within &amp;lt;code&amp;gt;range&amp;lt;/code&amp;gt; of &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;. This list contains the most specific MoValue for an entity, either Player, PokemonEntity, NPCEntity, or a regular Entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.get_entities_around(0, 0, 0, 10)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Dimension Functions==&lt;br /&gt;
Can use the Registry &amp;lt;code&amp;gt;ObjectValue&amp;lt;/code&amp;gt;. Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;Dimension&amp;gt;&amp;lt;/code&amp;gt;.*&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|None :)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Block Functions==&lt;br /&gt;
Can use the Registry &amp;lt;code&amp;gt;ObjectValue&amp;lt;/code&amp;gt;. Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;Block&amp;gt;&amp;lt;/code&amp;gt;.*&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|None :)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Footnote: *Technically the type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;Holder&amp;lt;*&amp;gt;&amp;gt;&amp;lt;/code&amp;gt;, but for the purposes of this documentation &amp;lt;code&amp;gt;Holder&amp;lt;/code&amp;gt; has been omitted.&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Registry_Functions&amp;diff=5761</id>
		<title>Molang Registry Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Registry_Functions&amp;diff=5761"/>
		<updated>2025-04-19T21:59:05Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Registry ObjectValue Functions==&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_in(tag: ResouceLocation): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if &amp;lt;code&amp;gt;tag&amp;lt;/code&amp;gt; is in the registry, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.registry.is_in(&#039;#cobblemon:guilded_chest&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_of(identifier: ResourceLocation): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if &amp;lt;code&amp;gt;identifier&amp;lt;/code&amp;gt; is in the registry, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.registry.is_of(&#039;minecraft:dirt&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Biome Functions==&lt;br /&gt;
Can use the Registry &amp;lt;code&amp;gt;ObjectValue&amp;lt;/code&amp;gt;. Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;Biome&amp;gt;&amp;lt;/code&amp;gt;.*&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|None :)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==World Functions==&lt;br /&gt;
Can use the Registry &amp;lt;code&amp;gt;ObjectValue&amp;lt;/code&amp;gt;. Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;Level&amp;gt;&amp;lt;/code&amp;gt;.*&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;game_time(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the game time in ticks.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.game_time()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;time_of_day(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the &amp;lt;code&amp;gt;dayTime&amp;lt;/code&amp;gt; in ticks.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.time_of_day()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;server(): QueryStruct&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a Server object if on a server, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.server()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_raining_at(x: Int, y: Int, z: Int): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Takes a block position and returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if it is raining there, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.is_raining_at(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_chunk_loaded_at(x: Int, y: Int, z: Int): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Takes a block position and returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the chunk containing the block is loaded, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.is_chunk_loaded_at(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_thundering(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the the world is thundering, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.is_thundering()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_raining(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the the world is raining, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.is_raining()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;set_block(x: Int, y: Int, z: Int, block: String): Double?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Take a block position and set it to be a block. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; and logs the unknown string if it&#039;s an invalid block. Check if world.set block returns anything&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.set_block(0, 0, 0, &#039;minecraft:dirt&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_block(x: Int, y: Int, z: Int): ObjectValue&amp;lt;Block&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Gets the block at the location &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.get_block(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;spawn_explosion(x: Double, y: Double, z: Double, range: Double, interaction: String?) Check if world.explode returns anything&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Spawns an explosion at &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt; with range of &amp;lt;code&amp;gt;range&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;interaction&amp;lt;/code&amp;gt; is a string of what kind of explosion it should be, such as &amp;lt;code&amp;gt;block&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;mob&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;tnt&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;trigger&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;none&amp;lt;/code&amp;gt;. Is &amp;lt;code&amp;gt;tnt&amp;lt;/code&amp;gt; by default.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.spawn_explosion(0, 0, 0, 3)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;spawn_lightning(x: Double, y: Double, z: Double): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Spawns a lightning bolt at the location &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.spawn_lightning(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;spawn_bedrock_particles(particle: String, x: Double, y: Double, z: Double, player: MoValue?) Double?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Spawns bedrock particles at the location &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;. When run on the server, if a &amp;lt;code&amp;gt;player&amp;lt;/code&amp;gt; value is specified (either a player object or a UUID) then only the &amp;lt;code&amp;gt;player&amp;lt;/code&amp;gt; specified will receive the packet, otherwise all nearby players will receive it. If run on a client then it will play the animation for only that player, ignoring the &amp;lt;code&amp;gt;player&amp;lt;/code&amp;gt; value, returning &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if the particle is not in the registry.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.spawn_bedrock_particles(&#039;ambient_shiny_particles&#039;, 0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_entities_around(x: Double, y: Double, z: Double, range: Double): ArrayStruct&amp;lt;MoValue&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a list of entities within &amp;lt;code&amp;gt;range&amp;lt;/code&amp;gt; of &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;. This list contains the most specific MoValue for an entity, either Player, PokemonEntity, NPCEntity, or a regular Entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.get_entities_around(0, 0, 0, 10)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Footnote: *Technically the type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;Holder&amp;lt;*&amp;gt;&amp;gt;&amp;lt;/code&amp;gt;, but for the purposes of this documentation &amp;lt;code&amp;gt;Holder&amp;lt;/code&amp;gt; has been omitted.&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Registry_Functions&amp;diff=5760</id>
		<title>Molang Registry Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Registry_Functions&amp;diff=5760"/>
		<updated>2025-04-19T21:58:20Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Added Registry MoLang Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Registry ObjectValue Functions==&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_in(tag: ResouceLocation): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if &amp;lt;code&amp;gt;tag&amp;lt;/code&amp;gt; is in the registry, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.registry.is_in(&#039;#cobblemon:guilded_chest&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_of(identifier: ResourceLocation): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if &amp;lt;code&amp;gt;identifier&amp;lt;/code&amp;gt; is in the registry, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;v.registry.is_of(&#039;minecraft:dirt&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Biome Functions==&lt;br /&gt;
Can use the Registry &amp;lt;code&amp;gt;ObjectValue&amp;lt;/code&amp;gt;. Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;Biome&amp;gt;&amp;lt;/code&amp;gt;.*&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|None :)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==World Functions==&lt;br /&gt;
Can use the Registry &amp;lt;code&amp;gt;ObjectValue&amp;lt;/code&amp;gt;. Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;Level&amp;gt;&amp;lt;/code&amp;gt;.*&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;game_time(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the game time in ticks.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.game_time()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;time_of_day(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the &amp;lt;code&amp;gt;dayTime&amp;lt;/code&amp;gt; in ticks.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.time_of_day()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;server(): QueryStruct&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a Server object if on a server, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.server()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_raining_at(x: Int, y: Int, z: Int): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Takes a block position and returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if it is raining there, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.is_raining_at(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_chunk_loaded_at(x: Int, y: Int, z: Int): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Takes a block position and returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the chunk containing the block is loaded, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.is_chunk_loaded_at(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_thundering(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the the world is thundering, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.is_thundering()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_raining(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the the world is raining, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.is_raining()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;set_block(x: Int, y: Int, z: Int, block: String): Double?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Take a block position and set it to be a block. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; and logs the unknown string if it&#039;s an invalid block. Check if world.set block returns anything&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.set_block(0, 0, 0, &#039;minecraft:dirt&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_block(x: Int, y: Int, z: Int): ObjectValue&amp;lt;Block&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Gets the block at the location &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.get_block(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;spawn_explosion(x: Double, y: Double, z: Double, range: Double, interaction: String?) Check if world.explode returns anything&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Spawns an explosion at &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt; with range of &amp;lt;code&amp;gt;range&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;interaction&amp;lt;/code&amp;gt; is a string of what kind of explosion it should be, such as &amp;lt;code&amp;gt;block&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;mob&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;tnt&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;trigger&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;none&amp;lt;/code&amp;gt;. Is &amp;lt;code&amp;gt;tnt&amp;lt;/code&amp;gt; by default.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.spawn_explosion(0, 0, 0, 3)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;spawn_lightning(x: Double, y: Double, z: Double): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Spawns a lightning bolt at the location &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;. Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.spawn_lightning(0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;spawn_bedrock_particles(particle: String, x: Double, y: Double, z: Double, player: MoValue?) Double?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Spawns bedrock particles at the location &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;. When run on the server, if a &amp;lt;code&amp;gt;player&amp;lt;/code&amp;gt; value is specified (either a player object or a UUID) then only the &amp;lt;code&amp;gt;player&amp;lt;/code&amp;gt; specified will receive the packet, otherwise all nearby players will receive it. If run on a client then it will play the animation for only that player, ignoring the &amp;lt;code&amp;gt;player&amp;lt;/code&amp;gt; value, returning &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if the particle is not in the registry.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.spawn_bedrock_particles(&#039;ambient_shiny_particles&#039;, 0, 0, 0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;get_entities_around(x: Double, y: Double, z: Double, range: Double): ArrayStruct&amp;lt;MoValue&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a list of entities within &amp;lt;code&amp;gt;range&amp;lt;/code&amp;gt; of &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;. This list contains the most specific MoValue for an entity, either Player, PokemonEntity, NPCEntity, or a regular Entity.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.get_entities_around(0, 0, 0, 10)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_General_Functions&amp;diff=5759</id>
		<title>Molang General Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_General_Functions&amp;diff=5759"/>
		<updated>2025-04-19T21:55:15Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Added MoLang General Functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are the &amp;quot;Standard Functions.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable fixed-header&amp;quot;&lt;br /&gt;
!Name!!Description!!Usage&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;print(message: String)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Logs a message into the Minecraft console.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.print(&#039;Hello World!&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|set_query&lt;br /&gt;
|IDK&lt;br /&gt;
|IDK&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;replace(text: String, search: String, replace: String): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Replaces all occurrences of substring &amp;lt;code&amp;gt;search&amp;lt;/code&amp;gt; inside of &amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt; with the value of &amp;lt;code&amp;gt;replace&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.replace(&#039;Hexxo Worxd!&#039;, &#039;x&#039;, &#039;l&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_blank(value: MoValue): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Checks if the passed value is either a blank string (empty or only whitespace) or a double equal to only &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.isBlank(&#039; &#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;run_command(command: String): Double?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Runs a command, only works as a server. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if run as a client.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.run_command(&#039;say Hello World&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_int(val: MoValue): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if a value is an integer, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.is_int(1)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_number(val: MoValue): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; a value is a double, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.is_number(3.14)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;to_number(value: MoValue): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Tries to cast to a double, returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if the cast fails.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.to_number(&#039;3.14&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;to_int(val: MoValue): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Tries to cast to an integer, return &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; if it fails.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.to_int(&#039;3&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;to_string(val: MoValue): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Casts value to a string.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.to_string(123)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;do_effect_walks(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the config has &amp;lt;code&amp;gt;walkingInBattleAnimations&amp;lt;/code&amp;gt; set to true, otherwise returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.do_effect_walks(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;random(options: MoValue...)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Takes a list of values and chooses one by random.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.random(1, 2, 3, 4, 5)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;curve(curveName: String): ObjectValue&amp;lt;(Float) -&amp;gt; Float&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns a WaveFunction by the &amp;lt;code&amp;gt;curveName&amp;lt;/code&amp;gt;. ([https://gitlab.com/cable-mc/cobblemon/-/blob/main/common/src/main/kotlin/com/cobblemon/mod/common/client/render/models/blockbench/wavefunction/WaveFunction.kt?ref_type=heads#L102 Options found here])&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.curve(&#039;symmetrical&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;array(values: MoValue...): ArrayStruct&amp;lt;MoValue&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns an array from the parameters.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.array(1, 2, 3, 4, 5)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;run_script(identifier: String): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Runs a script from an &amp;lt;code&amp;gt;identifier&amp;lt;/code&amp;gt;. Returns the result of the script or &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if it fails.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.run_script(&#039;cobblemon:npc_battle_cooling_down&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;run_molang(expression: String): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Parses a MoLang expression and resolves it using the same context as the MoLang that called it.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.run_molang(&#039;q.print(\&#039;Hello World!\&#039;)&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;system_time_millis(): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the value of the system’s time in milliseconds.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.system_time_millis()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;date_local_time(): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Returns the current date in &amp;quot;DD/MM/YYYY&amp;quot; format.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.date_local_time()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;date_of(millis: Double): String&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Takes epoch milliseconds and formats it in &amp;quot;DD/MM/YYYY&amp;quot; format.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.date_of(1000000)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;date_is_after(dateA: String, dateB: String): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Takes two dates in format &amp;quot;DD/MM/YYYY&amp;quot; and returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the first date is after the second date.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.date_is_after(&#039;01/01/2024&#039;, &#039;02/01/2024&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Types&amp;diff=5758</id>
		<title>Molang Types</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Types&amp;diff=5758"/>
		<updated>2025-04-19T21:54:28Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: /* Types */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a table of types used in Cobblemon as documented, and the classes they extend from.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Type!!Description&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;MoValue&amp;lt;/code&amp;gt;&lt;br /&gt;
|Class&lt;br /&gt;
|This is the parent class of all values. Does nothing on it&#039;s own, can be treated like &amp;lt;code&amp;gt;Any&amp;lt;/code&amp;gt; in Kotlin.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;DoubleValue&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoValue&lt;br /&gt;
|Doubles are also used as Integers and Booleans.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;StringValue&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoValue&lt;br /&gt;
|Represents a String.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;MoStruct&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoValue&lt;br /&gt;
|Used like a map, can get or set using a string key.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;VariableStruct&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoStruct&lt;br /&gt;
|A struct that can get and set values.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;ArrayStruct&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of VariableStruct&lt;br /&gt;
|A struct that uses integers as keys. NOTE: For the purpose of documentation, ArrayStruct is notated as &amp;lt;code&amp;gt;ArrayStruct&amp;lt;Type&amp;gt;&amp;lt;/code&amp;gt; when only one type is expected. All &amp;lt;code&amp;gt;ArrayStruct&amp;lt;/code&amp;gt;s have no required types and can be mixed.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;QueryStruct&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoStruct&lt;br /&gt;
|A struct that contains functions that can be executed using get. Does not support setting values.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;ObjectValue&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of QueryStruct&lt;br /&gt;
|Cobblemon class used to implement many types. Can get the value of the type, get a double value using &amp;lt;code&amp;gt;asDouble()&amp;lt;/code&amp;gt;, and get a string value using &amp;lt;code&amp;gt;asString()&amp;lt;/code&amp;gt;. This is used for Players, Pokémon, Battles, and the rest of our implemented Minecraft and Cobblemon types. These may have special functions which are listed below.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Types&amp;diff=5757</id>
		<title>Molang Types</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Types&amp;diff=5757"/>
		<updated>2025-04-19T21:51:31Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Added MoLang Types page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Types=&lt;br /&gt;
&lt;br /&gt;
This is a table of types used in Cobblemon as documented, and the classes they extend from.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Type!!Description&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;MoValue&amp;lt;/code&amp;gt;&lt;br /&gt;
|Class&lt;br /&gt;
|This is the parent class of all values. Does nothing on it&#039;s own, can be treated like &amp;lt;code&amp;gt;Any&amp;lt;/code&amp;gt; in Kotlin.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;DoubleValue&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoValue&lt;br /&gt;
|Doubles are also used as Integers and Booleans.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;StringValue&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoValue&lt;br /&gt;
|Represents a String.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;MoStruct&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoValue&lt;br /&gt;
|Used like a map, can get or set using a string key.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;VariableStruct&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoStruct&lt;br /&gt;
|A struct that can get and set values.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;ArrayStruct&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of VariableStruct&lt;br /&gt;
|A struct that uses integers as keys. NOTE: For the purpose of documentation, ArrayStruct is notated as &amp;lt;code&amp;gt;ArrayStruct&amp;lt;Type&amp;gt;&amp;lt;/code&amp;gt; when only one type is expected. All &amp;lt;code&amp;gt;ArrayStruct&amp;lt;/code&amp;gt;s have no required types and can be mixed.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;QueryStruct&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoStruct&lt;br /&gt;
|A struct that contains functions that can be executed using get. Does not support setting values.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;ObjectValue&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of QueryStruct&lt;br /&gt;
|Cobblemon class used to implement many types. Can get the value of the type, get a double value using &amp;lt;code&amp;gt;asDouble()&amp;lt;/code&amp;gt;, and get a string value using &amp;lt;code&amp;gt;asString()&amp;lt;/code&amp;gt;. This is used for Players, Pokémon, Battles, and the rest of our implemented Minecraft and Cobblemon types. These may have special functions which are listed below.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=User:JPAKx4&amp;diff=5756</id>
		<title>User:JPAKx4</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=User:JPAKx4&amp;diff=5756"/>
		<updated>2025-04-19T18:04:34Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=User:JPAKx4&amp;diff=5755</id>
		<title>User:JPAKx4</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=User:JPAKx4&amp;diff=5755"/>
		<updated>2025-04-19T18:02:44Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: /* Types */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=MoLang Types=&lt;br /&gt;
Cobblemon uses [https://github.com/bedrockk/MoLang Bedrockk MoLang] to parse and execute MoLang. This is a table of types used in Cobblemon as documented, and the class it extends from.&lt;br /&gt;
&lt;br /&gt;
=MoLang Functions=&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Type!!Description&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;MoValue&amp;lt;/code&amp;gt;&lt;br /&gt;
|Class&lt;br /&gt;
|This is the parent class of all values. Does nothing on it&#039;s own, can be treated like &amp;lt;code&amp;gt;Any&amp;lt;/code&amp;gt; in Kotlin.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;DoubleValue&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoValue&lt;br /&gt;
|Doubles are also used as Integers and Booleans.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;StringValue&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoValue&lt;br /&gt;
|Represents a String.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;MoStruct&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoValue&lt;br /&gt;
|Used like a map, can get or set using a string key.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;VariableStruct&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoStruct&lt;br /&gt;
|A struct that can get and set values.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;ArrayStruct&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of VariableStruct&lt;br /&gt;
|A struct that uses integers as keys. NOTE: For the purpose of documentation, ArrayStruct is notated as &amp;lt;code&amp;gt;ArrayStruct&amp;lt;Type&amp;gt;&amp;lt;/code&amp;gt; when only one type is expected. All &amp;lt;code&amp;gt;ArrayStruct&amp;lt;/code&amp;gt;s have no required types and can be mixed.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;QueryStruct&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoStruct&lt;br /&gt;
|A struct that contains functions that can be executed using get. Does not support setting values.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;ObjectValue&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of QueryStruct&lt;br /&gt;
|Cobblemon class used to implement many types. Can get the value of the type, get a double value using &amp;lt;code&amp;gt;asDouble()&amp;lt;/code&amp;gt;, and get a string value using &amp;lt;code&amp;gt;asString()&amp;lt;/code&amp;gt;. This is used for Players, Pokémon, Battles, and the rest of our implemented Minecraft and Cobblemon types. These may have special functions which are listed below.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=User:JPAKx4&amp;diff=5754</id>
		<title>User:JPAKx4</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=User:JPAKx4&amp;diff=5754"/>
		<updated>2025-04-19T18:02:29Z</updated>

		<summary type="html">&lt;p&gt;JPAKx4: Added MoLang Types page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Types=&lt;br /&gt;
Cobblemon uses [https://github.com/bedrockk/MoLang Bedrockk MoLang] to parse and execute MoLang. This is a table of types used in Cobblemon as documented, and the class it extends from.&lt;br /&gt;
&lt;br /&gt;
=MoLang Functions=&lt;br /&gt;
{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;br /&gt;
!Name!!Type!!Description&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;MoValue&amp;lt;/code&amp;gt;&lt;br /&gt;
|Class&lt;br /&gt;
|This is the parent class of all values. Does nothing on it&#039;s own, can be treated like &amp;lt;code&amp;gt;Any&amp;lt;/code&amp;gt; in Kotlin.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;DoubleValue&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoValue&lt;br /&gt;
|Doubles are also used as Integers and Booleans.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;StringValue&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoValue&lt;br /&gt;
|Represents a String.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;MoStruct&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoValue&lt;br /&gt;
|Used like a map, can get or set using a string key.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;VariableStruct&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoStruct&lt;br /&gt;
|A struct that can get and set values.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;ArrayStruct&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of VariableStruct&lt;br /&gt;
|A struct that uses integers as keys. NOTE: For the purpose of documentation, ArrayStruct is notated as &amp;lt;code&amp;gt;ArrayStruct&amp;lt;Type&amp;gt;&amp;lt;/code&amp;gt; when only one type is expected. All &amp;lt;code&amp;gt;ArrayStruct&amp;lt;/code&amp;gt;s have no required types and can be mixed.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;QueryStruct&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of MoStruct&lt;br /&gt;
|A struct that contains functions that can be executed using get. Does not support setting values.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;ObjectValue&amp;lt;/code&amp;gt;&lt;br /&gt;
|Subclass of QueryStruct&lt;br /&gt;
|Cobblemon class used to implement many types. Can get the value of the type, get a double value using &amp;lt;code&amp;gt;asDouble()&amp;lt;/code&amp;gt;, and get a string value using &amp;lt;code&amp;gt;asString()&amp;lt;/code&amp;gt;. This is used for Players, Pokémon, Battles, and the rest of our implemented Minecraft and Cobblemon types. These may have special functions which are listed below.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
</feed>