Jump to content

loordgek

Members
  • Posts

    1910
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by loordgek

  1. you dont need it for now do you have discord ?
  2. it server side only ?
  3. https://github.com/loordgek/NewFantasyMod/commit/3cd683d7016ef6a4e5b3411aaef8135b54f62ae7
  4. no. dont make it final, dont set it, and use ++ instead of TRACKING_CHUNK use TRACKING_ENTITY
  5. https://github.com/DragonGamerDevelopers/NewFantasyMod/blob/8209587d8c51a816d10e193b7a22f2e222a7af44/src/main/java/mod/dragonita/fantasymod/customthings/ClientSendFunction.java nonono you dont need it
  6. 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
  7. 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
  8. it is server side you need to send a message to all clients in render range to tell it panics
  9. 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
  10. show me what you have tried
  11. 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
  12. and stop ping everybody it is annoying
  13. that is the current way how to do it
  14. https://mcforge.readthedocs.io/en/1.13.x/networking/simpleimpl/
  15. can you a random log so i can explain it
  16. post the log
  17. why do you want to do that ?
  18. 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
  19. what are you trying to do ?
  20. getRunningGoals is empty, i dnot know why
  21. return entity.goalSelector.getRunningGoals().anyMatch(prioritizedGoal -> prioritizedGoal.getGoal().getClass() == TargetGoal);
  22. we have that already it is called twitch launcher and for rehosting mods you need to get permission from the dev
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.