<?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=UnexpectedlySpicy</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=UnexpectedlySpicy"/>
	<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php/Special:Contributions/UnexpectedlySpicy"/>
	<updated>2026-05-09T15:38:16Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.10</generator>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang&amp;diff=8233</id>
		<title>Molang</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang&amp;diff=8233"/>
		<updated>2026-01-29T03:53:53Z</updated>

		<summary type="html">&lt;p&gt;UnexpectedlySpicy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Cobblemon uses a [https://gitlab.com/cable-mc/molang modified] version of [https://github.com/bedrockk/MoLang Bedrockk MoLang] to parse and execute MoLang. Updated as of 1.6.1, with many pages being WIP.&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>UnexpectedlySpicy</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_General_Functions&amp;diff=7646</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=7646"/>
		<updated>2025-12-08T00:51:21Z</updated>

		<summary type="html">&lt;p&gt;UnexpectedlySpicy: &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. Will return &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if successful.&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>UnexpectedlySpicy</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang&amp;diff=7633</id>
		<title>Molang</title>
		<link rel="alternate" type="text/html" href="https://wiki.cobblemon.com/index.php?title=Molang&amp;diff=7633"/>
		<updated>2025-12-07T04:27:50Z</updated>

		<summary type="html">&lt;p&gt;UnexpectedlySpicy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Cobblemon uses a [https://gitlab.com/cable-mc/molang modified] version of [https://github.com/bedrockk/MoLang Bedrockk MoLang] to parse and execute MoLang. Updated as of 1.6.1, with some pages updated for 1.7.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>UnexpectedlySpicy</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Registry_Functions&amp;diff=7632</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=7632"/>
		<updated>2025-12-07T04:22:16Z</updated>

		<summary type="html">&lt;p&gt;UnexpectedlySpicy: /* World 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;is_time_of_day(timeOfDay: 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 provided &amp;lt;code&amp;gt;String&amp;lt;/code&amp;gt; corresponds to a registered time range, such as &amp;lt;code&amp;gt;day&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;night&amp;lt;/code&amp;gt;. Otherwise, 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.world.is_time_of_day(&#039;morning&#039;)&amp;lt;/syntaxhighlight&amp;gt;&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_snowing_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 snowing 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_snowing_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;1.0&amp;lt;/code&amp;gt; if the block was set successfully. Will return &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; and log the unknown string if it&#039;s an invalid block or already set to the specified &amp;lt;code&amp;gt;block&amp;lt;/code&amp;gt;.&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;is_air(x: Double, y: Double, z: Double): 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 block state is air, 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_air(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_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?): Double&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. Will return &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if successful, 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.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. Will return &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if ran successfully, otherwise 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.world.spawn_bedrock_particles(&#039;cobblemon:cherry_leaves_particle&#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;spawn_pokemon(x: Int, y: Int, z: Int, properties: String): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Takes a block position and spawns a Pokémon at the given position with the provided &amp;lt;code&amp;gt;properties&amp;lt;/code&amp;gt; String. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;PokemonEntity&amp;gt;&amp;lt;/code&amp;gt; of the spawned Pokémon. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if the spawn was not successful.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.spawn_pokemon(0, 0, 0, &#039;bidoof lvl=100&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;spawn_npc(x: Double, y: Double, z: Double, npcClass: String, level: Int): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Takes a block position and spawns an NPC at that position with the provided &amp;lt;code&amp;gt;npcClass&amp;lt;/code&amp;gt; and NPC &amp;lt;code&amp;gt;level&amp;lt;/code&amp;gt;. The NPC &amp;lt;code&amp;gt;level&amp;lt;/code&amp;gt; is utilized for party pool customization. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;NPCEntity&amp;gt;&amp;lt;/code&amp;gt; of the spawned NPC. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if the spawn was not successful.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.spawn_npc(0, 0, 0, &#039;sacchi&#039;, 1)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;play_sound_on_server(sound: String, soundSource: String, x: Double, y: Double, z: Double, player: MoValue?, volume: Double?, pitch: Double?): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Plays the given &amp;lt;code&amp;gt;sound&amp;lt;/code&amp;gt; on the &amp;lt;code&amp;gt;soundSource&amp;lt;/code&amp;gt; track 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;. 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 player will receive the packet, otherwise all nearby players will receive it. Giving &amp;lt;code&amp;gt;volume&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;pitch&amp;lt;/code&amp;gt; will change their respective values, but will each default to &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if no value is provided. Will return &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the sound was played successfully, otherwise 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.world.play_sound_on_server(&#039;cobblemon:pokemon.bidoof.cry&#039;, &#039;master&#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;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_healer_in_use(position: ArrayStruct&amp;lt;MoValue&amp;gt;): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Takes a block position as an &amp;lt;code&amp;gt;ArrayStruct&amp;lt;MoValue&amp;gt;&amp;lt;/code&amp;gt; and checks the healing machine at the stated position. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if a healer exists and it is not being utilized. Otherwise, returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if no healer is found or if it is in use. &lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.is_healer_in_use(q.array(0, 0, 0))&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>UnexpectedlySpicy</name></author>
	</entry>
	<entry>
		<id>https://wiki.cobblemon.com/index.php?title=Molang_Registry_Functions&amp;diff=7631</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=7631"/>
		<updated>2025-12-07T04:20:02Z</updated>

		<summary type="html">&lt;p&gt;UnexpectedlySpicy: /* World 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;is_time_of_day(timeOfDay: 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 provided &amp;lt;code&amp;gt;String&amp;lt;/code&amp;gt; corresponds to a registered time range, such as &amp;lt;code&amp;gt;day&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;night&amp;lt;/code&amp;gt;. Otherwise, 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.world.is_time_of_day(&#039;morning&#039;)&amp;lt;/syntaxhighlight&amp;gt;&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_snowing_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 snowing 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_snowing_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;1.0&amp;lt;/code&amp;gt; if the block was set successfully. Will return &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; and log the unknown string if it&#039;s an invalid block or already set to the specified &amp;lt;code&amp;gt;block&amp;lt;/code&amp;gt;.&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;is_air(x: Double, y: Double, z: Double): 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 block state is air, 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_air(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_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?): Double&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. Will return &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if successful, 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.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. Will return &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if ran successfully, otherwise 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.world.spawn_bedrock_particles(&#039;cobblemon:cherry_leaves_particle&#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;spawn_pokemon(x: Int, y: Int, z: Int, properties: String): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Takes a block position and spawns a Pokémon at the given position with the provided &amp;lt;code&amp;gt;properties&amp;lt;/code&amp;gt; String. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;PokemonEntity&amp;gt;&amp;lt;/code&amp;gt; of the spawned Pokémon. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if the spawn was not successful.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.spawn_pokemon(0, 0, 0, &#039;bidoof lvl=100&#039;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;spawn_npc(x: Double, y: Double, z: Double, npcClass: String, level: Int): MoValue&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Takes a block position and spawns an NPC at that position with the provided &amp;lt;code&amp;gt;npcClass&amp;lt;/code&amp;gt; and NPC &amp;lt;code&amp;gt;level&amp;lt;/code&amp;gt;. The NPC &amp;lt;code&amp;gt;level&amp;lt;/code&amp;gt; is utilized for party pool customization. Returns an &amp;lt;code&amp;gt;ObjectValue&amp;lt;NPCEntity&amp;gt;&amp;lt;/code&amp;gt; of the spawned NPC. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if the spawn was not successful.&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.spawn_npc(0, 0, 0, &#039;sacchi&#039;, 1)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;play_sound_on_server(sound: String, soundSource: String, x: Double, y: Double, z: Double, player: MoValue?, volume: Double?, pitch: Double?): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|.Plays the given &amp;lt;code&amp;gt;sound&amp;lt;/code&amp;gt; on the &amp;lt;code&amp;gt;soundSource&amp;lt;/code&amp;gt; track 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;. 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 player will receive the packet, otherwise all nearby players will receive it. Giving &amp;lt;code&amp;gt;volume&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;pitch&amp;lt;/code&amp;gt; will change their respective values, but will each default to &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if no value is provided. Will return &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if the sound was played successfully, otherwise 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.world.play_sound_on_server(&#039;cobblemon:pokemon.bidoof.cry&#039;, &#039;master&#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;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;is_healer_in_use(position: ArrayStruct&amp;lt;MoValue&amp;gt;): Double&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Takes a block position as an &amp;lt;code&amp;gt;ArrayStruct&amp;lt;MoValue&amp;gt;&amp;lt;/code&amp;gt; and checks the healing machine at the stated position. Returns &amp;lt;code&amp;gt;0.0&amp;lt;/code&amp;gt; if a healer exists and it is not being utilized. Otherwise, returns &amp;lt;code&amp;gt;1.0&amp;lt;/code&amp;gt; if no healer is found or if it is in use. &lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;kotlin&amp;quot;&amp;gt;q.world.is_healer_in_use(q.array(0, 0, 0))&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>UnexpectedlySpicy</name></author>
	</entry>
</feed>