Guest User

Untitled

a guest
Feb 8th, 2026
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. let oreVibratingAdd = (/** @type {Internal.RecipesEventJS} */ event) => {
  2. // Import Gregtech sifter recipes
  3. event.forEachRecipe({ mod: 'gtceu', type: 'gtceu:sifter'}, (recipe) => {
  4. // UGLY HACKS are used here to wrangle Gregtech recipes
  5. let recipe_json = JSON.parse(recipe.json)
  6.  
  7. let input_item = recipe_json.inputs.item.filter((f) => f.content.type == 'gtceu:sized')[0].content
  8. let output_items = recipe_json.outputs.item.map((item) => Item.of(item.content.ingredient.item, item.content.count).withChance(item.chance / 10000))
  9.  
  10. event.recipes.vintage.vibrating(output_items, input_item.ingredient, recipe_json.duration)
  11. })
  12. }
Advertisement
Add Comment
Please, Sign In to add comment