blocks not placing/removing in the correct position

Started by Cmdr_Brandulf on

Topic category: Help with modding (Java Edition)

Last seen on 00:12, 23. May 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
blocks not placing/removing in the correct position
Wed, 05/05/2021 - 23:33 (edited)

I've been trying to get my living entity to do an mlg water bucket jump, but it has not been placing/removing the water in the correct position, i assume it is a problem with the hitbox of the entity because whatever it breaks/places has been right next to it but not at its feet. but here is the code ive been using and then the problem:

https://youtu.be/oH0-B6Vk9kw

sorry for the poor video quality.

thank you.

oh, also, what is the velocity measured in? like blocks per minute?

Edited by Cmdr_Brandulf on Wed, 05/05/2021 - 23:33
Last seen on 00:59, 19. Oct 2022
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
change "X" use "X-1"  
Wed, 05/05/2021 - 23:23

change "X" use "X-1"

 
Last seen on 00:12, 23. May 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks, but, i just tried…
Wed, 05/05/2021 - 23:43

thanks, but, i just tried that, now it wont place anything at all.

Last seen on 00:12, 23. May 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nvm. i was just having…
Wed, 05/05/2021 - 23:58

nvm. i was just having trouble with the velocity. any idea what unit of measure they use for that?

 

Last seen on 00:59, 19. Oct 2022
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you tell me what version…
Thu, 05/06/2021 - 00:12

Can you tell me what version of mcreator and what version of game you are using?

Last seen on 00:59, 19. Oct 2022
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
keep in mind that the higher…
Thu, 05/06/2021 - 00:45

keep in mind that the higher it falls, the faster it will fall
and you could exceed the verification tick.
in this one I almost did two checks, you can do more in case it falls from even higher.
1

I came up with another way to make these checks easier, but there are many possible cases where this method could still fail, for example (the entity is right on the edge of a block), (it could fail all the checks) (it is very complicated to work on uneven terrain).

if you don't want to complicate your life use something like this
it will generate blocks even in the air it reduces its acceleration I put -0.7, but you can color it -0.5 or -1, this would not fail like the previous method, but in mic aso I use -0.7 sometimes it can get hit but it will be minimal damage, it could make the entity resistant to fall damage
and the problem would be solved. The water would only be an "ornament":

2

Last seen on 00:12, 23. May 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
1.16 game version mcreator…
Thu, 05/06/2021 - 00:57

1.16 game version mcreator version 2021.1

Last seen on 00:12, 23. May 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i will do something like…
Thu, 05/06/2021 - 01:03

i will do something like this, thank you