blocks not placing/removing in the correct position

Started by Cmdr_Brandulf on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined May 2021
Points:
568

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
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
Active 2 years ago
Joined Feb 2019
Points:
751

User statistics:

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

change "X" use "X-1"

 
Active 4 years ago
Joined May 2021
Points:
568

User statistics:

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

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

Active 4 years ago
Joined May 2021
Points:
568

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
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?

 

Active 2 years ago
Joined Feb 2019
Points:
751

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 156
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?

Active 2 years ago
Joined Feb 2019
Points:
751

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 156
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

Active 4 years ago
Joined May 2021
Points:
568

User statistics:

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

1.16 game version mcreator version 2021.1

Active 4 years ago
Joined May 2021
Points:
568

User statistics:

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

i will do something like this, thank you