#Workbench Plus Recipes

41 messages · Page 1 of 1 (latest)

potent cloud
#

Anyone know how you can modify the recipes from the Additional Enchanted Miner? I'm dumb and can't figure out how to do this in KubeJS. Below is what the json from the jar looks like for a recipe if it helps

  "type": "quarryplus:workbench_recipe",
  "conditions": [
    {
      "type": "quarryplus:machine_enabled",
      "value": "quarry"
    }
  ],
  "energy": 320000.0,
  "ingredients": [
    {
      "count": 32,
      "tag": "forge:gems/diamond"
    },
    {
      "count": 32,
      "tag": "forge:ingots/gold"
    },
    {
      "count": 64,
      "tag": "forge:ingots/iron"
    },
    {
      "count": 16,
      "tag": "forge:dusts/redstone"
    },
    {
      "count": 4,
      "tag": "forge:ender_pearls"
    }
  ],
  "result": {
    "count": 1,
    "item": "quarryplus:quarry"
  },
  "showInJEI": true,
  "subType": "default"
}```
rain domeBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

heavy radish
#

if it doesnt have kubejs compatibility, you have to remove the recipe and re-add it with the modifications

sour moon
#

you wouldn't be able to remove it, depending on how the recipe is handled. .id() would have to be used to modify it

#

or just throw recipe in kubejs/data

heavy radish
#

why wouldnt you?

sour moon
#

for example you can't remove or modify (without .id()) apotheosis recipes. no idea why

heavy radish
#

"without .id()"? not sure what you mean by that

#

the thing they posted is clearly a datapack recipe, which means it has an ID, which means it can be removed

sour moon
#

event.remove/replaceInput/replaceOutput alone may not work. you'll have to do event.custom().id('quarryplus:quarry')

heavy radish
#

if you dont add an id, it will get a randomly generated one

#

you cant have a recipe without an ID

#

.id() is optional

sour moon
#

for modifying recipe not adding. event.replaceInput/Output and event.remove probably won't work is what i'm trying to say 😅

heavy radish
#

oh

#

for modifying thats not what they need

#

they need actual java code implementing kubejs classes

#

or maybe it changed with the new schema thing hmmm

#

eh fuck knows blob_idk_lex

#

remove and re-add

sour moon
#

idk it wasn't long ago i was trying to help someone remove/modify apotheosis recipes and it wouldn't work. then i learned what .id() did. tried it again with apotheosis and it let me modify ¯_(ツ)_/¯

#

still couldn't remove the recipe so we just had the recipe input replaced with bedrock and hid it from JEI lol

heavy radish
#

can you link me to it

sour moon
#

the forum thread?

#

let me try finding

#

how can i link with the bot embed thing

heavy radish
#

wrap it in < >

sour moon
heavy radish
#

oh so you mean .remove() doesnt work, so you have to override it instead

sour moon
#

yea and replaceInput/Output didn't work either

#

i was just pointing out to try event.custom().id() to modify if event.remove(), event.replaceInput/Output alone didn't work

potent cloud
#

removing and adding is fine too just anything that will let me change the recipe

#

im just not entirely sure how to write it so it registers the items and the fe needed

heavy radish
#
ServerEvents.recipes(e => {
  e.remove({ id: '...' })
  e.custom({
    type: 'quarryplus:workbench_recipe',
    conditions: [{ type: 'quarryplus:machine_enabled', value: 'quarry' }],
    energy: 320000,
    ingredients: [
      { count: 32, tag: 'forge:gems/diamond' },
      { count: 32, tag: 'forge:ingots/gold' },
      { count: 64, tag: 'forge:ingots/iron' },
      { count: 16, tag: 'forge:dusts/redstone' },
      { count: 4, tag: 'forge:ender_pearls' }
    ],
    result: { count: 1, item: 'quarryplus:quarry' },
    showInJEI: true,
    subType: 'default'
  })
})
sturdy surgeBOT
#

To find a recipe's ID, turn on advanced tooltips (F3 + H) then hover over the RECIPE OUTPUT in JEI, or the exclamation mark in REI.
You can then use this in any recipe filter:
{id: 'recipe ID here'}
You can use this, for example, to remove specific recipes:
event.remove({id: 'recipe ID here'})

sour moon
#

e.remove({ id: 'quarryplus:quarry' })*

potent cloud
#

Okay so it’s basically just e.custom then whatever is used for their setup simple enough

heavy radish
sour moon
#

wait right id is for recipe id. but you had a blank id there

heavy radish
#

yeah cuz idk the ID lol