Reichwulfe Posted August 30, 2013 Share Posted August 30, 2013 Well, I've been toying around with a custom variant of the Too many items mod, posted by Milk.But when it comes to spawning, Tenpegs,TentKits, or tents themselves,the game seemingly ignores the spawn input?.So If someone would be willing to look over the code and tell me what is wrong,it would be greatly appreciated. getCore()getPlayer() --F1 Is For Tools--F2 Is For Building Supplies function AddItem(Character)if isKeyDown(Keyboard.KEY_1) andisKeyDown(Keyboard.KEY_F1) thencharacter:getInventory():AddItem("Base.Hammer");endif isKeyDown(Keyboard.KEY_2) andisKeyDown(Keyboard.KEY_F1) thencharacter:getInventory():AddItem("Base.Screwdriver");endif isKeyDown(Keyboard.KEY_3) andisKeyDown(Keyboard.KEY_F1) thencharacter:getInventory():AddItem("Base.Sledgehammer");endif isKeyDown(Keyboard.KEY_4) andisKeyDown(Keyboard.KEY_F1) thencharacter:getInventory():AddItem("Base.Saw");endif isKeyDown(Keyboard.KEY_1) andisKeyDown(Keyboard.KEY_F2) thencharacter:getInventory():AddItem("Base.Nails");endif isKeyDown(Keyboard.KEY_2) andisKeyDown(Keyboard.KEY_F2) thencharacter:getInventory():AddItem("Base.Plank");endif isKeyDown(Keyboard.KEY_3) andisKeyDown(Keyboard.KEY_F2) thencharacter:getInventory():AddItem("Base.Sheet");endif isKeyDown(Keyboard.KEY_4) andisKeyDown(Keyboard.KEY_F2) thencharacter:getInventory():AddItem("Base.TentPeg");endif isKeyDown(Keyboard.KEY_5) andisKeyDown(Keyboard.KEY_F2) thencharacter:getInventory():AddItem("Base.CampingTent");endif isKeyDown(Keyboard.KEY_6) andisKeyDown(Keyboard.KEY_F2) thencharacter:getInventory():AddItem("Base.CampingTentKit");endif isKeyDown(Keyboard.KEY_7) andisKeyDown(Keyboard.KEY_F2) thencharacter:getInventory():AddItem("Base.Doorknob");endif isKeyDown(Keyboard.KEY_8) andisKeyDown(Keyboard.KEY_F2) thencharacter:getInventory():AddItem("Base.Hinge");endend Link to comment Share on other sites More sharing options...
RoboMat Posted August 30, 2013 Share Posted August 30, 2013 The camping items aren't located in the Base module but instead in the "camping" module. Replace Base for all camping items with "camping". Example: character:getInventory():AddItem("camping.TentPeg"); Link to comment Share on other sites More sharing options...
Reichwulfe Posted August 30, 2013 Author Share Posted August 30, 2013 Thank you SOOOO Much Robomat!,Shows what lack of sleep will do. x)I completely didn't even notice I Miss-directed the read for the module!And for Any future reference. to anyone else, make sure camping is lower case c.otherwise it refuses to spawn anything. Link to comment 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