Help me creating custom blocks properties

Started by Quentindray74 on Sun, 08/25/2019 - 19:56

Topic category: Help with MCreator's application

Last seen on 13:55, 19. Sep 2019
Joined Jun 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Help me creating custom blocks properties
Sun, 08/25/2019 - 19:56

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?

 

Last seen on 13:35, 23. Sep 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
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.

Last seen on 13:55, 19. Sep 2019
Joined Jun 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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?

Last seen on 13:35, 23. Sep 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
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.

Last seen on 13:55, 19. Sep 2019
Joined Jun 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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! :)