Jump to content

[1.7.10]Looking for tutorials on several subjects of java


Vulpixy

Recommended Posts

Hello! I'm wanting a level system for my minecraft modpack, but I'm not fully experienced with java yet, so I'm looking for some tutorials to help out. For starters, I know how to setup my workspace, and simple block/item/tools registry, crafting, and getting mobs to drop certain items. What I'm looking for are guides to help me learn a bit more advanced java so I can make this mod.

 

My idea is there would be 4 stats a player has, and each stats provides a bonus every time you level (like  strength adding bonus damage using the AttributeModifier.) Players choose a class when they login to the world for the first time, and each class has a certain pre-built level progression, so there's no real input from the player as far as that goes. The levels for the mod would be tracked using the experienceTotal, and at certain points the system would level you up, display in the chat box what you gained that lvl, and increase the stats on a character menu.

 

What would be some good tutorials to help me learn how to code this? And if anyone is willing to work with me on the project, I'd greatly appreciate it as well :)

Link to comment
Share on other sites

Hi, look into IExtendedEntityProperties for saving data to an entity (the player in your case). You will need packets to sync values between the server and client, take a look at the SimpleNetworkWrapper packet system. You will also need events, (I.E PlayerJoinWorldEvent, to get when each player joins the world - prompt them to pick a class). For the player class, use GUI's - packets may be needed for this as well. Some links for tutorials on these:

 

Events

http://jabelarminecraft.blogspot.com/p/minecraft-forge-172-event-handling.html

 

IEEP

https://github.com/coolAlias/Tutorial-Demo/blob/master/src/main/java/tutorial/entity/ExtendedPlayer.java

 

SNW

http://www.minecraftforge.net/forum/index.php/topic,20135.0.html

 

GUI

http://jabelarminecraft.blogspot.com/p/minecraft-modding-configuration-guis.html

 

Hope that helps.

Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]

Link to comment
Share on other sites

Hi, look into IExtendedEntityProperties for saving data to an entity (the player in your case). You will need packets to sync values between the server and client, take a look at the SimpleNetworkWrapper packet system. You will also need events, (I.E PlayerJoinWorldEvent, to get when each player joins the world - prompt them to pick a class). For the player class, use GUI's - packets may be needed for this as well. Some links for tutorials on these:

 

Events

http://jabelarminecraft.blogspot.com/p/minecraft-forge-172-event-handling.html

 

IEEP

https://github.com/coolAlias/Tutorial-Demo/blob/master/src/main/java/tutorial/entity/ExtendedPlayer.java

 

SNW

http://www.minecraftforge.net/forum/index.php/topic,20135.0.html

 

GUI

http://jabelarminecraft.blogspot.com/p/minecraft-modding-configuration-guis.html

 

Hope that helps.

 

thanks, I'll take a look at em.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



×
×
  • Create New...

Important Information

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