
-
1.15.2 How to get the block hit by a throwable entity.
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.
-
1.15.2 Generate Tree
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?
-
[1.14.4] Item Rendering (I'm Stupid)
I have not been on this forum in forever.
-
[1.14.4] Item Rendering (I'm Stupid)
What is the correct way to do this then. I'm flying blind mate. Also, on a side note, I like your new Icon.
-
[1.14.4] Item Rendering (I'm Stupid)
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
-
[1.12.2] On item right click damage entity.
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
-
[1.12.2] Raytrace from player to entity.
Nevermind, figured it out.
-
[1.12.2] Raytrace from player to entity.
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.
-
[1.12.2] Custom loot tables for structures.
sorry, log is here:
-
[1.12.2] Custom loot tables for structures.
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
-
[1.12.2] Structure Generation Broken
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.
-
[1.12.2] Structure Generation Broken
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.
-
[1.12.2] Networking issues.
Never mind, it works if i just run it on the client side... why though.
-
[1.12.2] Networking issues.
Code should be up to date now.
-
[1.12.2] Networking issues.
by doing that, the entity that spawns has no ai and doesn't interact with anything...
IPS spam blocked by CleanTalk.