It has 3 uses.
It is un-enchantable.
It can repair all vanilla armor, tools and weapons from any durability to full durability.
After each repair the tools takes -1 use/durability.
The tool should be able to repair any mod-added armor, tool and weapons too.
How do I go about that? Adding and all that I have no problem, it's the scripting I have a problem with.
3 uses: Just set maxDamage to 3. Once the tool reaches 3 damage, it will break. un-enchantable: Current only armor can be enchanted so no worries there. =\ repair all + mod: Although repairing would be possible, you can't detect item types so all items would need to be added manually. You may be able to just check if an item is damaged and if so, repair it, but you risk "repairing" a IC2 tool. per repair = -1 durability: Do you mean per item repaired or per blowtorch use? The 2nd only requires you to use itemstack.damageItem(1); at the end of your trigger. If you are damaging per item repaired, then you have to add a check in your search loop that checks the remaining durability of the item and stop the loop when the tool breaks. (when damage is 2 and you are about to damage it again).
Hope that helps.
@CubeX2 - The documentation seems to be missing the textureFileStill and textureFileFlowing attributes.
Would it be possible to add a mod.getItemType() function to complement mod.getBlockType()? FatBobTheSlob's idea made me realize that we can identify the block type but not the item type.
i need some help. i have made a custom energy grid / logistic grid for transferring energy / items. for now i use bulky blocks for cables / pipes. any idea how to make pipes / cables like the other mods, small pipe like ?
thank you
There isn't a way to do pipes currently but you could so an energy system that is similar to Better Than Wolves. You use full sized blocks at intersections or corners and use 'post' type blocks with low thickness to 'carry' the power in a straight line.
thank you 4 the reply. i have done the power system and i am using full blocks for cables, but i needed something better...
perhaps next time.
any idea what is going on with the cubex2? will there be any update on the project?
What do you mean by something better... Post type blocks change orientation based on the player's facing, so if you're looking at a side of the block (not top or bottom) it will be placed horizontally (like _ instead of like |)
Also, if you do make a post, you can set the parameter 'thickness' to 1, .75, .5, or .25. 1 is a regular sized block, .25 is quarter size.
Sorry for not saying anything in the last weeks but I was and I'm still really busy with school due to my A-Levels. So don't expect any updates in the next months except for updates to newer minecraft updates.
Rollback Post to RevisionRollBack
I'm on twitter: @CubeX2_. Follow me for upcoming features and other stuff ;).
Hi CubeX2, i see on page 305 that you had mentioned that you planned to allow hoppers to interact with furnaces and then in the change log you had mentioned crashes using hoppers on furnaces should be fixed, i was wondering if they are supposed to still be working with vesrion 1.3.5 universal for 1.6.2 (im on 1.6.4 so maybe this is why but it mod doesnt crash minecraft so figured it was good to go lol)
Thanks for great mods!! That multipage chest is so extremely useful
I have a concern/question though. I am using it for Minecraft 1.6.4 and while it works perfectly like normal, there are two things a little different from previous versions I remember.. Firstly, the "+" button to move up in pages is infringing in the NEI menu making it difficult to press unless I disable it or search for something that shows no items. It seems the GUI is very far to the right. Also, I do not have the Inventory Tweaks buttons anymore to sort it. Is this coming in a newer version?
Hi! I have a question about Custom Stuff 2!
Please help make a door in minecraft 1.4.7 really need a new door! I have tried to do so as it is written in the wiki but I can't did it! I get only one unit instead of two doors in height! And how to make an item for a door in 1.4.7? Please help me to write the code for the door in 2 Custom Stuff 0.9.8! Many thanks in advance!
Sincerely Nikitos35!
i ripped this code off the wiki and tried to add support for meta data.
The m variable is declared inside the block file and represents the number of unique meta data blocks beyond the basic block.
The metaName is an array also declared inside the block file that stores a unique name for each meta data.
it seems that i can not read those two variables from inside the mod.js file because i am getting a NullPointerException the first time i try to use an alias
what am i doing wrong, or is there a better way to do this?
please excuse any obvious mistakes this is my first time doing any real codeing in javascript
This may have already been suggested, but I couldn't find an instance of it.
In addition to adding the sort buttons from InventoryPlus, maybe add the ability to move all items of the same type with crtl-shift-leftclick, or something similar.
Hello! I want to report you a texture bug :http://www.postimg.o...mage/tp7qbbc3r/ iron-fiamond-obsidian furnaces' textures. What can I do or are you gonna fix it?
3 uses: Just set maxDamage to 3. Once the tool reaches 3 damage, it will break.
un-enchantable: Current only armor can be enchanted so no worries there. =\
repair all + mod: Although repairing would be possible, you can't detect item types so all items would need to be added manually. You may be able to just check if an item is damaged and if so, repair it, but you risk "repairing" a IC2 tool.
per repair = -1 durability: Do you mean per item repaired or per blowtorch use? The 2nd only requires you to use itemstack.damageItem(1); at the end of your trigger. If you are damaging per item repaired, then you have to add a check in your search loop that checks the remaining durability of the item and stop the loop when the tool breaks. (when damage is 2 and you are about to damage it again).
Hope that helps.
@CubeX2 - The documentation seems to be missing the textureFileStill and textureFileFlowing attributes.
Would it be possible to add a mod.getItemType() function to complement mod.getBlockType()? FatBobTheSlob's idea made me realize that we can identify the block type but not the item type.
There isn't a way to do pipes currently but you could so an energy system that is similar to Better Than Wolves. You use full sized blocks at intersections or corners and use 'post' type blocks with low thickness to 'carry' the power in a straight line.
What do you mean by something better... Post type blocks change orientation based on the player's facing, so if you're looking at a side of the block (not top or bottom) it will be placed horizontally (like _ instead of like |)
Also, if you do make a post, you can set the parameter 'thickness' to 1, .75, .5, or .25. 1 is a regular sized block, .25 is quarter size.
Thanks for great mods!! That multipage chest is so extremely useful
I have a concern/question though. I am using it for Minecraft 1.6.4 and while it works perfectly like normal, there are two things a little different from previous versions I remember.. Firstly, the "+" button to move up in pages is infringing in the NEI menu making it difficult to press unless I disable it or search for something that shows no items. It seems the GUI is very far to the right. Also, I do not have the Inventory Tweaks buttons anymore to sort it. Is this coming in a newer version?
Here is a picture demonstrating:
Thank you
Please help make a door in minecraft 1.4.7 really need a new door! I have tried to do so as it is written in the wiki but I can't did it! I get only one unit instead of two doors in height! And how to make an item for a door in 1.4.7? Please help me to write the code for the door in 2 Custom Stuff 0.9.8! Many thanks in advance!
Sincerely Nikitos35!
in the mod.js file
{config.addBlockIdProperty( name, uid++ );
if (gui) mod.addGui(name + ".js", gui);
if (tile) mod.addTileEntity(name + ".js", tile);
mod.addBlock(name + ".js", type);
for (x=0;x<=m;x++)
{if (m!=0)
{mod.addAliasWithMetadata(config.getBlockId(name) + ":" + x, metaName[x]);
}
else
{mod.addAlias(config.getBlockId(name), name);
}
}
}
The m variable is declared inside the block file and represents the number of unique meta data blocks beyond the basic block.
The metaName is an array also declared inside the block file that stores a unique name for each meta data.
it seems that i can not read those two variables from inside the mod.js file because i am getting a NullPointerException the first time i try to use an alias
what am i doing wrong, or is there a better way to do this?
please excuse any obvious mistakes this is my first time doing any real codeing in javascript
In addition to adding the sort buttons from InventoryPlus, maybe add the ability to move all items of the same type with crtl-shift-leftclick, or something similar.
0.10.6b works for 1.6.4.
+1.
How it coded in CS2 0.10.6b:
How it looks on crafting table:
How it looks in NEI or in CraftGuide:
http://puu.sh/5b7Aw.jpg
http://puu.sh/5b7AO.png
it just stopped like that
the script is just for testing
sorry about my english