<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sat Jan 11 07:24:03 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[BDS-3080] Client Script works but Server Script doesn&apos;t</title>
                <link>https://bugs.mojang.com/browse/BDS-3080</link>
                <project id="11700" key="BDS">Bedrock Dedicated Server</project>
                    <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I am running a bedrock dedicated server. I am tapping into Scripting API to learn about its possibilities.&lt;/p&gt;

&lt;p&gt;I have created an addon which works perfectly fine on the local game copy, but it fails to fully operate on the server. The behaviour is quite strange, so I searched for a resolution but to no avail.&lt;/p&gt;

&lt;p&gt;When I say fully, I mean that the Client Script side works fine, but the Server Script side does not respond at all. As if it didn&apos;t exist.&lt;/p&gt;

&lt;p&gt;I tried a few variants finally resorting to the bare minimum which simply listens for an event and then displays a message in the chat. That didn&apos;t work either.&lt;/p&gt;

&lt;p&gt;Again, the Client Script &lt;b&gt;works&lt;/b&gt; and if I call a chat message in the &quot;minecraft:client_entered_world&quot; event, it shows just fine.&#160;&lt;/p&gt;

&lt;p&gt;I have been pulling my hairs out for a few days now trying to find the root of the issue. Then I waved a white flag and came here.&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;I checked server file permissions to make sure the server can execute all its files.&lt;/li&gt;
	&lt;li&gt;I tried to run the addon from &lt;span class=&quot;error&quot;&gt;&amp;#91;server&amp;#93;&lt;/span&gt;/behavior_packs, &lt;span class=&quot;error&quot;&gt;&amp;#91;server&amp;#93;&lt;/span&gt;/worlds/&lt;span class=&quot;error&quot;&gt;&amp;#91;world&amp;#93;&lt;/span&gt;/behavior_packs&lt;/li&gt;
	&lt;li&gt;I experimented with versions and other settings in JSON files e.g. valid_known_packs.json or&#160;world_behavior_packs.json&lt;/li&gt;
	&lt;li&gt;I tried installing the addon manually but also importing the world from the local game copy to the server&lt;/li&gt;
	&lt;li&gt;I enabled/disable the experimental game mode on the server.&lt;/li&gt;
	&lt;li&gt;... and everything in between.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Noting did the trick. Below I attach my code and server details so you can join in and see yourself.&lt;/p&gt;

&lt;p&gt;What am I missing?&lt;/p&gt;
&lt;div class=&quot;panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;Addon ZIP&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot;&gt;
&lt;p&gt;&lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://bugs.mojang.com/secure/attachment/263088/263088_Kox.zip&quot; title=&quot;Kox.zip attached to BDS-3080&quot;&gt;Kox.zip&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://bugs.mojang.com/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;Server Details&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot;&gt;
&lt;p&gt;Address: 52.16.178.68&lt;/p&gt;

&lt;p&gt;Port: 25655&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;client.js&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot;&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt;&#160;system&#160;=&#160;client.registerSystem(0,&#160;0);

