Ello! I've been working on a KubeJS script that'll have it be so depending on the difficulty, some recipes will be dependent on the difficulty. So far, no proper results have shown from it. I know there's a sort of "ModifyResult" but I don't know if that can have any influence on input.
(The code's definitely not fully fleshed, but I'm just trying to first test and see for some of the bare minimum like the crafting table first)
#Is there any way to make crafting recipes be based off of difficulty?
9 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Paste version of difficulty_recipes.js from @indigo barn
Since you can change your difficulty mid-game, difficulty isn't a good way to have a "recipe difficulty".
But KubeJS offers packmodes for this purpose.
In 1.19.2 and all versions above you can use various headers at the top of a script to change its load conditions.
For example:
//ignored: true
console.log("I am never printed")
//packmode: default
console.log('I will only print when packmode in kubejs/config/common.properties is set to default')
//requires: minecraft
//requires: create
console.log('I will only print when mods with ids of minecraft AND create are loaded')
You can stack these too, like so
//priority: 10
//packmode: hard
//requires: create
//requires: tconstruct
console.log('I am complicated!')
If a script has a "magic" header on top with:
// packmode: hard
the script will load only if pack mode has been set to "hard".
⚠️ This is NOT difficulty, this is a different system!