Felippe Posted March 4, 2016 Share Posted March 4, 2016 Hi there, I wanted to know how can I change the durability of armor, clothing and structures with the command: c_select() c_sel() For example I can craft an axe, drop it and use this to change the number of uses of that particular axe: c_select() c_sel().components.finiteuses:SetUses(1000) How can I do this with: 1. Armor, a Log Suit for example. Tried this, but it just went back to the cap (100%): c_select() c_sel().components.armor:SetPercent(2.00) 2. Clothing, a Winter Hat for example. 3. Structures, a Science Machine or a Stone Wall for example. Can I change the base health, make it fire immune or indestructible with "c_select() c_sel()"? Did a search and only found this, which solved the tools/weapons part: Thanks for any help. Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/ Share on other sites More sharing options...
zUsername Posted March 4, 2016 Share Posted March 4, 2016 You should try this instead of SetPercent c_select() c_sel().components.armor.maxcondition = 2000 c_select() c_sel().components.armor.condition = 2000 Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-729733 Share on other sites More sharing options...
Felippe Posted March 4, 2016 Author Share Posted March 4, 2016 Thanks it worked! Tried this with walls, but crashed: c_select() c_sel().components.health.maxhealth = 20000 c_select() c_sel().components.health.currenthealth = 20000 Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-729788 Share on other sites More sharing options...
zUsername Posted March 4, 2016 Share Posted March 4, 2016 25 minutes ago, Felippe said: Thanks it worked! Tried this with walls, but crashed: c_select() c_sel().components.health.maxhealth = 20000 c_select() c_sel().components.health.currenthealth = 20000 c_select() c_sel().components.health:SetMaxHealth(2000) Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-729795 Share on other sites More sharing options...
Felippe Posted March 4, 2016 Author Share Posted March 4, 2016 Just now, zUsername said: c_select() c_sel().components.health:SetMaxHealth(2000) Tried that one, wall gets upgraded visually, but still takes 3 hammer hits to destroy. These didn't work either: c_select() c_sel().components.health.invincible = true c_select() c_sel().components.health.vulnerabletoheatdamage = false Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-729796 Share on other sites More sharing options...
zUsername Posted March 4, 2016 Share Posted March 4, 2016 7 minutes ago, Felippe said: Tried that one, wall gets upgraded visually, but still takes 3 hammer hits to destroy. These didn't work either: c_select() c_sel().components.health.invincible = true c_select() c_sel().components.health.vulnerabletoheatdamage = false Of course. This code: c_select() c_sel().components.health:SetMaxHealth(2000) will change wall health ( like Hounds attack your wall it will decrease health wall ). Maybe this code you will want: c_select() c_sel().components.workable:SetWorkLeft(2000) Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-729797 Share on other sites More sharing options...
Felippe Posted March 4, 2016 Author Share Posted March 4, 2016 Awesome, thanks again! Any way to avoid creatures like Bearger still 1 hit them (AoE attack / just walk destroying them) or give them indestructible / fire immune properties? Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-729809 Share on other sites More sharing options...
zUsername Posted March 4, 2016 Share Posted March 4, 2016 (edited) 13 minutes ago, Felippe said: Awesome, thanks again! Any way to avoid creatures like Bearger still 1 hit them (AoE attack / just walk destroying them) or give them indestructible / fire immune properties? This will make giant can't destroy your wall: c_select() c_sel():RemoveComponent("workable") This will make your wall can't be set on fire : c_select() c_sel():RemoveComponent("propagator") c_select() c_sel():RemoveComponent("burnable") Edited March 4, 2016 by zUsername Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-729814 Share on other sites More sharing options...
Felippe Posted March 4, 2016 Author Share Posted March 4, 2016 (edited) Just now, zUsername said: This will make giant can't destroy your wall: c_select() c_sel():RemoveComponent("workable") Worked perfectly for both walls and structures like a Science Machine, I couldn't hammer them anymore so that's 2 in 1, what about fire damage? Any way to avoid it? EDIT: Hah it makes them immune to meteors as well. Edited March 4, 2016 by Felippe Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-729818 Share on other sites More sharing options...
Felippe Posted March 4, 2016 Author Share Posted March 4, 2016 9 minutes ago, zUsername said: c_select() c_sel():RemoveComponent("propagator") c_select() c_sel():RemoveComponent("burnable") Just burnable seems to do both in 1, thank you so much for the help! Just 2 types left, items like a winter hat and torches, any ideas? Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-729821 Share on other sites More sharing options...
Developer ImDaMisterL Posted March 4, 2016 Developer Share Posted March 4, 2016 14 minutes ago, Felippe said: Hah it makes them immune to meteors as well. Yeah, because what that code does, basically, is to not allow the wall to be "de-constructed" anymore. It's immune to everything now, mostly. How will players remove these walls now if they ever want to, though? O.o Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-729822 Share on other sites More sharing options...
Felippe Posted March 4, 2016 Author Share Posted March 4, 2016 (edited) Just now, ImDaMisterL said: Yeah, because what that code does, basically, is to not allow the wall to be "de-constructed" anymore. It's immune to everything now, mostly. How will players remove these walls now if they ever want to, though? O.o It's for a panic room and let's say a science machine, I had to spawn stuff like basalt before. Edited March 4, 2016 by Felippe Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-729823 Share on other sites More sharing options...
Developer ImDaMisterL Posted March 4, 2016 Developer Share Posted March 4, 2016 Just now, Felippe said: It's for a panic room and let's say a science machine. Oh, I see... Well, you just won't be able to close this panic room with you inside. Ever. Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-729824 Share on other sites More sharing options...
zUsername Posted March 4, 2016 Share Posted March 4, 2016 c_select() c_sel().components.fueled.maxfuel = 2000 c_select() c_sel().components.fueled.currentfuel = 2000 9 minutes ago, ImDaMisterL said: Oh, I see... Well, you just won't be able to close this panic room with you inside. Ever. He can using this to remove wall c_select() c_sel():Remove() Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-729829 Share on other sites More sharing options...
Developer ImDaMisterL Posted March 4, 2016 Developer Share Posted March 4, 2016 3 minutes ago, zUsername said: He can using this to remove wall c_select() c_sel():Remove() Yeah, but only by inputting that on the console... Feels kinda like cheating to me. A way to remove them through game means would be good. Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-729833 Share on other sites More sharing options...
Felippe Posted March 4, 2016 Author Share Posted March 4, 2016 (edited) 24 minutes ago, ImDaMisterL said: Oh, I see... Well, you just won't be able to close this panic room with you inside. Ever. Just something like this: Would be a pain to rebuild everything if a giant walks in and 1 hits everything. Edited March 4, 2016 by Felippe Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-729842 Share on other sites More sharing options...
Felippe Posted March 4, 2016 Author Share Posted March 4, 2016 2 hours ago, zUsername said: c_select() c_sel():Remove() Is there a similar command for items in your inventory? Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-729881 Share on other sites More sharing options...
Aquaterion Posted March 5, 2016 Share Posted March 5, 2016 2 hours ago, Felippe said: Is there a similar command for items in your inventory? I think you'd have to drop it. There probably is a way but I think it would be too complicated Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-729927 Share on other sites More sharing options...
Felippe Posted March 5, 2016 Author Share Posted March 5, 2016 6 hours ago, Aquaterion said: I think you'd have to drop it. There probably is a way but I think it would be too complicated Yeah tried this one: c_mouse():Remove() But didn't work, so I just moved on. Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-730034 Share on other sites More sharing options...
Aquaterion Posted March 5, 2016 Share Posted March 5, 2016 5 hours ago, Felippe said: Yeah tried this one: c_mouse():Remove() But didn't work, so I just moved on. well c_mouse() aint real command so ye Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-730077 Share on other sites More sharing options...
Felippe Posted March 5, 2016 Author Share Posted March 5, 2016 9 hours ago, Aquaterion said: well c_mouse() aint real command so ye No idea, came from this post: Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-730235 Share on other sites More sharing options...
Aquaterion Posted March 5, 2016 Share Posted March 5, 2016 Just now, Felippe said: No idea, came from this post: did u try using the command u were using before with a dropped item? it should work Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-730236 Share on other sites More sharing options...
Felippe Posted March 5, 2016 Author Share Posted March 5, 2016 1 hour ago, Aquaterion said: did u try using the command u were using before with a dropped item? it should work Yeah that one works fine, I just wanted to know if there's another way without the need to drop them (like when you're around a bunch of players). It's OK, I'll just keep going a screen or 2 away to do it. Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-730302 Share on other sites More sharing options...
Mr.Derp Dirtest Posted February 22, 2025 Share Posted February 22, 2025 For some reason, with modded items, at least, the c_select() c_sel().components.finiteuses:SetUses(1000) command doesn't work very consistently for me. I'm using the Above the Clouds mod and trying to give the shears more durability by dropping it on the ground and using the command, but it doesn't seem to be working for me. Also, is there a way to set infinite durability on the tools? I have a mod that does it for the base game stuff, but it doesn't work for modded stuff. This is the mod, by the way. https://steamcommunity.com/sharedfiles/filedetails/?id=3092787387 Link to comment https://forums.kleientertainment.com/forums/topic/65107-help-custom-durability-armor-clothing-and-structures/#findComment-1800667 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now