Problems with Collides...

Started by Quentindray74 on

Topic category: Help with MCreator software

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Problems with Collides...

Hello everyone! Okay, here's my problem:

I'm trying to make a Super Mario Mod! I've created the question Block which is fine, but, when i check 'block is collidable", so I added an event result when the player colides the block, which is replace the actual block by another one, the fact is that, i want it IF the player has (for the moment, a diamond one) custom helmet, but, it generates an error when it compiles it, I'll show you in a video.

https://www.youtube.com/watch?v=6dqcPqLB65g&feature=youtu.be

Without any functions, it works, but I want to.

 

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks It works!!! 
Sat, 07/01/2017 - 09:11

Thanks It works!!! 

But now, My problem is, when i jump without the helmet, my player goes inside the block, Like it is not a block but an entity, any suggestions?

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just put super
Sat, 07/01/2017 - 09:26

Just put super.onEntityCollidedWithBlock(world,pos,state,entity); before the if(entity instanceof EntityPlayer){

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay nvm I found! Thank you
Sun, 07/02/2017 - 08:39

Okay nvm I found! Thank you so much it works, now I want that only the head of the player can change the block, not the entire body, How to I do?

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Checking if the player is in
Sun, 07/02/2017 - 09:16

Checking if the player is in the air could do the trick

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No finally, It doesn't work,
Sun, 07/02/2017 - 13:58

No finally, It doesn't work, I still can go through the block without the helmet 

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, I looked into the code
Sun, 07/02/2017 - 14:13

Ok, I looked into the code and I am pretty sure that you ticked the option to make it "uncollidable" , because the returned collider is null.

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The option "Isn't Collidable?
Mon, 07/03/2017 - 11:03

The option "Isn't Collidable?" was unticked, i'll try tick it.

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And It doesn't work...
Tue, 07/04/2017 - 19:52

And It doesn't work...