Closed HarrisFauntleroy closed 6 years ago
@darkhax I could look into adding support for preventing usage on the armour equiping if you feel this is valid for the mod?
Detecting items in the inventory isn't a technical issue, the main reason against it would be that would be all over the floor. I will mark that as a potential feature request. Armor slots are already supported, so I am guessing the feature broke during an update, or another mod broke it.
Hmm, I've never tested that feature in SevTech tbh I can check shortly. Unless your on the case. But from our expereicnce I don't feel like preventing people from having it in their inventoy is a bad thing. It's better than all over the floor, in one way it's nice so the players are able to collect but unable to use (if a tool/weapon etc..) as recipes would be staged they can't get around cheating items from friends cos they won't be able to craft said thing.
Yeah the armour config is definately set to not allow armour but we can still wear it
https://github.com/TheQuantumGeneral/Quaesitum/blob/master/config/itemstages.cfg
Also yeah Itd be nice having a config setting for force dropping Items from the inventory so friends can't share things that work in the inventory (batteries/Auto feeders/item magnets) etc
It's a fair point. But this config/setting would not work for servers. Think of the items being spewn all over the place? If anything is this would be a thing, IS could tell the item to despawn a lot quicker than "normal" drops. Or even make the item vanish altogether. Either or both, but both could work with a toggle setting for one or other. As that would let pack makers (and the boring server owners) to change how the drop mechanic works.
Yeah If nothing else though it'd be a nice little safety catch for a well designed mod pack. I've gone to a lot of effort in my mod pack Quaesitum with item stages, mob stages and game stages to ensure nothing is attainable before you're on the correct stage but players sharing our the occasional mistake could necessitate such a config.
If there's a situation where there's enough items dropping to cause an issue. That's on the pack maker
After testing the main issue of being able to equip armor, this feature seems to be working correctly. In my test I used this script mods.ItemStages.addItemStage("one", <minecraft:iron_chestplate>);
. I put the item on the ground, picked it up into a non-selected slot, opened my inventory and put the item in the armor slot. The item was immediately dropped onto the ground as expected. Please note that this test must not be performed in creative mod, as creative mode intentionally bypasses the checks in this mod for testing purposes.
Okay. I figured it out. At least for ic2 armour it's not accounting the charge state.
Players were getting uncharged nano and quantum armour from mob drops. Which they could wear. But once they charged them to full they were restricted by staging
I am going to close this as the root issue does not seem to be an actual issue. Tools and armors have different states which require special handling, that's just how they are. You can open up feature requests for the other stuff, but I will get to them eventually anyhow.
A lot of my players are reporting that zombies are dropping Nano armour from IC2. And they are able to equip it (just not hold it in their hotbar
Also you are able to carry restricted items in your inventory as long as you don't hold them in your hand