Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Merthew

Members
  • Posts

    128
  • Joined

  • Last visited

Recent Profile Visitors

1606 profile views

Merthew's Achievements

Creeper Killer

Creeper Killer (4/8)

2

Reputation

  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. Is there a method to grow a tree given a blockPos or some other kind of thing? Or do I need to make my own?
  3. I have not been on this forum in forever.
  4. What is the correct way to do this then. I'm flying blind mate. Also, on a side note, I like your new Icon.
  5. I made a custom Item and it does not recognize either the model file or the name in the .lang file. Help would be nice, I may just be an idiot. https://github.com/Merthew/MerthewTweaks Item: https://github.com/Merthew/MerthewTweaks/blob/master/src/main/java/com/example/merthewtweaks/object/item/Safety_Rope.java Registry: https://github.com/Merthew/MerthewTweaks/blob/master/src/main/java/com/example/merthewtweaks/util/ItemRegistry.java Model: https://github.com/Merthew/MerthewTweaks/blob/master/src/main/resources/assets/merthewtweaks/models/item/safety_rope.json
  6. 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
  7. What would the best way to get the entity a player is looking at be? All i have found works in 1.7.10 and has been changed since.
  8. I am getting a null pointer error when loading a structure that i am trying to add loot to. Any help would be nice. Files: WorldGeneratorStructures WorldGenStructure Main
  9. And i fixed it. Sorry forgot to post. Ended up setting the y coordinate to zero every other time and that caused it to spawn underground.
  10. So I made a custom structure called "church". I got it to generate and then did something that broke it. Only problem i have no idea what i did... Any help would be appreciated.
  11. Never mind, it works if i just run it on the client side... why though.
  12. by doing that, the entity that spawns has no ai and doesn't interact with anything...
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.