system.initialize&#160;=&#160;function()&#160;{
&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.listenForEvent(&lt;span class=&quot;code-quote&quot;&gt;&quot;minecraft:client_entered_world&quot;&lt;/span&gt;,&#160;(eventData)&#160;=&amp;gt;&#160;&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.onStartSetup(eventData));
&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.registerEventData(&lt;span class=&quot;code-quote&quot;&gt;&quot;Kox:startSetup&quot;&lt;/span&gt;,&#160;{});
};

system.onStartSetup&#160;=&#160;function(eventData)&#160;{
let&#160;playerData&#160;=&#160;&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.createEventData(&lt;span class=&quot;code-quote&quot;&gt;&quot;Kox:startSetup&quot;&lt;/span&gt;);
playerData.data&#160;=&#160;eventData.data;
&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.broadcastEvent(&lt;span class=&quot;code-quote&quot;&gt;&quot;Kox:startSetup&quot;&lt;/span&gt;,&#160;playerData);
};&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;server.js&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot;&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;&#160;system&#160;=&#160;server.registerSystem(0,&#160;0);

system.initialize&#160;=&#160;function&#160;()&#160;{
&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.listenForEvent(&lt;span class=&quot;code-quote&quot;&gt;&quot;Kox:startSetup&quot;&lt;/span&gt;,&#160;eventData&#160;=&amp;gt;&#160;&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.onStartServerSetup(eventData));
};

system.onStartServerSetup&#160;=&#160;function&#160;(eventData)&#160;{
let&#160;chatEventData&#160;=&#160;&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.createEventData(&lt;span class=&quot;code-quote&quot;&gt;&quot;minecraft:display_chat_event&quot;&lt;/span&gt;);
chatEventData.data.message&#160;=&#160;&lt;span class=&quot;code-quote&quot;&gt;&quot;Yes,&#160;I&#160;am&#160;here!&quot;&lt;/span&gt;;
&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.broadcastEvent(&lt;span class=&quot;code-quote&quot;&gt;&quot;minecraft:display_chat_event&quot;&lt;/span&gt;,&#160;chatEventData);
};&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment>Amazon Linux, JavaScript</environment>
        <key id="287333">BDS-3080</key>
            <summary>Client Script works but Server Script doesn&apos;t</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="7">Invalid</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="Temesz">Tomasz Lisiecki</reporter>
                        <labels>
                    </labels>
                <created>Tue, 4 Feb 2020 16:09:45 +0100</created>
                <updated>Sun, 28 Nov 2021 20:06:55 +0100</updated>
                            <resolved>Tue, 11 Feb 2020 14:38:37 +0100</resolved>
                                    <version>1.14.0.9</version>
                                                            <votes>1</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="1116945" author="JIRAUSER568064" created="Sun, 28 Nov 2021 20:06:55 +0100"  >&lt;p&gt;There are two key points I&apos;d like to add to this.&lt;/p&gt;

&lt;p&gt;First, it is unlikely that this bug would be fixed. The Scripting API has hardly been updated, and given the GameTests that the team has been working on, the Scripting API is mostly useless. Developers from Mojang have also stated during a &lt;a href=&quot;https://wiki.bedrock.dev/scripting/gametest-qna.html#old-scripting-api&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;GameTest Q+A&lt;/a&gt; that there would be plans to remove the Scripting API entirely.&lt;/p&gt;

&lt;p&gt;Second, relating to the bug report, notice that this report was written for the &lt;em&gt;Linux/Ubuntu&lt;/em&gt; distribution of the BDS software. Throughout many tests and discussions, the add-on community noticed that server scripts did in fact work on the &lt;em&gt;Windows&lt;/em&gt; distribution of BDS, but did not work on the &lt;em&gt;Linux&lt;/em&gt;&#160;version. Additionally, as Realms use the Linux version, server scripts did not work on realms either. While it has been marked as Incomplete, the best bug report I can find that mentions this as well is &lt;a href=&quot;https://bugs.mojang.com/browse/BDS-11490&quot; title=&quot;Addon server scripts not loaded by BDS if server is run on a linux distro&quot; class=&quot;issue-link&quot; data-issue-key=&quot;BDS-11490&quot;&gt;&lt;del&gt;BDS-11490&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="632815" author="ionicecko" created="Wed, 12 Feb 2020 00:15:23 +0100"  >&lt;p&gt;Hi Paul,&lt;/p&gt;

&lt;p&gt;That&apos;s not the case at all, I&apos;m trying to work through 1400 BDS tickets at the moment (and most of us are volunteers) and if this one is a mistake please let me know that I can sort it. I had a watch on this one specifically to keep an eye on any responses.&lt;/p&gt;

&lt;p&gt;The issue appeared to me to be a request for help with how to get scripting working (tech support) rather than a bug report. If you believe that&apos;s not the case please let me know and I&apos;m happy to get it reviewed.&lt;/p&gt;

&lt;p&gt;Ionic&lt;/p&gt;</comment>
                            <comment id="632692" author="paulk" created="Tue, 11 Feb 2020 17:37:55 +0100"  >&lt;p&gt;Sorry your bug report has been ignored by the team at Microsoft, Tomasz. You wrote a well-researched bug report.&lt;/p&gt;

&lt;p&gt;As far as I can tell from my own testing (a few months ago) client-side scripts work with Bedrock Dedicated Server, but server-side scripts do not. It&apos;s not clear to me why this is the case (a bug? or not implemented?). I told myself I&apos;d revisit the issue in 6-12 months and see if Microsoft had made any progress.&lt;/p&gt;

&lt;p&gt;I wish you luck in finding a better place than this site to find support. The Discord chat is incomprehensible (to me). The other community forums are almost as bad. I believe, back when I was testing, that Reddit was the best place I could find for intelligible and compassionate support.&lt;/p&gt;</comment>
                            <comment id="632552" author="ionicecko" created="Tue, 11 Feb 2020 13:31:54 +0100"  >&lt;p&gt;&lt;b&gt;Thank you for your report!&lt;/b&gt;&lt;br/&gt;
However, this issue is &lt;font color=&quot;#FF5722&quot;&gt;&lt;b&gt;Invalid&lt;/b&gt;&lt;/font&gt;.&lt;/p&gt;

&lt;p&gt;This is a technical support issue; this site is for bug reports only. We do not have the resources to provide you with technical support.&lt;br/&gt;
Please contact the &lt;b&gt;community support&lt;/b&gt;, linked below.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Quick Links&lt;/b&gt;:&lt;br/&gt;
&#128211; &lt;a href=&quot;https://bugs.mojang.com/projects/BDS/summary&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;Issue Guidelines&lt;/a&gt; &amp;#8211; &#128172; &lt;a href=&quot;http://hopper.minecraft.net/help/technical-support-resources/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Community Support&lt;/a&gt; &amp;#8211; &#128231; &lt;a href=&quot;https://help.minecraft.net/hc/en-us/requests/new&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Customer Support&lt;/a&gt; &amp;#8211; &#128214; &lt;a href=&quot;https://minecraft.gamepedia.com/Minecraft_Wiki&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Game Wiki&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="263088" name="Kox.zip" size="49857" author="Temesz" created="Tue, 4 Feb 2020 16:08:06 +0100"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                    <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i17fmv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>