Jump to content

Merthew

Members
  • Posts

    128
  • Joined

  • Last visited

Posts posted by Merthew

  1. So I am trying to get the block hit by say and egg or a snowball instead of where the entity was when it died. Any thoughts on this? I am trying to do this from

    ProjectileImpactEvent 

    and having some trouble with it. I can get the position of the impact by using

    e.getRayTraceResult().getHitVec().x, e.getRayTraceResult().getHitVec().y, e.getRayTraceResult().getHitVec().z

    or by

    e.getEntity().getPosition()

    but I can't really find a way to get the impacted block.

    Any help would be much appreciated.

  2. Currently I have an item, the phantom sword that gets an entity that the player is looking at. However, it should cause the entity to be damaged by an amount dependent on the sword type. This does not happen. There is no indication that the entity has been damaged and it will not kill any entity. Any help would be appreciated.

    Relevant file: https://github.com/Merthew/Merthew-Mod/blob/master/src/main/java/merthew/mod/object/item/weapons/PhantomBlade.java

  3. sorry, log is here:

      Reveal hidden contents

     

  4. I am trying to send a packet to the server from a tileentity. I have gotten it working before but now I seem to have missed something.

     

    Console Log:

      Reveal hidden contents

    My code: https://github.com/Merthew/Merthew-Mod

  5. I actually just did something like this. Fist thing you need it to look at one of the particle files in the main game, this is the actual code for the particle, build something like it. Then you are going to need a way to call it. Some form of class that contains a method to spawn the particle. Lastly you need a static declaration of the particle. For the custom texture, i know that you can override a method for the texture file but i never got it to work.

     

    My code if it helps:

    where i call the particle:

    https://github.com/Merthew/Empire-Of-Blood/blob/master/src/main/java/merthew/mod/item/general/ItemFlowerCrown.java

    where i declare the particle:

    https://github.com/Merthew/Empire-Of-Blood/tree/master/src/main/java/merthew/mod/util/particle

    • Like 1
×
×
  • Create New...

Important Information

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