Component Box

Component Box 2.0.5

This is for the coming Rust update. Do not update prior
This update is for the coming Rust update. Do not update prior to the game update!

Fixed for Rust update
This is for the coming Rust update. Do not update prior to the game update
Fixed "Automatically place allowed items in the component box when picked up" items disappearing
  • Love
Reactions: TeeJayAwreka
Fixed "Allow players to drop the component box": false preventing all items from dropping
Fixed component box being ejected from corpse on death when "Leave component box on corpse when player is killed" is true
Looting from a dead players component box will try to deposit the items in to your own component box first, then your own inventory
If "Only allow players to carry 1 component box at a time" is enabled when trying to take another component box either by dragging, vacuum looting or fast looting, it will take all the items from that box and try to place them in your own component box, if that fails, your main inventory container and if that fails it will drop it in front of you
Plugin rewrite

The config has changed
Your old config will be wiped upon updating so back up first if you want to copy some settings over.
The config options weren't clear IMO so existing options have been changed to make more sense and additional config options have been added;
"Refund cost fraction (0.0 - 1.0)" Allows you to refund a fraction of the cost to craft when destroying a component box
"Allow players to drop the component box" - Allows players to drop the component box on the ground
"Allow players to store the component box in other containers" - Allows players to store the component box. This seemed like a intended feature that was hardcoded but didn't work with the way the hook it was in works
"Only allow players to carry 1 component box at a time" - This also seemed like a intended feature that was hardcoded but didn't work. I wasn't sure if people wanted this so I made it a option. If crafting is enabled you can only craft one if you do not already have one

The permission has changed.
There was some weirdness with the way permissions worked previously where it would grant and revoke permission based on some config options. This has been replaced with a single permission "componentbox.use" that players require to use the component box.
Players without permissions are not given a component box on spawn/join (if enabled), they can't craft or destroy one (if enabled) and they can't pick them up in the world or from a container. If they try to pick one up it will only open the container and allow them to loot it

Commands are the same
Functionality should be mostly the same beside the additional options
Added localization
  • Love
Reactions: TeeJayAwreka
Fix for Rust update
  • Love
Reactions: TeeJayAwreka
Toolboxes can now be moved around in your inventory.
They can also be stored in chests when empty if they are crafted and lost on death.
When lost on death the toolbox will go on your corpse if lost on death.
If you keep your toolbox on death it will drop the items inside but keep the toolbox when you respawn.
[FIX] Sorting plugins can no longer take the Component Box out of your inventory
Handle right clicking component box with a non-player entities inventory open
Removed debug