-
Flying problem.
Isn't that function only called when the armor is on player? If yes, then I can't check if a player is wearing the armor because it won't be called.
-
Flying problem.
How should i check if a player has put the armor on/off because there are a lot of ways to do it.
-
Flying problem.
Hello, I have an armor, and it's special ability should be flying when you wear it, so i made a check in the entity update event and if you are wearing a full set, player.capabilities.allowFlying is set to true, and if you are not it's set to false except if you are in the creative mode. It works, but the problem is , it might make a conflict with other mods. If they want to set that to true, then my mod will set it to false because the player is not wearing the armor. Is there a solution for this , or I will have to remake vanilla flying?
-
[1.8.8] Strange FPS drop
I found the error, it was not my code's fault, for some reason there was only 256mb allocated for minecraft so that's why it was lagging. I added these arguments for JVM: -Xms512m -Xms1024m and then it worked fine.
-
[1.8.8] Strange FPS drop
Hello , I started working on my mod after a few weeks break and now i updated forge and everything and now i have fps drop, screen is freezing every few seconds, and i don't know what's causing it, I tried removing all my events and it didnt help , but what helped is reducing view distance to 2 , when i set it to 8 it's dropping fps but on 16 it freezes. And i know it's probably not my pc because when i try it in vanilla i can play normally even on 32 chunks view distance. You can see my mod's source code here
-
[1.8.8] NoClassDefFoundError
Hello, i get this error when i try to run Server. But when i run client it runs without crash. I don't know what the problem is but from what i see render is called on server side but i don't know from where , if you need some part of the source code i will post it. Crash reports: https://gist.github.com/Po2kkz/6da52df60c2568222ff6 https://gist.github.com/Po2kkz/349ba4454dffcb232af0
-
[1.8] How can i make a sphere?
Hello, I need to make an effect to look like light explosion, I was thinking to make an entity with spehere model, and to render it so it scales its size fast, so it looks like its exploding. But I don't know how to make a sphere.
-
How to make entity not move?
Also how can I make my custom AI work if I disable all other this way. Because i will need it for another item , I will need it to disable all current entities AI and add my own.
-
How to make entity not move?
Ok, but i wasn't , i'm doing this from event and for all entities(including vanilla).
-
How to make entity not move?
Thanks that worked . Only that method was protected so i had to use this code directly. event.target.getDataWatcher().updateObject(15, Byte.valueOf((byte)(1)));
-
How to make entity not move?
Hello i need to make vanilla entities not move when they have specific extended property on them. I tried with removing AI (cleared tasks and targetTasks lists) but that doesn't work for all ( e.g. bats have their own code for moving around). I was thinking of setting entity's position to fixed location from update entity event but that isn't good solution and its also acting weird.
-
[1.8][OpenGL] Entity rendered too bright
It looks like 2 entities spawned at same location so it looks brighter.
-
[1.8] Particle not showing up.
I tried like this: But it didn't work.
-
[1.8] Particle not showing up.
Hello , when i try to summon particle it doesn't show up. I tried with different particles but none work, also i checked coordinates and they were ok. So i don't really understand what is problem here. Code where I spawn them: I also tried from client side events and it didn't work there too. But sound works, so that code gets executed too.
-
[1.8] How to manipulate textures for entities?
Thank you for explanations . It all works now.
IPS spam blocked by CleanTalk.