Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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 :)

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]

  • Author
  On 7/25/2015 at 9:30 PM, EverythingGames said:

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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.