#Deployer from create mod

92 messages · Page 1 of 1 (latest)

urban tapir
#

in trying to use the kubejs for creating processors from applied i put that 1 gold sheet with a press turn into a processor but the press is consuing and i dont know how to stop that

paper lindenBOT
#

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

urban tapir
#

here is the code i forgo to put in the post

#

onEvent('recipes', event => {
event.recipes.create.deploying('appliedenergistics2:printed_logic_processor', ['create:golden_sheet','appliedenergistics2:logic_processor_press']).keepIngredient('appliedenergistics2:logic_processor_press')

})
#
    onEvent('recipes', event => {
        event.recipes.create.deploying('appliedenergistics2:printed_logic_processor', ['create:golden_sheet','appliedenergistics2:logic_processor_press']).keepIngredient('appliedenergistics2:logic_processor_press')

    }
past coral
#

keepIngredient doesn't work.

#

You need to use .keepHeldItem()

earnest knoll
#

I'm smelling no

#

??kjsaddons

hot owlBOT
# earnest knoll ??kjsaddons

ProbeJS is an addon mod for KubeJS that generates typings files for VSCode, allowing VSCode to offer autocompletions for a ton of things!

Mod by @feral crane

urban tapir
#

i made something wrong ?

#

still consumes

earnest knoll
#

??kjslogs

hot owlBOT
# earnest knoll ??kjslogs

You can find your KubeJS server log in /minecraft/logs/kubejs/server.log.
If you are on 1.18 or below it will be called server.txt.
Please send it if asked, as it contains helpful information.

urban tapir
#

im using curseforge where is generated?

hot owlBOT
#

[Quote ➤](#1154578707743260753 message) You can find your KubeJS server log in /minecraft/logs/kubejs/server.log.
If you are on 1.18 or below it will be called server.txt.
Please send it if asked, as it contains helpful information.

past coral
urban tapir
#

i tested with input and without it keep consuming

past coral
#

on curseforge click on the three dots and open folder, then you can follow the path

urban tapir
#

oh is inside logs not inside kubejs have logs

hot owlBOT
#

Paste version of message.txt from @urban tapir

past coral
#

Oh, you're using 1.16 is there even a deploying recipe Type?

#

Cause searching the create GitHub there isn't

#

At least Not where it's located in 1.18+

urban tapir
#

i cannot use because is 1.16.5 and dont have the code?

past coral
#

try .keepHeldItem(true)
If that doesn't work you have to use event.custom

urban tapir
#

ok

#

how do i use custom evente?

earnest knoll
#

??kjswiki

hot owlBOT
# earnest knoll ??kjswiki

You can add, remove, and modify recipes with KubeJS. The wiki has a page on that!
If you want to learn how to add recipes to any mod, click the Custom button.

earnest knoll
#

wait this is 1.16?

#

nvm

#

I'm pretty sure the syntax is the same for custom recipes

urban tapir
#

so why this dont function?

past coral
past coral
#

so to add a deployer recipe you do something like this:

event.custom({
  type: "create:deploying",
  ingredients: [
    {"item": "create:golden_sheet"},
    {"item": "appliedenergistics2:logic_processor_press"}
  ],
  "results": [
    {"item": "appliedenergistics2:printed_logic_processor"}
  ],
  "keepHeldItem": true
})
urban tapir
#

its working but is giving a bug report

hot owlBOT
#

Paste version of server.txt from @urban tapir

urban tapir
earnest knoll
#

remove ur old thingy?

urban tapir
#

yeah

hot owlBOT
#

🗒️**Send the code!**🗒️
You may have an issue with a KubeJS script and you explain it to the best of your ability yet without the actual code in question we have very little to go off of in trying to assist you.

urban tapir
#

i send all the code here?

past coral
#

yes

#

from that file

urban tapir
#

i cannot send

hot owlBOT
#

Paste version of script.js from @urban tapir

modern timber
#

Here's how Create: Above & Beyond does it:

function ifiniDeploying(output, input, tool) {
    return {
        "type": "create:deploying",
        "ingredients": [
            Ingredient.of(input).toJson(),
            Ingredient.of(tool).toJson()
        ],
        "results": [
            Item.of(output).toResultJson()
        ],
        "keepHeldItem": true
    }
}

From their github

modern timber
urban tapir
modern timber
#

and the error is always a NullPointerException?

urban tapir
modern timber
#

o_o

#

well that's a very different error than the one you were getting

urban tapir
#

in using 1.16.5

modern timber
#

OH

#

i found it

#

you have quotes inside your quotes

#
- {"item": "'appliedenergistics2:quartz_block'"},
+ {"item": "appliedenergistics2:quartz_block"},
urban tapir
#

yeah this fix thank u

#

a question how do i do a sequence assembler

modern timber
#
//start the sequenced assembly
event.recipes.createSequencedAssembly(/*output*/'minecraft:diamond', /*input*/'minecraft:dirt', [
  event.recipes.createFilling('minecraft:dirt', ['minecraft:dirt', Fluid.of("minecraft:water"), 500)]),
  // ...
  // More recipes here
  // ...
]).transitionalItem('minecraft:dirt')
  .loops(4)
urban tapir
#

dont functional

earnest knoll
#

try just "water", not MC("water")?

#

idk if that does anything

modern timber
#

oh sorry

#

fixed

#

"minecraft:water" instead of MC("water")

#

lat hates it when i do that heh

urban tapir
#

thank you

#

thank all you

#

i gonna start make the pack

earnest knoll
#

what a wonderful recipe

#

can you keep that

urban tapir
#

i dont think

#

i asking for the owners

earnest knoll
#

:(

#

anyways

#

??closeticket

hot owlBOT
# earnest knoll ??closeticket

Please close your ticket (with /ticket close or the button atop this thread) once you resolved your issue! This also helps others that would like to help out, as they don't have to look into this thread to check if it has been resolved by now.

Do you have any other questions regarding your issue? Feel free to ask!
Note: You generally should create a new post for unrelated issues.

urban tapir
#

bye