
loordgek
Members-
Posts
1910 -
Joined
-
Last visited
-
Days Won
7
Everything posted by loordgek
-
[1.15.2] Check if a entity is in panic, how?
loordgek replied to DragonITA's topic in Modder Support
you dont need it for now do you have discord ? -
[1.15.2] Check if a entity is in panic, how?
loordgek replied to DragonITA's topic in Modder Support
it server side only ? -
[1.15.2] Check if a entity is in panic, how?
loordgek replied to DragonITA's topic in Modder Support
https://github.com/loordgek/NewFantasyMod/commit/3cd683d7016ef6a4e5b3411aaef8135b54f62ae7 -
[1.15.2] Check if a entity is in panic, how?
loordgek replied to DragonITA's topic in Modder Support
no. dont make it final, dont set it, and use ++ instead of TRACKING_CHUNK use TRACKING_ENTITY -
[1.15.2] Check if a entity is in panic, how?
loordgek replied to DragonITA's topic in Modder Support
https://github.com/DragonGamerDevelopers/NewFantasyMod/blob/8209587d8c51a816d10e193b7a22f2e222a7af44/src/main/java/mod/dragonita/fantasymod/customthings/ClientSendFunction.java nonono you dont need it -
[1.15.2] Check if a entity is in panic, how?
loordgek replied to DragonITA's topic in Modder Support
https://github.com/DragonGamerDevelopers/NewFantasyMod/blob/e75c38445bb2df1da41f4b142e76f5bf36d0174e/src/main/java/mod/dragonita/fantasymod/Main.java#L45 plz learn what the final modifier does it can start at 0 -
[1.15.2] Check if a entity is in panic, how?
loordgek replied to DragonITA's topic in Modder Support
msg is can be any class you like https://github.com/DragonGamerDevelopers/NewFantasyMod/blob/e75c38445bb2df1da41f4b142e76f5bf36d0174e/src/main/java/mod/dragonita/fantasymod/customthings/PanicMessage.java#L17 that is your smg https://github.com/DragonGamerDevelopers/NewFantasyMod/blob/e75c38445bb2df1da41f4b142e76f5bf36d0174e/src/main/java/mod/dragonita/fantasymod/customthings/PanicMessage.java#L35-L47 https://github.com/DragonGamerDevelopers/NewFantasyMod/blob/e75c38445bb2df1da41f4b142e76f5bf36d0174e/src/main/java/mod/dragonita/fantasymod/customthings/PanicMessage.java#L61-L63 https://github.com/DragonGamerDevelopers/NewFantasyMod/blob/e75c38445bb2df1da41f4b142e76f5bf36d0174e/src/main/java/mod/dragonita/fantasymod/customthings/PanicMessage.java#L19-L20 what is that doing there you dont need it -
[1.15.2] Check if a entity is in panic, how?
loordgek replied to DragonITA's topic in Modder Support
it is server side you need to send a message to all clients in render range to tell it panics -
[1.15.2] Check if a entity is in panic, how?
loordgek replied to DragonITA's topic in Modder Support
https://github.com/DragonGamerDevelopers/NewFantasyMod/blob/1.15.2/src/main/java/mod/dragonita/fantasymod/customthings/ModidPacketHandler.java#L22-L35 it is better to extract this into its own class and name it "PanicMessage" ModidPacketHandler is a bad name for it https://github.com/DragonGamerDevelopers/NewFantasyMod/blob/1.15.2/src/main/java/mod/dragonita/fantasymod/customthings/ModidPacketHandler.java#L30 needs also the message, "PanicMessage" in this case public void handle(PanicMessage message, Supplier<NetworkEvent.Context> context) https://github.com/DragonGamerDevelopers/NewFantasyMod/blob/1.15.2/src/main/java/mod/dragonita/fantasymod/Main.java#L75 where you do 505156459 it is better to have do ID++ and ID is a static field https://github.com/MinecraftForge/MinecraftForge/blob/1.15.x/src/main/java/net/minecraftforge/fml/network/simple/SimpleChannel.java#L112-L125 use this to send a message to the client -
[1.15.2] Check if a entity is in panic, how?
loordgek replied to DragonITA's topic in Modder Support
show me what you have tried -
[1.15.2] Check if a entity is in panic, how?
loordgek replied to DragonITA's topic in Modder Support
https://github.com/cpw/inventorysorter/blob/master/src/main/java/cpw/mods/inventorysorter/KeyHandler.java#L118 https://github.com/cpw/inventorysorter/blob/master/src/main/java/cpw/mods/inventorysorter/ServerHandler.java https://github.com/cpw/inventorysorter/blob/master/src/main/java/cpw/mods/inventorysorter/Network.java hope this helps -
[1.15.2] Check if a entity is in panic, how?
loordgek replied to DragonITA's topic in Modder Support
na just leaf it -
[1.15.2] Check if a entity is in panic, how?
loordgek replied to DragonITA's topic in Modder Support
and stop ping everybody it is annoying -
[1.15.2] Check if a entity is in panic, how?
loordgek replied to DragonITA's topic in Modder Support
that is the current way how to do it -
[1.15.2] Check if a entity is in panic, how?
loordgek replied to DragonITA's topic in Modder Support
https://mcforge.readthedocs.io/en/1.13.x/networking/simpleimpl/ -
can you a random log so i can explain it
-
post the log
-
How do i make a mod, that extends and connects two other mods?
loordgek replied to Drachenbauer's topic in Modder Support
post your mod code on github -
why do you want to do that ?
-
[1.15.2] Check if a entity is in panic, how?
loordgek replied to DragonITA's topic in Modder Support
it is server side probably, you need to send a packet i dont know for sure edit: did a test and it is server side only -
[1.15.2][SOLVED] Listen for block break event on client
loordgek replied to henne90gen's topic in Modder Support
what are you trying to do ? -
[1.15.2] Check if a entity is in panic, how?
loordgek replied to DragonITA's topic in Modder Support
getRunningGoals is empty, i dnot know why -
[1.15.2] Check if a entity is in panic, how?
loordgek replied to DragonITA's topic in Modder Support
return entity.goalSelector.getRunningGoals().anyMatch(prioritizedGoal -> prioritizedGoal.getGoal().getClass() == TargetGoal); -
why ?
-
we have that already it is called twitch launcher and for rehosting mods you need to get permission from the dev