KubeJS

KubeJS

83M Downloads

[Bug] When I add Mantle mod,I cant run my game

DeliciousBread481 opened this issue · 7 comments

commented

Minecraft Version

1.20.1

KubeJS Version

2001.6.5-build.16

Rhino Version

2001.2.2-build.18

Architectury Version

9.2.14

Forge/Fabric Version

47.3.0

Describe your issue

When I add the mantle 1.11.36 ,and I start my game
I will get a crash,it reported that there is a error in the startup_scripts:example.js#29
Cannot convert ArrowFunction (1) => {...} to net.minecraft.world.food.FoodProperties

then I check my js,but I have no idea about this problem
I think it is related to #820

startup.log

example_txt.txt

Crash report/logs

https://mclo.gs/NbproqA

commented

Hey can you try the solution mentioned in this thread: https://kubejs.com/support/tickets/8905D152 and let me know if it works.

commented

like...this? I'm sorrry if I made a mistake
I get a error:
example.js#29: Error in 'ItemEvents.modification': TypeError: Cannot find function kjs$setFoodProperties(java.util.function.Consumer) in object qttg.

example_re.txt

commented

try the other string mentioned in that post

commented

well.....🤔
Startup script errors:
1) Error in 'ItemEvents.modification': Line 29: 'java()' is no longer supported! Read more on wiki: https://kubejs.com/kjs6

example_rer.txt

commented

thats not what i meant. The string is still a string and needs to go inside the [] brackets

commented

(T▽T)
example.js#29: Error in 'ItemEvents.modification': TypeError: Cannot find function setFoodProperties(java.util.function.Consumer) in object qttg.

example_rrr.txt

commented

Welp. At some point ill look further into this, but for now there probably isnt much you can do.