Minecraft Mods

[1.8.8] Weight Limit Mod - v1.0.2 - New Enchantment, Potion Effects Modify Weight, and More!

  • 4,755 views, 4 today
  • 245 downloads, 0 today
  • 10
  • 4
  • 15
HappyKiller1O1's Avatar HappyKiller1O1
Level 14 : Journeyman Modder
3
WeightLimitLogo
What does it do?
This mod is not for the faint of heart, and is designed for those looking for a more hardcore feel to Minecraft. Starting off, it adds a new weight limit element to the player, along with a weight value to all items. All weight is configurable through the 'WeightLimit.json' (WeightLimitServer.json when being used on a server) file, and syncs with all players when set from the server. When you are over encumbered (are carrying more than what you can), your player will be slowed, and you won't be able to sprint. There are a lot of toggles in the 'wl.config' file, so give it a look!

Backpacks
Click to reveal
There are three types of backpacks: Small, Medium, and Large. All three will increase the player's max weight value by a certain percentage, which is also configurable in the config file for the mod. When wearing one of the backpacks, a custom model will be rendered on your player's back: undefined

You can craft the Small Backpack with some leather, sticks, and a chest: undefined

The Medium, and Large backpacks can only be found in dungeon chests, or can be acquired by using the Upgrade Station (see below). Small Backpacks are about as rare as iron, Medium are as rare as diamonds, and Large are as rare as Golden Apples.

Upgrade Station
Click to reveal
The Upgrade Station is used to upgrade backpacks into higher quality, more efficient ones. It is crafted with six Spruce Logs, one Crafting Table, one Glass Pane, and one Obsidian:


UpgradeStationCrafting 
Once made, it will look quite inviting when placed: 
UpgradeStation 
Next, just open it, and you'll be greeted with this screen: 
undefined

Once there, simply follow these steps: 

Step 1 Place a backpack in the first slot: undefined

Step 2 Put the material, and amount required to upgrade the backpack into the second slot: undefined

Step 3 Enjoy your new backpack! This can also be done on the Medium Backpack, and soon to be Large! undefined

Custom Inventory
Click to reveal
This mod also adds a custom inventory, which is accessed by pressing the 'R' key (changeable): undefined

To the left of the inventory is your current weight over max weight. This indicates how much you're carrying, and how much you can carry before being slowed down. The first, and only slot on the inventory is where your backpack will go. When placed in this slot, the backpack will upgrade your max carry weight by a certain amount; and render a model on your player's back!

Weight
Click to reveal
Weight of all items is stored within a json file that is created when your first load up your game with the mod. This file will load all blocks and items from the vanilla game, and any mods you have loaded with this one. The file can be located within the folder that the config would be, and can be changed to your liking. When running this mod from a server, the file will be called 'WeightLimitServer.json', and any values set in that file will be synced with the client.

NOTE: THE ONLY WAY FOR THE CLIENT TO BE SYNCED, IS IF YOU DO A FULL SERVER RESTART! 

Let's take a look at how tooltips work: 
Each item has a new variable on their tooltip called 'Weight'. This determines the item's weight multiplied by the amount of the item in the stack.The pictures indicate how the color will change with the more of said item you have in a stack. Green means light, dark green means slightly-light, orange means heavy, and red means very heavy:
 undefinedundefinedundefinedundefined

Next, is how weight is displayed. As shown in the inventory section, your weight is displayed in the custom inventory. It can also be displayed on the HUD, which is configurable within the wl.config file: undefined

When you become over encumbered, the letter's on the HUD will turn red: undefined

If you turn on advanced tooltips (Holding F3 + H), you will get an advanced view of your current weight (NOTE: This is only available on the HUD display of your weight. If you toggle it off in the config, you will not see advanced weight!): undefined

There is a small bug with the advanced HUD display that I am currently working to fix.

Enchantments
Click to reveal
Currently, there is only one enchantment in this mod, Strong Back. This Enchantment can be applied to chestplates only, but has quite a big effect on the player's max weight:

When worn, it will increase the player's max weight by 30 (multiplied by the Enchantment's level). The Enchantment is as rare as getting protection, and only has three levels. As shown in the screenshots, Strong Back I, II, and III increase the player's max weight by the amount above, multiplied by the Enchantment level (all amounts can be set in the config file if wanted):


Strong Back I


Strong Back II


Strong Back III

Potions Affecting Player
Click to reveal
A new feature added in v1.0.2 introduces a mechanic that affects the player's max weight when a Strength, or Weakness potion is active. With Strength, the player will experience increased max weight for the duration of the potion, multiplied by the potion's amplifier:

With Weakness, the player will experience decreased max weight for the duration of the potion, multiplied by the potion's amplifier:

All of the variables are changeable within the config file, and sync between server and client.

