Version 6.1
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"factory": "kubejs:shaped",
|
||||
"keys": [
|
||||
{
|
||||
"name": "result",
|
||||
"role": "output",
|
||||
"type": "item_stack"
|
||||
},
|
||||
{
|
||||
"name": "pattern",
|
||||
"type": {
|
||||
"type": "list",
|
||||
"component": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "key",
|
||||
"role": "input",
|
||||
"type": {
|
||||
"type": "pattern",
|
||||
"component": "ingredient"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kubejs:mirror",
|
||||
"type": "boolean",
|
||||
"function_names": ["kjsMirror"],
|
||||
"optional": true,
|
||||
"excluded": true
|
||||
},
|
||||
{
|
||||
"name": "kubejs:shrink",
|
||||
"type": "boolean",
|
||||
"function_names": ["kjsShrink"],
|
||||
"optional": true,
|
||||
"excluded": true
|
||||
},
|
||||
{
|
||||
"name": "category",
|
||||
"role": "other",
|
||||
"type": "crafting_book_category",
|
||||
"optional": "misc",
|
||||
"excluded": true
|
||||
},
|
||||
{
|
||||
"name": "show_notification",
|
||||
"role": "other",
|
||||
"type": "boolean",
|
||||
"optional": true,
|
||||
"excluded": true
|
||||
}
|
||||
],
|
||||
"unique": ["result"],
|
||||
"constructors": [
|
||||
{
|
||||
"keys": ["result", "pattern", "key"]
|
||||
}
|
||||
],
|
||||
"functions": {
|
||||
"noMirror": {
|
||||
"type": "set",
|
||||
"key": "kubejs:mirror",
|
||||
"value": false
|
||||
},
|
||||
"noShrink": {
|
||||
"type": "set",
|
||||
"key": "kubejs:shrink",
|
||||
"value": false
|
||||
},
|
||||
"noNotification": {
|
||||
"type": "set",
|
||||
"key": "show_notification",
|
||||
"value": false
|
||||
},
|
||||
"buildingCategory": {
|
||||
"type": "set",
|
||||
"key": "category",
|
||||
"value": "building"
|
||||
},
|
||||
"redstoneCategory": {
|
||||
"type": "set",
|
||||
"key": "category",
|
||||
"value": "redstone"
|
||||
},
|
||||
"equipmentCategory": {
|
||||
"type": "set",
|
||||
"key": "category",
|
||||
"value": "equipment"
|
||||
}
|
||||
},
|
||||
"post_processors": [
|
||||
]
|
||||
}
|
||||
@@ -196,6 +196,10 @@ KubeJSTweaks.beforeRecipes(event => {
|
||||
entry.replaceValueAtKey("ingredients", "tag", "c:glass", "c:glass_blocks/colorless")
|
||||
})
|
||||
|
||||
event.getEntry("regions_unexplored:prismaglass").forEach(entry => {
|
||||
entry.replaceValueAtKey("key", "tag", "c:glass", "c:glass_blocks/colorless")
|
||||
})
|
||||
|
||||
event.getEntry(/^regions_unexplored:.*_snowbelle$/)
|
||||
.forEach(entry => {
|
||||
let ings = entry.json().get("ingredients")
|
||||
@@ -212,5 +216,26 @@ KubeJSTweaks.beforeRecipes(event => {
|
||||
}
|
||||
})
|
||||
|
||||
event.getEntry(/^regions_unexplored:.*_painted_planks$/)
|
||||
.forEach(entry => {
|
||||
let keys = entry.json().get("key")
|
||||
if (keys != null) {
|
||||
for (let key of keys.asMap().values()) {
|
||||
let tag = key.get("tag")
|
||||
if (tag != null) {
|
||||
if (tag.getAsString().endsWith("_dyes")) {
|
||||
let color = tag.getAsString().replace("c:","").replace("_dyes","")
|
||||
key["addProperty(java.lang.String,java.lang.String)"]("tag", "c:dyes/" + color)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
event.getEntry(["pneumaticcraft:block_heat_properties/createlowheated/basic_burner_empowered","pneumaticcraft:block_heat_properties/createlowheated/basic_burner_lit"])
|
||||
.forEach(entry => {
|
||||
entry.json().add("neoforge:conditions", [{ "type": "neoforge:mod_loaded", "modid": "createlowheated"}])
|
||||
})
|
||||
|
||||
console.log(`Fixing recipes took ${timer.stop().elapsed("milliseconds")} ms...`)
|
||||
})
|
||||
Reference in New Issue
Block a user