MoveToBlockGoal trouble

Started by D793Super on Sun, 05/07/2023 - 18:14

Topic category: Help with modding (Java Edition)

Last seen on 16:55, 8. May 2023
Joined May 2023

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
MoveToBlockGoal trouble
Sun, 05/07/2023 - 18:14

Good Day.

I am hopiing to get some help.

So i am trying to use the MCreator Platform to simplify most of the coding i need to be done for modding minecraft, and it seems powerful enough to do it, But When i try to modify the code, or more specifically try to add a MoveToBlockGoal command in the goal section, The mod fails to compile.

Now i don't know if this is an error from the Tools side, or if the goal command is just obsolete, but i was hoping to get some help otherwise if help can be spared, Here is my code:


this.goalSelector.addGoal(4, new MoveToBlockGoal(TestainestModBlocks.NEST_BLOCK.get(),(double) 1,(int) 10,(int) 3));

Both those are present in my code, but refuse to fire.