Comments (4)
Can you provide a full script file please? (go to https://hastebin.com/ and paste the contents there, then send the link here)
Also please tell me which folder the script is in, is it in kubejs/server_scripts
or another folder?
from kubejs.
It's in server_scripts
. I managed to get the infusing recipe to work, it was likely something else in the file. I did have an issue with injecting recipes, however. Here's the file, the lines that aren't working are at 438 - 440. https://hastebin.com/kiqefixiju.csharp
from kubejs.
Your gas ingredient is formatted incorrectly:
{gas: "mekanism:sulfuric_acid", 200}
needs the amount key because you're using a js object, so:
{gas: "mekanism:sulfuric_acid", amount: 200}
As for your other questions:
Is there a way to add new fluids the same way you can add items and blocks?
Yes, there is an event called fluid.registry
which you can use to create fluids using a Fluid Builder
and is there a way, aside from making multiple recipes, to allow for multiple inputs, aside from forge tags?
Yes, vanilla ingredients support lists of tags / items and you can achieve the same effect in KubeJS by using ingredient.of([...])
Hope I could help!
from kubejs.
That's perfect! Thanks so much!
from kubejs.
Related Issues (20)
- Code from Wiki Page is Crashing
- Error with Crossroads reagent recipes if something is done with ServerEvents.recipes' event
- [1.21] NeoForge Crash on Server Startup HOT 2
- [Bug] Datapacks don't seem to load in. HOT 7
- Fabric Client Crash when Creating World(loading server_scripts) HOT 11
- server#scheduleRepeating not repeating
- Kubejs Breaking Recipes HOT 7
- Server crash after restart HOT 3
- Passing Array into Ingredient.of disconnects players instantly upon join HOT 1
- KubeJS-Generated REI Groupings Appear Empty In Settings (But Work)
- steppedOn event on block registries cannot handle blocks that are not full blocks
- Setting the "subtypes" callback has no effect in-game, as the returned list of ItemStacks doesn't actually get added to the tab
- Failed to encode packet 'clientbound/minecraft:update_recipes' Caused by: io.netty.handler.codec.EncoderException: Empty ItemStack not allowed HOT 3
- Attempting to remove recipes by output filter while all three of Immersive Engineering, KubeJS, and Destroy (addon for create) are installed completely breaks and causes "java.lang.RuntimeException: Empty array?" to be thrown. HOT 8
- Can you even set placementstate on Fabric?
- Crash when placing custom fluid near leaves on fabric
- Errors when using MoreDelight HOT 3
- KubeJS on new Fabric version? HOT 4
- Polymer Support For Custom Blocks And Items?
- java.lang.NoSuchMethodError: 'boolean com.google.gson.JsonObject.isEmpty()'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubejs.