Everything posted by Asweez
-
Attack Selected Entity
I have an entity that I want to attack any entity that the player selects. How do I do this?
-
[1.7.10]Flipping an entity with RenderLivingEvent
Ok I did that, however the only entity that renders while my potion effect is active is the player. Any of the other entities are not affected. I checked with LivingUpdateEvent that the potion effect was registering, and LivingUpdate said that they had my potion effect active. For some reason it just isn't registering on the client. How do I fix this? Code: @SubscribeEvent public void renderLiving(RenderLivingEvent.Pre event){ if(event.entity.getActivePotionEffect(MagiCraft.flipped) != null){ GL11.glPushMatrix(); GL11.glRotatef(180.0f, 0, 0, 1.0f); GL11.glTranslated(0, event.entity.height/2 + 0.1f, 0); } } @SubscribeEvent public void renderLiving(RenderLivingEvent.Post event){ if(event.entity.getActivePotionEffect(MagiCraft.flipped) != null){ GL11.glPopMatrix(); } }
-
[1.7.10]Flipping an entity with RenderLivingEvent
Do I use both the RenderLivingEvent.Pre and Post events?
-
[1.7.10]Flipping an entity with RenderLivingEvent
So how do I properly use them to do what I want?
-
[1.7.10]Flipping an entity with RenderLivingEvent
Well when I remove that, all entities are flipped. What exactly does push/pop matrix do? 2) I changed it to Pre
-
[1.7.10]Flipping an entity with RenderLivingEvent
How do I flip an entity upside down through RenderLivingEvent? Right now it doesn't do anything when the entities have my potion effect. Here is my code : @SubscribeEvent public void renderLiving(RenderLivingEvent.Post event){ if(event.entity.getActivePotionEffect(MagiCraft.flipped) != null){ GL11.glPushMatrix(); GL11.glRotated(180, 0, 0, 1); GL11.glPopMatrix(); } } Yes I have registered it and it is getting called. Thanks!
-
[1.7.10]Player not being moved by addVelocity
How would I send a packet to the client?
-
[1.7.10]Player not being moved by addVelocity
I am trying to make the player shoot upwards when my projectile hits it. This works on other entities, but not on other players. I use entity.addVelocity() for shooting them upwards. However, when I added a line of code to do damage after that, the player shot up and took damage. What's going on? I use entity.attackEntityFrom() for the damage. I use my custom damage source for the param. Thanks
-
Sphinx Speech Recognition?
Wow, thank you. I totally forgot about Threads
-
Sphinx Speech Recognition?
I have tried to use sphinx4 in minecraft. It works, however when it starts listening for speech, it pauses the game. I don't want it to do this, I want the player to be able to play and talk at the same time. So I have two questions: Can I use sphinx without pausing the game? If not, should I make my own speech recognition? Thanks
-
Voice Recognition
No I don't have any code. I could probably find some on Google though. I'm just wondering if it would be plausible in Minecraft and whether it would work with Minecraft.
-
Voice Recognition
Would voice recognition in Minecraft be plausible? I have a array of words that it would be listening for, in case that changes things. Thanks
-
Third Parameter in DrawScreen method
Yes they are moving, it is like the achievement page where you can scroll. What do you mean by hovering state?
-
Third Parameter in DrawScreen method
So in drawScreen I use the partialTicks param to calculate positions. However, when I want to get the position of the icon in mouseClicked, I can't access partialTicks to locate it properly. How do I fix this?
-
Third Parameter in DrawScreen method
What exactly are partial ticks?
-
Third Parameter in DrawScreen method
What is the third param in the drawScreen() method? public void drawScreen(int p_73863_1_, int p_73863_2_, float p_73863_3_)
-
Something like the Achievement Tree
You're not being rude at all. But the code is a little hard to understand at first glance because most of the variables still have names like field12345_A. So I will have to go a little further into analyzing it. Thanks for the instruction!
-
Something like the Achievement Tree
Yeah I have. What I'm mostly confused about now is how the scrolling works and how it cuts off the background where the GUI foreground is. How does this work?
-
Something like the Achievement Tree
I want to make a GUI like the achievement screen where there are boxes and lines and you can scroll through it and stuff, but I'm not sure how to do it. I mostly get the boxes, but I'm not sure how to make the lines that connect them, and I'm not sure how to make the window scrollable. How would I do these things?
-
Entity teleports upwards whenever something collides with it
My entity (not entity living ) keeps teleporting when anything touches it. It teleports up about 10 blocks (the actual entity does, not just the model). When I try to go under it, I can't. I seems to have an invisible barrier beneath it, and whenever I touch that barrier, the screen shakes and I get stuck in the barrier. This is not the bounding box, because the bounding box is where the entity is (using F3+B). After a little while, the entity will come back down. Then it starts all over again. code:
-
Working on one mod with two computers
I just got a laptop and I want to work on my mod from both my laptop and my desktop computer. I have tried using Google Drive, where I put the mod folder in Google Drive and eclipse accesses it from both computers. However, when I try to open up the folder in eclipse, nothing is there. Is there a better way of doing this or is there something I'm doing wrong? (I' prefer to keep using Google Drive, too) Thanks
-
Making Entity Un-Pushable
Yes I looked at that, however when the entity that collides with mine runs collideWithEntity(), that entity pushes back both itself and whatever it collided with. So even if I don't push my entity back, the other entity will.
-
Making Entity Un-Pushable
I have tried that, however that makes it so anything can walk through it. I want it to be solid so nothing can go through it and it won't move.
- Making Entity Un-Pushable
-
Achievement Icons that aren't Items
Is it possible to have an achievement icon that isn't an item icon? If so how?
IPS spam blocked by CleanTalk.