<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.cobblemon.com/index.php?action=history&amp;feed=atom&amp;title=Molang_Player_Functions</id>
	<title>Molang Player Functions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cobblemon.com/index.php?action=history&amp;feed=atom&amp;title=Molang_Player_Functions"/>
	<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Player_Functions&amp;action=history"/>
	<updated>2026-05-10T06:58:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.10</generator>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Player_Functions&amp;diff=5766&amp;oldid=prev</id>
		<title>JPAKx4: Add link to Entity Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Player_Functions&amp;diff=5766&amp;oldid=prev"/>
		<updated>2025-04-19T22:08:52Z</updated>

		<summary type="html">&lt;p&gt;Add link to Entity Functions&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:08, 19 April 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&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;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Players can also use &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Molang Entity Functions|&lt;/ins&gt;entity functions&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/ins&gt;. Type is &amp;lt;code&amp;gt;ObjectValue&amp;lt;Player&amp;gt;&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Player_Functions&amp;diff=5764&amp;oldid=prev</id>
		<title>JPAKx4: /* Player Functions */</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Player_Functions&amp;diff=5764&amp;oldid=prev"/>
		<updated>2025-04-19T22:05:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Player Functions&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:05, 19 April 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Player Functions==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&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;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&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;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable fixed-header sortable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;!Name!!Description!!Usage!!Server Only&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;!Name!!Description!!Usage!!Server Only&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>JPAKx4</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Player_Functions&amp;diff=5763&amp;oldid=prev</id>
		<title>JPAKx4: Added Molang Player Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang_Player_Functions&amp;diff=5763&amp;oldid=prev"/>
		<updated>2025-04-19T22:04:10Z</updated>

		<summary type="html">&lt;p&gt;Added Molang Player Functions&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&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&amp;#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&amp;#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&amp;#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&amp;#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(&amp;#039;Hello world!&amp;#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(&amp;#039;/say Hello World!&amp;#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&amp;#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&amp;#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&amp;#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(&amp;#039;command.pc&amp;#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&amp;#039;s Molang store for that player&amp;#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&amp;#039;s Molang Store for that player&amp;#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&amp;#039;s data from the player&amp;#039;s MoLang store. &amp;lt;code&amp;gt;npc&amp;lt;/code&amp;gt; can either be the NPC&amp;#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&amp;#039;s data from the player&amp;#039;s MoLang store. &amp;lt;code&amp;gt;npc&amp;lt;/code&amp;gt; can either be the NPC&amp;#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, &amp;#039;fight_count&amp;#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&amp;#039;s data from the player&amp;#039;s MoLang store. &amp;lt;code&amp;gt;npc&amp;lt;/code&amp;gt; can either be the NPC&amp;#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, &amp;#039;fight_count&amp;#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&amp;#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>
</feed>