Entity spawns at servers spawn instead of set location

Started by CBJaxxx on

Topic category: Help with modding (Java Edition)

Last seen on 20:05, 11. Jul 2024
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity spawns at servers spawn instead of set location
Tue, 03/28/2023 - 23:39 (edited)

I created a missile system here is how it works.

I made a missile block you can place, when you right click it opens up a launch gui where you can set the x, y, and z coordinates then you can click a launch button to trigger the launch procedure.

the launch procedure spawns the missile_impact at the x, y, z coordinates from the x, y, and z textfields in the gui, then the gui will close and the missile block will be removed and the missile_launched entity will be spawned at the blocks location.

the issue I'm having is that my mod works perfectly in singleplayer the missile drops at the set coordinates, however when I launch my mod on a server the missile_impact entity will land at spawn instead of the set coordinates.

Please help me fix this, launch procedure picture linked below.

Astra_Warfare [C:\Users\codeb\MCreatorWorkspaces\astro_warfare] - Launch (Procedure) - MCreator 2023.1 (gyazo.com)

below is a picture of the Launch GUI that is triggered on missile block right clicked.

Astra_Warfare [C:\Users\codeb\MCreatorWorkspaces\astro_warfare] - LaunchGUI (GUI) - MCreator 2023.1 (gyazo.com)

Edited by CBJaxxx on Tue, 03/28/2023 - 23:39