Help me creating custom blocks properties

Started by Quentindray74 on

Topic category: Help with MCreator software

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help me creating custom blocks properties

Hi Everyone!

 

I'm creating a Super Mario Mod (Inspired by JimBoom's one),and after 4 years i'd like to start is over.

 

So, this is the story, I just created a "? Block" which has already animated texture and its properties (kinda). Now i'd like to "write" the way how we can create an event on the block.

Here is a YT video to show what I mean: https://www.youtube.com/watch?v=1sYYXm_2tWM&feature=youtu.be

I'd like that only the player head with a cap (not created yet) can break the block when he jumps on the bottom face of the block and replace the block by A empty block (represented for now by a brick block). But as you can see, if there is any collision with any part on my player, it changes de block. That is not what I want, I want that only the Player's head with a mario cap (represented by a diamond helmet) can change the block and only with the bottom face. How could I do?

 

Thanks.

 

PS: and as you can see, when I walk on those blocks, it's a bit laggy, how to fix it?

 

To detect if block is coming…
Mon, 08/26/2019 - 16:29

To detect if block is coming from the bottom side, you could check if y entity velocity is a positive number when the collision happens. But I think this procedure only detects top side walking, we are working on adding another trigger for global block collision event.

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
OK, thank you, will it be…
Mon, 08/26/2019 - 17:06

OK, thank you, will it be avaliable on the next update?

 

PS: How to do the detect thing?

Detect means that a trigger…
Mon, 08/26/2019 - 17:20

Detect means that a trigger triggers it, like you detect the player now.

For the global collision block procedure trigger in next update, I can't say at this point.

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, anyway thanks for the…
Mon, 08/26/2019 - 21:34

Ok, anyway thanks for the help, may someone can help me coding the trigger with onl the head of the player and it'll be fine! :)