Error with Research recipes
DevTimur opened this issue ยท 12 comments
I made a test reserach to add, but get this error every time no matter what i do.
Example of research script
[
{
"id":"util2",
"x":-1,
"y":-2,
"parents":["techtabel"],
"icon":{"name":"fp:spaceship", "meta":"<spaceship.IronStick>"},
"enables":[],
"need":[],
"time":0
}
]
Example of Crafttweaker script
mods.futurepack.research.addResearchFile("./FPCustomResearches/NSGen.json");
This is currently only possible via a mod. Or rather it is not directly possible at all. YOu would instead try to alter the reasearch instance and add/remove things there. What do you want to change from the "util" research?
Util was only a test, i want to edit many researches, shuffle them, add new, remove some of them.
I want to make modpack with research progression similar to Thaumcraft, but for tech, your mod fits perfectly.
BTW, how do i make "locked" recipe?
MCenderdragonheute um 14:37 Uhr
{
"type": "fp:research_shaped",
"group": "fp",
"pattern": [
"SLS",
"PBP",
"RCR"
],
"key": {
"S": {
"item": "#ironcoil"
},
"P": {
"item": "#biopolymer"
},
"C": {
"item": "#mastermind_core"
},
"R": {
"item": "#mastermind_ram"
},
"L": {
"item": "#ventilation_block"
},
"B": {
"item": "#white_board_computer"
}
},
"result": {
"data": 2,
"item": "fp:advanced_boardcomputer"
}
}
Timurheute um 14:37 Uhr
So, crafttweaker integration lacks some parts.
For example i wantto lock some custom recipes behind research
ok
how do i CALL this json? using Crafttweaker?MCenderdragonheute um 14:38 Uhr
This is the recipe JSON from the advanced board computer, because its type is "research_shaped" it requires you to have a research with the board computer in the "enables" section
it is the normal vanilla system for crafting recipes. I thing they do that with data packs nowTimurheute um 14:40 Uhr
but how do i call this file?
similar to
mods.futurepack.research.addResearchFile("./scripts/example.json");?MCenderdragonheute um 14:41 Uhr
If I understnad it correctly you dont. All files under assets//recipes/ get loaded.Timurheute um 14:41 Uhr
but i should not edit JARMCenderdragonheute um 14:42 Uhr
data packs or resourcepacks also work outside the jar. Like good old texture packs did
I put this here in case anyone else also searches this.
Hi, is it allowed to edit JAR file if i want to change something?
Or should i use only Crafttweaker?
For example i want to rework most of researches, add my own.
Also i want to change mobs that spawn in Boss rooms, i can change it using json in jar.
In theory everything should be possible without the need to edit the JAR file. If there is no other way do it, but I guess we could also try to improve the API then.
Please try with this version, it should work now: 26.4.88
Yes, this block can only undo the while dungeon protection. So the loot of this block is more or less the whole dungeon.
ok... got this error when tryed to REPLACE existing research with my own.
https://pastebin.com/qcpu95eZ
If it ment to be so, then how do i remove/replace existing researches?