Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import crafttweaker.item.IItemStack;
- /*
- import mods.contenttweaker.VanillaFactory;
- import mods.contenttweaker.Block;
- import mods.contenttweaker.BlockMaterial;
- import mods.contenttweaker.BlockState;
- */
- import mods.hitwithaxe.Chopping;
- /*// Vanilla \\*/
- //Oak
- registerStrippedLogRecipe("minecraft:log", 0, 4, false, "hitwithaxe:debarked_oak");
- //Spruce
- registerStrippedLogRecipe("minecraft:log", 1, 4, false, "hitwithaxe:debarked_spruce");
- //Birch
- registerStrippedLogRecipe("minecraft:log", 2, 4, false, "hitwithaxe:debarked_birch");
- //Jungle
- registerStrippedLogRecipe("minecraft:log", 3, 4, false, "hitwithaxe:debarked_jungle");
- //Acacia
- registerStrippedLogRecipe("minecraft:log2", 0, 4, false, "hitwithaxe:debarked_acacia");
- //Dark Oak
- registerStrippedLogRecipe("minecraft:log2", 1, 4, false, "hitwithaxe:debarked_dark_oak");
- /*// Plants \\*/
- //Ashen
- registerStrippedLogRecipe("plants2:nether_log", 0, 5, true, "hitwithaxe:debarked_ash");
- //Blazing
- registerStrippedLogRecipe("plants2:nether_log", 1, 5, true, "hitwithaxe:debarked_blaze");
- //Black Kauri
- registerStrippedLogRecipe("plants2:log_0", 0, 5, true, "hitwithaxe:debarked_black_kauri");
- //Brazillian Pine
- registerStrippedLogRecipe("plants2:log_0", 1, 5, true, "hitwithaxe:debarked_brazillian_pine");
- //Incense Cedar
- registerStrippedLogRecipe("plants2:log_0", 2, 5, true, "hitwithaxe:debarked_incense_cedar");
- //Murray Pine
- registerStrippedLogRecipe("plants2:log_0", 3, 5, true, "hitwithaxe:debarked_murray_pine");
- //Crystal
- registerStrippedLogRecipe("plants2:crystal_log", 0, 5, true, "hitwithaxe:debarked_crystal");
- //Dark Crystal
- registerStrippedLogRecipe("plants2:crystal_log", 1, 5, true, "hitwithaxe:debarked_dark_crystal");
- /*// The Betweenlands \\*/
- //Weedwood
- registerStrippedLogRecipeNoneAxis("thebetweenlands:log_weedwood", 0, 4, false, "hitwithaxe:debarked_weedwood");
- //Rubber
- Chopping.addRecipe("thebetweenlands:log_rubber", 32767, "hitwithaxe:debarked_rubber", 1, null); //None Axis
- //Giant Root
- Chopping.addRecipe("thebetweenlands:giant_root", 32767, "hitwithaxe:debarked_root", 1, null); //None Axis
- /*
- // Natura \\
- //Maple
- registerStrippedLogRecipe("natura:overworld_logs", 0, 4, false, "hitwithaxe:debarked_maple");
- //Silverbell
- registerStrippedLogRecipe("natura:overworld_logs", 1, 4, false, "hitwithaxe:debarked_silverbell");
- //Amaranth
- registerStrippedLogRecipe("natura:overworld_logs", 2, 4, false, "hitwithaxe:debarked_amaranth");
- //Tiger
- registerStrippedLogRecipe("natura:overworld_logs", 3, 4, false, "hitwithaxe:debarked_tiger");
- //Willow
- registerStrippedLogRecipe("natura:overworld_logs2", 0, 4, false, "hitwithaxe:debarked_willow");
- //Eucalyptus
- registerStrippedLogRecipe("natura:overworld_logs2", 1, 4, false, "hitwithaxe:debarked_eucalyptus");
- //Hopseed
- registerStrippedLogRecipe("natura:overworld_logs2", 2, 4, false, "hitwithaxe:debarked_hopseed");
- //Sakura
- registerStrippedLogRecipe("natura:overworld_logs2", 3, 4, false, "hitwithaxe:debarked_sakura");
- */
- /*// Rustic \\*/
- //Olive
- registerStrippedLogRecipe("rustic:log", 0, 4, false, "hitwithaxe:debarked_olive");
- //Ironwood
- registerStrippedLogRecipe("rustic:log", 1, 4, false, "hitwithaxe:debarked_ironwood");
- /*
- THE CODE HERE HAS BEEN DETERMINED TO BE OBSOLETE DUE TO THE COMPLETE LACK OF BLOCKSTATE FUNCTIONALITY
- // Twilight Forest \\
- //Twilight Oak
- registerStrippedLogBlock("twilightforest:twilight_log", "twilight");
- //Canopy Tree
- registerStrippedLogBlock("twilightforest:twilight_log:1", "canopy_tree");
- function registerStrippedLogBlock(woodItem as string, woodType as string){
- var strippedLogName = "stripped_" + woodType + "_log";
- var strippedLog = VanillaFactory.createBlock(strippedLogName, <blockmaterial:wood>);
- strippedLog.setBlockSoundType(<soundtype:wood>);
- strippedLog.setBlockHardness(2.0);
- strippedLog.setBlockResistance(10.0);
- strippedLog.setToolClass("axe");
- strippedLog.register();
- }
- */
- function registerStrippedLogRecipe(woodID as string, woodMeta as int, woodMetaIncrement as int,
- swapOneAndZero as bool, strippedWoodID as string){
- if(!swapOneAndZero){
- Chopping.addRecipe(woodID, woodMeta, strippedWoodID, 1, null); //Y Axis
- Chopping.addRecipe(woodID, woodMeta + woodMetaIncrement, strippedWoodID, 0, null); //X Axis
- }
- else{
- Chopping.addRecipe(woodID, woodMeta + woodMetaIncrement, strippedWoodID, 1, null); //Y Axis
- Chopping.addRecipe(woodID, woodMeta, strippedWoodID, 0, null); //X Axis
- }
- Chopping.addRecipe(woodID, woodMeta + (woodMetaIncrement * 2), strippedWoodID, 2, null); //Z Axis
- }
- function registerStrippedLogRecipeNoneAxis(woodID as string, woodMeta as int, woodMetaIncrement as int,
- swapOneAndZero as bool, strippedWoodID as string){
- registerStrippedLogRecipe(woodID, woodMeta, woodMetaIncrement, swapOneAndZero, strippedWoodID);
- Chopping.addRecipe(woodID, woodMeta + (woodMetaIncrement * 3), strippedWoodID, 1, null); //None Axis
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement