Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.9.4] Modding Questings


Jedispencer21
 Share

Recommended Posts

So I am making a sort of private mod for myself/friends, and what I wondering is, if there is any way to make it so that when I open a world it is already open to lan, instead of opening the world and then opening it to lan. Also I am thinking of adding a friends list but wondering how would I go about sending the friend requests and really anything outside of a server since I don't think I could send packets outside of the server, since the friends list would not be in game it would be accessible in world/out of world, and wondering how I would go about saving the friends list, I'm thinking NBT but idk. Also is there any way to replace the loading world screen where it displays "Building Terrain"

Link to comment
Share on other sites

1. Look into GuiIngameMenu (or something like that) - lookup what LAN button calls, You could probably copy that code to WorldLoadEvent or some other event like server starting, do some checks and fire it.

 

2. Friend list like that would have to be fully client sided. Basically you can save UUIDs on client (which won't change) and cache "lastSeenNickname" (since that can change). Then you simply save such stuff any wahy you want. You know the player-list (tab-press)? Lookup what it does - you could check your client's friend list against player info data to e.g change status to online.

 

As to cross-server - it won't be possible to know anything about other player if he is not on the SAME server - that is unless you would setup your own network and have web-based hosting that would chande such stuff (in which case I don't think java would be enough).

 

3. Use OpenGuiEvent and replace it with your own extension of that gui.

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

The thing is with opening the world to lan is that any events that I find are fired too early and Mincraft#thePlayer is null at the time they are fired, which can't be null since IntegratedServer#shareToLAN uses Minecraft#thePlayer to set the player's permission level, Also is there any way to get the current loading progress of loading a world?

Link to comment
Share on other sites

EntityJoinedWorldEvent

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Is there any way to get the current loading progress for when you join a world? Also, I am trying to do something like the Singleplayer world icons, except for servers, and then just have a folder named server-icons, how would I go about checking if the player is on a server then create a screenshot and save it to that file.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.