Jump to content

Krevik

Members
  • Posts

    179
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Krevik

  1. How do I setup custom music in my custom dimension? Seems like I cannot add new MusicTicker.MusicType ? Greetings!
  2. Hello there! How can I register my custom structure? I see that StructureIO.registerStructure() is actually private, so I cannot access it. Thanks in advance, Krevik.
  3. Well only one method here contains any documentation. But you're right they seem easy, I should be able to do that now. Thanks a lot!
  4. ohh? ? could you tell me sth more or point to any thing that could help me?
  5. When I try using Minecraft.getInstance.displayGui() inside if(world.isRemote()) I am getting crash when starting server Attempted to load class net/minecraft/client/gui/GuiScreen for invalid dist DEDICATED_SERVER My attempt for using packet: ProcessInteract Method: Packet Handler class: PacketClientOpenGuiOldMan class: When trying to use this way, I am getting the same error when trying run the server - attempted to load class for invalid dist
  6. yeah I have tried that using but it doesn't work when running on a server. Also I've been trying to make it work on server using packets (server -> client -> open Gui) but it doesn't work.
  7. How can I connect IInteractionObject with my Gui? My target is to open gui (with no container) through clicking on entity and I want to make it compatible both with client and server side. I have my gui registred in this way in the main mod file ModLoadingContext.get().registerExtensionPoint(ExtensionPoint.GUIFACTORY, ()->GuiOldMan::new); At first I tried to make my GuiOldMan implements IInteractionObject but the whole gui is client side only so it didn't work for the server. I am trying to open Gui using NetworkHooks.openGui((EntityPlayerMP) player, new GuiOldMan()); I've been also trying to make separate object that implements IInteractionObject, but I don't know how to connect this object with gui. Thanks in Advance!
  8. Thanks master ! However I am actually not using tile entity. I am updating Old Man gui
  9. Hello there! How do I properly set up gui for 1.13.2 minecraft versions? I already have gui class and gui handler, but I do not know how to handle IInteractionObject argument, when calling player.displayGui() Thanks in advance!
  10. Weird thing but i had to move it to my ModEventSubscriber (Mod Event BUS) class. Seems like some events from main mod class are not properly working when running on dedicated server. I guess this issue was caused by my lack of forge 1.13 knowledge, but I still do not know what is the reason that this event was not called when running on dedicated server.
  11. Hmmm just checked it. It is not called on a server. So what event should I use? Seems like FMLServerStartingEvent is not called on the server side too. Seems like there's some problem with events on the server side Is there some new seperate way to call events on the server side? ?
  12. Hello there! I am having weird problem with my dimension - everything works nice when playing on singleyplayer, but whener I try running my mod on server, the dimension is not registred at all! Most important code pieces: Main mod file The whole code: github. Thanks for any help!
  13. well I guess it's the only forum where I can get any help connected with forge coding, but okay sorry for ... annoying .
  14. it's for 1.12. And FMLCommonSetupEvent doesn't seem to be valid event in 1.13.2 for this method anymore. It's firing null dimension type when running on server
  15. Hello there! What event should I use DimensionManager.registerDimension() in? No matter where I place it, I always have problems cause it's not registred on server or client or both sides.
  16. Thanks it's working now Feel so stupid now
×
×
  • Create New...

Important Information

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