Advertisement
gelatine87
May 18th, 2024 (edited)
15
0
Never
This is comment for paste ElementalCraft Binder Automation
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. To use this you need to change a few things.
  2.  
  3. 1.
  4. -- Define peripheral names
  5. local PERIPHERAL_NAMES = {
  6.     INPUT = "minecraft:barrel",
  7.     BINDER = {
  8.         REGULAR = "elementalcraft:binder",
  9.         IMPROVED = "elementalcraft:binder_improved"
  10.     },
  11.     OUTPUT = "minecraft:barrel"
  12. }
  13.  
  14. INPUT & OUTPUT-Name could be different. If so change the "minecraft:barrel" to your choosen inventory.
  15.  
  16. ==================================================================================================================
  17. 2.
  18. -- Function to retrieve peripherals
  19. local function retrievePeripherals()
  20.     local output = findPeripheral(PERIPHERAL_NAMES.OUTPUT, SIDES.LEFT)
  21.     local input = findPeripheral(PERIPHERAL_NAMES.INPUT, SIDES.BOTTOM)
  22.     local binder = findPeripheral(PERIPHERAL_NAMES.BINDER.IMPROVED, SIDES.RIGHT) or findPeripheral(PERIPHERAL_NAMES.BINDER.REGULAR, SIDES.RIGHT)
  23.     return output, input, binder
  24. end
  25.  
  26. The direction where the INPUT, OUTPUT and BINDER are. Change "SIDES.LEFT" depending on the peripheral.
  27.  
  28. ==================================================================================================================
  29. 3.
  30. -- Recipe list
  31. local recipeList = {
  32.     {
  33.         name = "elementalcraft:fireite_ingot",
  34.         ingredients = {
  35.             { "minecraft:netherite_ingot",        1 },
  36.             { "elementalcraft:swift_alloy_ingot", 1 },
  37.             { "elementalcraft:springaline_shard", 1 },
  38.             { "elementalcraft:purecrystal",       1 }
  39.         }
  40.     },
  41.     {
  42.         name = "elementalcraft:reservoir_fire",
  43.         ingredients = {
  44.             { "elementalcraft:container",         1 },
  45.             { "elementalcraft:springaline_glass", 1 },
  46.             { "elementalcraft:purecrystal",       1 },
  47.             { "elementalcraft:pristine_fire_gem", 1 }
  48.         }
  49.     }
  50. }
  51.  
  52. The actual recipe you are want to craft. "name" = the Output-tag of your crafted item. "ingredients" are the materials to craft the output item you want to craft but you need to write it in the right order.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement