Move a entity with a procedure

Started by Atten007 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Move a entity with a procedure

Hello,

I'm currently working on a new mod named "MinecraftBots" for Forge 1.19.2 and Fabric 1.19.2 (will upgrade to 1.20.1 after Forge for this version comes out), with which the Minecraft players can learn how to program robots inside Minecraft: Java Edition. Now I'm programming the procedure for walking the robot one block forwards. Unfortunately, I don't know how to move a entity (in this case the robot) one block forward with a procedure. Can someone please help me with this?

Greetings,

Atten007 :)

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you could move a entity by…
Sun, 07/02/2023 - 20:26

you could move a entity by taking the execute commmand block and typing /tp (whatever) ~ ~ ~3 

you can mess around with it its just a example its not correct but it teleports the entity 3 blocks

 

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can make it move by…
Mon, 08/21/2023 - 17:17

You can make it move by using "Attempt to make (Event/target entity) find path and move to x: (x) y: (y) z: (z) with speed factor (1)" procedure block, that should work i think.