How do I make it so an Entity does not move when I push it?

Started by Yisus_2 on Tue, 03/02/2021 - 04:02

Topic category: Help with MCreator software

Last seen on 02:50, 1. Jun 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I make it so an Entity does not move when I push it?
Tue, 03/02/2021 - 04:02

I am making a rideable rocket entity, but when I push it slightly it moves a lot and does not feel like an actual rocket. Is there any form to make it solid and stable? I dont want the entity to move if it collides with a player.

Last seen on 19:18, 4. Jun 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
just make it stay in place…
Sun, 03/28/2021 - 16:45

just make it stay in place or swap it for a no ai version that can't move and then on lift of change it to an entity with ai. you could also turn on and of colision

Last seen on 10:19, 5. Apr 2022
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I had to do the same in my…
Thu, 08/19/2021 - 17:27

I had to do the same in my mod and 'Disable collision box' doesn't seem to work as supposed so I had to edit the code and add these lines:

	@Override
	protected void collideWithEntity(Entity p_82167_1_) {
	}

	@Override
	public void applyEntityCollision(Entity entityIn) {
	}

You can add them between the other @Override ones by selecting your Entity and clicking here: https://imgur.com/IGrQPmK
Then you just have to find a spot for those lines and place them there like in this example: https://imgur.com/Q2AXIM7
But I warn you, every change you make in the Entity using the MCreator menu will reset the entire code, so you will need to paste it again after that.

Hope it helps!