Change Log
Click to reveal
Version 1.0.2:
+ Added Strong Back Enchantment (I, II, III) for body armor, which increases your max carry weight by 30 multiplied by the Enchantment level.
+ Added max weight buff of 40 when having the Strength potion active (multiplied by it's amplifier).
+ Added max weight debuff of 30 when having the weakness potion active (multiplied by it's amplifier).
+ Added more config switches for better customization.
* Reworked max weight system to run faster.
* Reworked Backpack rendering to run faster.

Version 1.0.1:
* Fixed weights not being loaded for mods added after .json file was created
* Fixed Backpack's not rendering correctly when player starts sneaking
* Fixed Backpack's not rendering when restarting your game
* Fixed bug that would crash the game if attempting to upgrade the Large Backpack

Version 1.0.0:
Release!

Mod Spotlights
Click to reveal


If you make one, inform me through this thread and it will be posted here!

API
Click to reveal
The API for this mod can be used to add Weight to your own mod items, and to make other items that modify the player's max weight. I do plan to add an easy way of creating new backpack's through json in later updates.

How the WeightLimit.json works:
Click to reveal
When first loading up the mod, a file will be created in your config directory called "WeightLimit.json" (WeightLimitServer.json on servers). This file holds all the weight values for the items in the game. If you decide to add more mods to your game after creating this file, the game will create a backup of your previous WeightLimit.json file (in case you changed the values), and create a new one with the updated items. In addition, there is a file called "WeightLimitDefaultBackup-DO-NOT-MODIFY.json" and, as it states in the name, you SHOULD NOT delete nor modify this file in anyway. If you do, there is a chance the game will not create a backup when needed.

Source
Click to reveal
The source of my mod can be downloaded here: Latest Version | Earlier Versions: 1.0.0, 1.0.1

Current Known Bugs
Click to reveal
 - When adding ".6" to any weight value, the numbers mess up in advanced display mode.

Disclaimer
Click to reveal
You may use my mod in your modpack if you meet these requirements:

1: You must give full credit to me (HappyKiller1O1) for creating this mod, and provide a link to this thread.
2: You must not EVER state you helped in the creation of this mod.
3: You must not make money of your modpack.
4: Any issues or bugs must be handled internally first. I do not want people replying to this thread about my mod not working in a mod pack because of a bug I might have fixed ages ago.

If you meet these, you may use my mod in your modpack.

You DO NOT have permission to:
Redistribute my mod on any other site, or separate post.
Copy the source of my mod, and claim it as your own.

Minecraft is a trademark of Mojang, and I am in no way affiliated with them.

Be sure to suggest any new additions, and report any bugs to this thread!

MAKE SURE TO DELETE YOUR 'wl.cfg' FILE WHEN UPDATING TO A NEW VERSION!

WARNING:

This mod was made using Minecraft Forge version 1.8.8 - 11.15.0.1655 and is REQUIRED to play this mod! DO NOT report any issues you may come across without making sure you are using the version of forge listed!

DO NOT report any bugs if you're using a previous version of the mod. Chances are, I already fixed it in later versions.
CreditHappyKiller1O1
Progress30% complete
Game VersionMinecraft 1.8
Tags

2 Update Logs

Version 1.0.2 : by HappyKiller1O1 01/25/2016 7:30:41 pmJan 25th, 2016

+ Added Strong Back Enchantment (I, II, III) for body armor, which increases your max carry weight by 30 multiplied by the Enchantment level.
+ Added max weight buff of 40 when having the Strength potion active (multiplied by it's amplifier).
+ Added max weight debuff of 30 when having the weakness potion active (multiplied by it's amplifier).
+ Added more config switches for better customization.
* Reworked max weight system to run faster.
* Reworked Backpack rendering to run faster.
LOAD MORE LOGS

Create an account or sign in to comment.

1
02/02/2016 9:00 pm
Level 1 : New Explorer
Elven_Randomness
Elven_Randomness's Avatar
Would it be okay if I did a mod review of this for my YouTube Channel?
1
02/03/2016 4:50 pm
Level 14 : Journeyman Modder
HappyKiller1O1
HappyKiller1O1's Avatar
Yes, I would love that! Make sure to send me a message with the link so I can update the post with it. :)
1
02/03/2016 6:56 pm
Level 1 : New Explorer
Elven_Randomness
Elven_Randomness's Avatar
1
02/03/2016 10:16 pm
Level 14 : Journeyman Modder
HappyKiller1O1
HappyKiller1O1's Avatar
Thanks for the review! I'll be adding it to the Mod Spotlights section. :)
1
01/22/2016 5:06 pm
Level 14 : Journeyman Modder
HappyKiller1O1
HappyKiller1O1's Avatar
Updated to version 1.0.1!
1
01/21/2016 9:47 pm
Level 1 : New Miner
That Derpy Enderdude
That Derpy Enderdude's Avatar
Hmm, I beleive I have discovered a bug. When trying to upgrade I clicked on some leather with a stack of leather and my game crashed. When the game was reloaded I tried to click on the upgrade station which again crashed the game. Any ideas?
1
01/22/2016 12:45 am
Level 14 : Journeyman Modder
HappyKiller1O1
HappyKiller1O1's Avatar
I've tried to re-create it, but I am not seeming to get anywhere. If you post a crash report, I can get it fixed tonight. :)
1
01/22/2016 12:39 am
Level 14 : Journeyman Modder
HappyKiller1O1
HappyKiller1O1's Avatar
Please post the crash report. I am working on some bug fixes now, and would like to fix this if it's a problem with my mod alone.
1
01/21/2016 10:45 pm
Level 7 : Apprentice Architect
Jaws_2005
Jaws_2005's Avatar
do you have any other mods installed?
if so, remove them and try again, if not. its a bug
1
01/21/2016 5:28 pm
Level 7 : Apprentice Architect
Jaws_2005
Jaws_2005's Avatar
very interesting mod, might I suggest that when you eat certain foods like cookie or cake, your weight increase and you must walk, and or run to lower it
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome