Everything posted by ThexXTURBOXx
-
[1.8.9] Entity Rotation
Sorry, that I make a second post for it... I have messaged the creators of Forge already on GitHub. I hope, that they (Well, fry is assigned to this issue) can solve the problem, I would like to be able to rotate the entity in the entity-class, too. But right now, as I said before, you need OpenGL-Rendering for this...
-
[1.8.9] Entity Rotation
Search before you start a new Thread ^^ http://www.minecraftforge.net/forum/index.php/topic,36246.msg190722.html#msg190722 The important part is in the Renderer-class the GL11.rotated(yaw, 0, 1, 0); You can look at my code, too: https://github.com/TheOnlySilverClaw/Reforged/blob/master/java/org/silvercatcher/reforged/render/ReforgedRender.java You might want to add a modifier, like me, which rotates the entity in the right direction (As much as I know, it should only be 0, 90, 180 or 270). If you want, copy this little snippet of our code.
-
[SOLVED] [1.8] Rotate Entity
OMG sorry -.- In the GL11.rotated(...) I set in the parameters x, y, z instead of 0, 1 and 0.... Sorry ^^
-
[SOLVED] [1.8] Rotate Entity
Ok, I will try that ^^
-
[SOLVED] [1.8] Rotate Entity
And could someone please explain me the difference between setPositionAndRotation and setLocationAndAngles? Both have the same paramters
-
[SOLVED] [1.8] Rotate Entity
Well, tried that already, but the Javelin flies pretty crazy then. It rotates while flying then.
-
[SOLVED] [1.8] Rotate Entity
I want the Entity to get rotated. It should get rotated when it is thrown so it looks in the same direction the player is looking. Right now it looks in the same direction everytime (I think it's north).
-
[SOLVED] [1.8] Rotate Entity
Hello guys ^^ Maybe I am just silly, but I think, that setRotation(...) in Entity-classes doesnt't work... Is there a way to set the rotation of a EntityThrowable? Do I have to add something in the Model-class, Entity-class or Render-class? Here are those classes: https://github.com/TheOnlySilverClaw/Reforged/blob/master/java/org/silvercatcher/reforged/entities/EntityJavelin.java https://github.com/TheOnlySilverClaw/Reforged/blob/master/java/org/silvercatcher/reforged/render/RenderJavelin.java https://github.com/TheOnlySilverClaw/Reforged/blob/master/java/org/silvercatcher/reforged/models/ModelJavelin.java I hope you can help ^^
-
[Solved] [1.8] Let mobs panic after attacking them
After searching in Google I found a method in Bukkit / Spigot and tried to reproduce that in Forge and IT WORKS! Here is my answer: if(entityHit instanceof EntityLivingBase) { EntityLivingBase en = (EntityLivingBase) entityHit; if(getThrowerASave() instanceof EntityPlayer) { en.attackEntityFrom(DamageSource.causePlayerDamage((EntityPlayer) getThrowerASave()), 0F); } else { en.attackEntityFrom(DamageSource.causeMobDamage(getThrowerASave()), 0F); } } I just do PlayerDamage or MobDamage, dependent of the Thrower, with an amount of 0. Full code in the 3 links above.
-
New version gives "Java Heap Space"-Error
I have had the same error, too. I fixed it like this: 1. Go to Drive:/Users/YourName/.gradle 2. Create a new file called "gradle.properties" 3. Write that in this file: org.gradle.jvmargs=-Xmx2G 4. Gradle will now fork a new JVM using Daemon. That's normal, but Gradle will now run with 2GB RAM. Hope this helps you! ^^
-
[1.8.8] Strange FPS drop
I would not use Forge for 1.8.8. It's highly unstable. Try switching to 1.8.9. Once I wanted to update my mod to 1.8.8, but there were so many methods missing x_X
-
[Solved] [1.8] Let mobs panic after attacking them
Hello guys, I want to let mobs like pigs etc. panic after you attacked them. I mean the panic when you attack them with a vanilla sword. I have set up a custom DamageSource, which works. When you attack Zombie Pigmen with my EntityThrowable (which uses the DamageSource), they will revenge you. That works, too (but I have to set it in the Entity's class, maybe is there a method to set it for the DamageSource?). How can I let the mobs panic, do I have to execute the MobAIPanic-task? Please help me Here is my code: DamageSource: https://github.com/TheOnlySilverClaw/Reforged/blob/master/java/org/silvercatcher/reforged/ReforgedRegistry.java#L92 EntityThrowable: https://github.com/TheOnlySilverClaw/Reforged/blob/master/java/org/silvercatcher/reforged/entities/EntityBulletMusket.java Own "ReforgedThrowable"-class: https://github.com/TheOnlySilverClaw/Reforged/blob/master/java/org/silvercatcher/reforged/entities/ReforgedThrowable.java Thanks for helping ^^
-
[SOLVED] Rotation for Techne/Tabula Model
Did it now Got it working YAY! Thank you!
-
[SOLVED] Rotation for Techne/Tabula Model
This is a very nice explaination. Thank you very much! ^^ I will try that out tomorrow! Cool man ^^
-
[SOLVED] Rotation for Techne/Tabula Model
Hello guys, I made a EntityThrowable, which gets rendered with a Techne/Tabula Model (this works). But I want it (when thrown) to get rotated in the direction the player is looking. Here are my classes (if you need to, look through the whole GitHub): Render-class: https://github.com/TheOnlySilverClaw/Reforged/blob/master/java/org/silvercatcher/reforged/render/RenderBoomerang.java Model-class: https://github.com/TheOnlySilverClaw/Reforged/blob/master/java/org/silvercatcher/reforged/models/ModelBoomerang.java Entity-class: https://github.com/TheOnlySilverClaw/Reforged/blob/master/java/org/silvercatcher/reforged/entities/EntityBoomerang.java
-
[SOLVED] [1.8] OreDictionary Help
Thank you all! Got it working ^^ [sOLVED]
-
[SOLVED] [1.8] OreDictionary Help
Ah there it is ^^ Ok, looked through the event-packages... I will try and tell you if it is working, thank you!
-
[SOLVED] [1.8] OreDictionary Help
Absolutely. What did you think the FMLPostInitializationEvent was Sorry, I am silly sometimes -.- But BTW I can't find an Event which has to do with the OreDictionary. I only find the OreGen-Event, but that's just before the world is shown. Are there any other methods?
-
[Solved] [1.8] Accessing Methods/Fields of another Mod
Maybe this helps you (bukkit programming, but you could adjust it): When you want to edit the banlist of a server you can't do BanList.pardon(); because it's not static. You have to do BanList.getBanList(Type.NAME).pardon(); Mabe in JourneyMap there is somethig like: WaypointManager.getWapoints().addWaypoint(...);
-
[SOLVED] [1.8] OreDictionary Help
Oh yeah... Could have thought of this I will try a combination of the event and this
-
[SOLVED] [1.8] OreDictionary Help
I know, but I saw a mod doing this ^^ Can Events be fired, when Minecraft is still loading?
-
Problem installing Forge-1.8.9-11.15.0.1705-mdk
Type in those links in your browser: http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGradle/2.1-SNAPSHOT/ForgeGradle-2.1-20160116.192356-17.jar http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.8.9-11.15.0.1705/forge-1.8.9-11.15.0.1705.pom http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.8.9-11.15.0.1705/forge-1.8.9-11.15.0.1705-userdev.jar P.S.: Before this: Try to setup your Workspace like this: 1) gradlew setupDecompWorkspace --refresh-dependencies 2) gradlew setupDevWorkspace --refresh-dependencies 3) gradlew eclipse OR gradlew idea (depending on your IDE)
-
Problem installing Forge-1.8.9-11.15.0.1705-mdk
Hmmm. Downloaded the files myself... I don't have any similar error messages. Looks like it depends on your internet... I don't know to fix this exactly, but I could imagine this: Download the files yourself and put them in the desired folder (the links are in your log). Maybe your browser can download them "better"
-
Gun Mod
Try mcpbot, it will help you: http://export.mcpbot.bspk.rs/stable/
-
[Solved] [1.8] Accessing Methods/Fields of another Mod
I know the mod (I translated it to German), but I don't know exactly how this should work. I could imagine, that you need to get the class as a new Object and then you can access this object.
IPS spam blocked by CleanTalk.