Advertisement
thephoenixlodge

Test AW functionality

Jan 18th, 2018
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. ////Imports
  2. import mods.artisanworktables.builder.RecipeBuilder;
  3.  
  4. ////Variables
  5. val ironChestPlate = <minecraft:iron_chestplate>;
  6. val ironChestPlateBasicLight = <minecraft:iron_chestplate>.withTag({AttributeModifiers: [{Slot:"chest",AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.2,Operation:1,UUIDLeast:1,UUIDMost:1}, {Slot:"chest",AttributeName:"generic.armor",Name:"generic.armor",Amount:5,Operation:0,UUIDLeast:10,UUIDMost:10}], display:{Name:"Light Iron Chestplate"}});
  7. val ironChestPlateBasicSteadfast = <minecraft:iron_chestplate>.withTag({AttributeModifiers: [{Slot:"chest",AttributeName:"generic.knockbackResistance",Name:"generic.knockbackResistance",Amount:0.2,Operation:0,UUIDLeast:2,UUIDMost:2}, {Slot:"chest",AttributeName:"generic.armor",Name:"generic.armor",Amount:6,Operation:0,UUIDLeast:20,UUIDMost:20}], display:{Name:"Steadfast Iron Chestplate"}});
  8. val ironChestPlateEnhanced = <minecraft:iron_chestplate>.withTag({AttributeModifiers: [{Slot:"chest",AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:5,Operation:0,UUIDLeast:100,UUIDMost:100}, {Slot:"chest",AttributeName:"generic.armor",Name:"generic.armor",Amount:6,Operation:0,UUIDLeast:30,UUIDMost:30}], display:{Name:"Enhanced Iron Chestplate"}});
  9. val ironChestPlateEnhancedLight = <minecraft:iron_chestplate>.withTag({AttributeModifiers: [{Slot:"chest",AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:5,Operation:0,UUIDLeast:110,UUIDMost:110}, {Slot:"chest",AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.2,Operation:1,UUIDLeast:111,UUIDMost:111}, {Slot:"chest",AttributeName:"generic.armor",Name:"generic.armor",Amount:5,Operation:0,UUIDLeast:40,UUIDMost:40}], display:{Name:"Light Enhanced Iron Chestplate"}});
  10. val ironChestPlateEnhancedSteadfast = <minecraft:iron_chestplate>.withTag({AttributeModifiers: [{Slot:"chest",AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:5,Operation:0,UUIDLeast:120,UUIDMost:120}, {Slot:"chest",AttributeName:"generic.knockbackResistance",Name:"generic.knockbackResistance",Amount:0.2,Operation:0,UUIDLeast:121,UUIDMost:121}, {Slot:"chest",AttributeName:"generic.armor",Name:"generic.armor",Amount:6,Operation:0,UUIDLeast:50,UUIDMost:50}], display:{Name:"Steadfast Enhanced Iron Chestplate"}});
  11. val bsHammer = <ore:artisansHammer>;
  12. val ingotIron = <ore:ingotIron>;
  13. val plateIron = <ore:plateIron>;
  14.  
  15.  
  16.  
  17. //remove initially
  18. recipes.remove(ironChestPlate);
  19.  
  20.  
  21. //Basic chestplate
  22. RecipeBuilder.get("blacksmith")
  23. .setShaped([[ingotIron, null, ingotIron], [ingotIron, ingotIron, ingotIron], [ingotIron, ingotIron, ingotIron]])
  24. .setTool(bsHammer, 2)
  25. .addOutput(ironChestPlate)
  26. .requireGameStages("ANY", ["diagramIronChestBasic"])
  27. .excludeGameStages(["metalSkillBasic"])
  28. .create();
  29. //Basic chestplate +1
  30. RecipeBuilder.get("blacksmith")
  31. .setShaped([[ingotIron, null, ingotIron], [ingotIron, ingotIron, ingotIron], [ingotIron, ingotIron, ingotIron]])
  32. .setTool(bsHammer, 2)
  33. .addOutput(ironChestPlate, 60)
  34. .addOutput(ironChestPlateBasicLight, 20)
  35. .addOutput(ironChestPlateBasicSteadfast, 20)
  36. .requireGameStages("ALL", ["diagramIronChestBasic", "metalSkillBasic"])
  37. .create();
  38.  
  39. //Enhanced chestplate
  40. RecipeBuilder.get("blacksmith")
  41. .setShaped([[ingotIron, null, ingotIron], [plateIron, ingotIron, plateIron], [ingotIron, ingotIron, ingotIron]])
  42. .setTool(bsHammer, 3)
  43. .addOutput(ironChestPlateEnhanced)
  44. .requireGameStages("ANY", ["diagramIronChestAdvanced"])
  45. .excludeGameStages(["metalSkillBasic"])
  46. .create();
  47. //Enhanced chestplate +1
  48. RecipeBuilder.get("blacksmith")
  49. .setShaped([[ingotIron, null, ingotIron], [plateIron, ingotIron, plateIron], [ingotIron, ingotIron, ingotIron]])
  50. .setTool(bsHammer, 3)
  51. .addOutput(ironChestPlateEnhanced, 60)
  52. .addOutput(ironChestPlateEnhancedLight, 20)
  53. .addOutput(ironChestPlateEnhancedSteadfast, 20)
  54. .requireGameStages("ALL", ["diagramIronChestAdvanced", "metalSkillBasic"])
  55. .create();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement