Jump to content

RaguRaccoon

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by RaguRaccoon

  1. I always thought the bounding box and hitbox of an entity were the same. From what I have looked up they are the same, but if anyone knows otherwise please do tell me. Anyway at this point I am just considering creating a new projectile and hoping it won't have the same issue. I am not too sure what you mean by this. Are you suggesting I write code on the projectile so that when it hits an entity, I get that entities's bounding box dimensions?
  2. I made a projectile extending the AbstractHurtingProjectile class. The relevant code and video showing the error are shown below. I want my projectile to be able to pass through blocks and hit multiple entities, it should only despawn after a certain amount of time. For some reason, it does not hit entities in the situations shown below. It can't hit the bottom of the entity if there are blocks in the way, even though the projectile has been shown to damage an entity through blocks as long as I aim body level. Also, it can't hit entities through blocks if I shoot from above or below. Why is my projectile behaving like this? I am at my wit's end. (Ignore the chat I put that there for debugging purposes) Video demonstrating issues Class that defines projectile behavior: Item class that shoots projectile when right-clicked (lines 37 and 53-56 are the relevant ones): Class where I register the projectile entity:
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.