The Meaning of Life, the Universe, and Everything.
Join Date:
8/9/2013
Posts:
211
Minecraft:
HappyKiller1O1
Xbox:
HappyKiller101
Member Details
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
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:
You can craft the Small Backpack with some leather, sticks, and a chest:
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
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:
Once made, it will look quite inviting when placed:
Next, just open it, and you'll be greeted with this screen:
Once there, simply follow these steps: Step 1 Place a backpack in the first slot:
Step 2 Put the material, and amount required to upgrade the backpack into the second slot:
Step 3 Enjoy your new backpack! This can also be done on the Medium Backpack, and soon to be Large!
Custom Inventory
This mod also adds a custom inventory, which is accessed by pressing the 'R' key (changeable):
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
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:
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:
When you become over encumbered, the letter's on the HUD will turn red:
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!):
There is a small bug with the advanced HUD display that I am currently working to fix.
Enchantments
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
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
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
Mod Review by Elven_Randomness:
If you make one, inform me through this thread and it will be posted here!
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
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.
- When adding ".6" to any weight value, the numbers mess up in advanced display mode.
Disclaimer
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.
I really like the idea! If you are going to go with a Fallout idea (seeing your profile picture), shouldn't you have unlimited inventory slots, but limited carry weight? Also, will mods be supported for items?
The Meaning of Life, the Universe, and Everything.
Join Date:
8/9/2013
Posts:
211
Minecraft:
HappyKiller1O1
Xbox:
HappyKiller101
Member Details
It wasn't actually a Fallout theme. It might be an interesting addition to add unlimited inventory slots (or expandable ones), but currently it will have to be limited weight, and inventory. And as stated in the post, all mod items and blocks will be loaded into a default .json file in your config folder directory upon first load of the game with the mod. All mod item's will have a default weight of 0.5 (unless they use my mod API to define them), and can be changed within this file (called 'WeightLimit.json'). If you join a server, the server weight values will be synced with your client.
One of the main things I've found is that weight values might be too high, or too low for vanilla items. If you find this, be sure to send me what you think the values should be; and I will look into changing them.
The Meaning of Life, the Universe, and Everything.
Join Date:
8/9/2013
Posts:
211
Minecraft:
HappyKiller1O1
Xbox:
HappyKiller101
Member Details
During the game's load, I run through the Item Registry (it contains blocks as well because blocks become items when in your hand), and loads all of them into the config. If a certain mod item is using my API, it will add their definition of the weight for their item, rather than the default 0.5.
Once the file is created, you can edit all the values as you wish. Although, I do believe you might have to delete the file when adding additional mods after it's creation. I will get to fixing this in the next update.
I'll probably somewhen make a heavily hard-core modpack, because atm I'm having it hard to find any motivation to keep playing the game (except getting a perfect laser drill farm XD)
lol I'm surprised it didn't cross your mind! XD Considering you're making a weight mod and you have a fallout profile pic...I would've sworn that Buffout would spark an idea ;D
Potion of Strength 1 could increase it by like, 50 or whatever, for the duration.
Potion of Strength 2 would be 100 (or whatever you want it to be).
I can see myself actually crafting them after a long haul of mining.
The Meaning of Life, the Universe, and Everything.
Join Date:
8/9/2013
Posts:
211
Minecraft:
HappyKiller1O1
Xbox:
HappyKiller101
Member Details
The only difficulty of this is the Minecraft code. I find it nearly impossible to actually get the variation it may be (1, 2, etc.), and it is quite annoying to have it only increase your weight by one variable even though you have a stronger potion. Currently, I will be adding an enchantment for leggings that will increase your carry weight by a certain amount. I also am looking into to decreasing your max carry weight when having weakness active. You have gotten me thinking about how to make this mod more realistic, so drugs might become an option.
The Meaning of Life, the Universe, and Everything.
Join Date:
8/9/2013
Posts:
211
Minecraft:
HappyKiller1O1
Xbox:
HappyKiller101
Member Details
I'm very happy for your feedback. No matter if it's deemed impossible, nothing can't be accomplished. I'll have an update in a few days with some amazing new features! Enjoy the mod.
You can craft the Small Backpack with some leather, sticks, and a chest:
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.
Once made, it will look quite inviting when placed:
Next, just open it, and you'll be greeted with this screen:
Once there, simply follow these steps:
Step 1 Place a backpack in the first slot:
Step 2 Put the material, and amount required to upgrade the backpack into the second slot:
Step 3 Enjoy your new backpack! This can also be done on the Medium Backpack, and soon to be Large!
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!
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:
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:
When you become over encumbered, the letter's on the HUD will turn red:
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!):
There is a small bug with the advanced HUD display that I am currently working to fix.
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
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.
+ 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!
If you make one, inform me through this thread and it will be posted here!
DO NOT report any bugs if you're using a previous version of the mod. Chances are, I already fixed it in later versions.
- Reserved For Pictures -
Looks like a nice mod. Not gonna use it, though xD
I already have enough with Flan's mod juggernaut armor slowing me down naturally.
Thanks for looking. I would say this mod is more for people that want a challenge with their hardcore survival. xD Happy Crafting!
I really like the idea! If you are going to go with a Fallout idea (seeing your profile picture), shouldn't you have unlimited inventory slots, but limited carry weight? Also, will mods be supported for items?
It wasn't actually a Fallout theme. It might be an interesting addition to add unlimited inventory slots (or expandable ones), but currently it will have to be limited weight, and inventory. And as stated in the post, all mod items and blocks will be loaded into a default .json file in your config folder directory upon first load of the game with the mod. All mod item's will have a default weight of 0.5 (unless they use my mod API to define them), and can be changed within this file (called 'WeightLimit.json'). If you join a server, the server weight values will be synced with your client.
One of the main things I've found is that weight values might be too high, or too low for vanilla items. If you find this, be sure to send me what you think the values should be; and I will look into changing them.
How would you config weight from items in other mods? o.O
During the game's load, I run through the Item Registry (it contains blocks as well because blocks become items when in your hand), and loads all of them into the config. If a certain mod item is using my API, it will add their definition of the weight for their item, rather than the default 0.5.
Once the file is created, you can edit all the values as you wish. Although, I do believe you might have to delete the file when adding additional mods after it's creation. I will get to fixing this in the next update.
Working on a fix for having to delete the WeightLimit.json when loading new mods after it's creation.
Next version should be out by tomorrow, will be fixing loading new items to an old json!
I'll probably somewhen make a heavily hard-core modpack, because atm I'm having it hard to find any motivation to keep playing the game (except getting a perfect laser drill farm XD)
Updated to v1.0.1! This update includes fixes for the backpack, WeightLimit.json, and more!
Added a poll, so please inform me about what I should add next to the mod.
Another question...would drinking a Potion of Strength temporarily increase your maximum carry weight?
Would make sense if it does. Just my two cents.
Hm, I never even thought about that. That'll be in the next update.
lol I'm surprised it didn't cross your mind! XD Considering you're making a weight mod and you have a fallout profile pic...I would've sworn that Buffout would spark an idea ;D
Potion of Strength 1 could increase it by like, 50 or whatever, for the duration.
Potion of Strength 2 would be 100 (or whatever you want it to be).
I can see myself actually crafting them after a long haul of mining.
The only difficulty of this is the Minecraft code. I find it nearly impossible to actually get the variation it may be (1, 2, etc.), and it is quite annoying to have it only increase your weight by one variable even though you have a stronger potion. Currently, I will be adding an enchantment for leggings that will increase your carry weight by a certain amount. I also am looking into to decreasing your max carry weight when having weakness active. You have gotten me thinking about how to make this mod more realistic, so drugs might become an option.
Neat lol, but don't kill yourself trying to do something complicated. I've no idea how to program, so don't kill me! XD
I am but a simple tester and player of mods.
I'm very happy for your feedback. No matter if it's deemed impossible, nothing can't be accomplished. I'll have an update in a few days with some amazing new features! Enjoy the mod.
will you release 1.8.0 version?