[Bug/漏洞] Unable to add Xtreme crafting recipe with Crafttweaker
D4nPlus6 opened this issue · 3 comments
Checks / 检查
- I confirm that I have searched for existing issues / pull requests before reporting to avoid duplicate reporting./我确认在报告之前我已经搜索了现有的问题或者拉取请求,以避免重复报告。
- I confirm that I followed the Docs and read the Changelog, but this problem still exists./我确认我按照文档配置并阅读了Changelog,但这个问题仍然存在。
- I confirm that I noted that if I don't follow the instructions, the issue may be closed directly./我确认我已经检查,如果我不按照说明进行操作,该问题可能会被直接关闭。
Java Version / Java版本
17
Minecraft Version / Minecraft版本
1.20.1
Avaritia-Reforge Version / Avaritia-Reforge版本
1.3.8.3
Description / 描述
Following what the README page said, I tried adding a recipe for Xtreme crafting using a Crafttweaker script:
// Remove the normal cheap transmutation table recipe
craftingTable.remove(<item:projecte:transmutation_table>);
// Add the new late game transmutation table recipe
var D = <tag:items:forge:ingots/draconium>;
var N = <item:avaritia:neutron_nugget>;
var C = <item:projecte:condenser_mk2>;
var H = <item:mekanism:hdpe_sheet>;
var DM = <item:projecte:dark_matter>;
var CM = <item:avaritia:crystal_matrix_ingot>;
var R_I = <item:projecte:ignition_ring>;
var R_Z = <item:projecte:zero_ring>;
var R_S = <item:projecte:swiftwolf_rending_gale>;
var R_H = <item:projecte:harvest_goddess_band>;
var S = <item:cyclic:soulstone>;
var B = <item:industrialforegoing:supreme_black_hole_unit>;
var P = <item:projecte:philosophers_stone>;
mods.avaritia.CraftingTable.addShaped("lategame_transTable", 4, <item:projecte:transmutation_table>, [
[C,N,N,N,N,N,N,N,C],
[N,H,DM,H,DM,H,DM,H,N],
[N,DM,CM,D,R_I,D,CM,DM,N],
[N,H,D,B,S,B,D,H,N],
[N,DM,R_S,S,P,S,R_H,DM,N],
[N,H,D,B,S,B,D,H,N],
[N,DM,CM,D,R_Z,D,CM,DM,N],
[N,H,DM,H,DM,H,DM,H,N],
[C,N,N,N,N,N,N,N,C]
]
);
However, when I ran /reload, crafttweaker said "Cannot evaluate a package as expression"
To Reproduce / 重现
- Paste the script into the /scripts folder
- Do /reload in minecraft
Log / 日志
Config / 配置
there was no Avaritia-Reforge.json file, but there was a avaritia-common.toml file
error also arose when I tried doing it in KubeJS:
ServerEvents.recipes(event => {
const { avaritia } = event.recipes;
avaritia.shaped_table(
4,
"projecte:transmutation_table",
[
"CNNNNNNNC",
"NHMHMHMHN",
"NMRDGDRMN",
"NHDBSBDHN",
"NMWSPSRMN",
"NHDBSBDHN",
"NMRDZDRMN",
"NHMHMHMHN",
"CNNNNNNNC"
],
{
D: "#forge:ingots/draconium",
N: "avaritia:neutron_nugget",
C: "projecte:condenser_mk2",
H: "mekanism:hdpe_sheet",
M: "projecte:dark_matter",
R: "avaritia:crystal_matrix_ingot",
G: "projecte:ignition_ring",
Z: "projecte:zero_ring",
W: "projecte:swiftwolf_rending_gale",
R: "projecte:harvest_goddess_band",
S: "cyclic:soulstone",
B: "industrialforegoing:supreme_black_hole_unit",
P: "projecte:philosophers_stone"
}
);
})

