Entity does not execute command

Started by AlphaMods on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity does not execute command
Sat, 06/03/2023 - 16:32 (edited)

I am making a minecraft mod with different planets and cargo rockets. Those cargo rockets can be placed and "tamed" and then they should fly to a port-block. My problem is that i use commands to teleport the rocket (because i think it is a simple way, maybe there are other ways to do it idk) but the rocket just falls down to where it was placed. 
 

I added a "Send to chat"-Element to see if the command is wrong but if i use the command manually it works. So does anyone know where the mistake is? Or does it even work?

 

 

The variables are also correct. There is one variable for the dimension (planet) and one with coordinates (it is called port_1 in the image).

 

my procedure

 

 

Edited by AlphaMods on Sat, 06/03/2023 - 16:32
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I solved it. If you have the…
Sun, 06/25/2023 - 10:07

I solved it. If you have the same problem: entities can't execute commands (they do not have the rights).
So it is not possible.

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay so what is the solution?
Sat, 11/11/2023 - 09:22

Okay so what is the solution?

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The solution here is to use…
Wed, 07/10/2024 - 06:08

The solution here is to use the "execute command / _ at x: _ y: _ z: _" block because it does not require an entity to be present for the command to run. This way, permissions to run commands are not necessary.