KubeJS

KubeJS

69M Downloads

Forge 1.18.1 Can't find method BlockRegistryEventJS.create(string)

igentuman opened this issue ยท 3 comments

commented

I'm using basic example scripts
[22:51:32] [main/INFO]: ModLauncher running: args [--username, Serg, --version, 1.18.1-forge-39.0.14, --gameDir, .minecraft, --assetsDir, C:\Users\ostapchs\AppData\Roaming.minecraft\assets, --assetIndex, 1.18, --uuid, 0e0437b9abf04efa8cbace36c23c274e, --accessToken, ????????, --clientId, ${clientid}, --xuid, ${auth_xuid}, --userType, mojang, --versionType, release, --width, 925, --height, 530, --launchTarget, forgeclient, --fml.forgeVersion, 39.0.14, --fml.mcVersion, 1.18.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20211210.034407]
[22:51:32] [main/INFO]: ModLauncher 9.0.7+91+master.8569cdf starting: java version 17.0.1 by Microsoft
[22:51:33] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/ostapchs/AppData/Roaming/.minecraft/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2319! Service=ModLauncher Env=CLIENT
[22:51:33] [main/INFO]: Found mod file architectury-3.4.9.jar of type MOD with locator {mods folder locator at C:\Users\ostapchs\AppData\Roaming.minecraft\mods}
[22:51:33] [main/INFO]: Found mod file kubejs-forge-1801.4.1-build.271.jar of type MOD with locator {mods folder locator at C:\Users\ostapchs\AppData\Roaming.minecraft\mods}
[22:51:33] [main/INFO]: Found mod file rhino-forge-1800.1.7-build.92.jar of type MOD with locator {mods folder locator at C:\Users\ostapchs\AppData\Roaming.minecraft\mods}
[22:51:33] [main/INFO]: Found mod file fmlcore-1.18.1-39.0.14.jar of type LIBRARY with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@3c8bdd5b
[22:51:33] [main/INFO]: Found mod file javafmllanguage-1.18.1-39.0.14.jar of type LANGPROVIDER with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@3c8bdd5b
[22:51:33] [main/INFO]: Found mod file mclanguage-1.18.1-39.0.14.jar of type LANGPROVIDER with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@3c8bdd5b
[22:51:33] [main/INFO]: Found mod file client-1.18.1-20211210.034407-srg.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@3c8bdd5b
[22:51:33] [main/INFO]: Found mod file forge-1.18.1-39.0.14-universal.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@3c8bdd5b
[22:51:35] [main/INFO]: Compatibility level set to JAVA_17
[22:51:35] [main/INFO]: Launching target 'forgeclient' with arguments [--version, 1.18.1-forge-39.0.14, --gameDir, C:\Users\ostapchs\AppData\Roaming.minecraft, --assetsDir, C:\Users\ostapchs\AppData\Roaming.minecraft\assets, --uuid, 0e0437b9abf04efa8cbace36c23c274e, --username, Serg, --assetIndex, 1.18, --accessToken, ????????, --clientId, ${clientid}, --xuid, ${auth_xuid}, --userType, mojang, --versionType, release, --width, 925, --height, 530]
[22:51:35] [main/WARN]: Reference map 'rhino-forge-refmap.json' for rhino.mixins.json could not be read. If this is a development environment you can ignore this message
[22:51:45] [Render thread/WARN]: Assets URL 'union:/C:/Users/ostapchs/AppData/Roaming/.minecraft/libraries/net/minecraft/client/1.18.1-20211210.034407/client-1.18.1-20211210.034407-srg.jar%2362!/assets/.mcassetsroot' uses unexpected schema
[22:51:45] [Render thread/WARN]: Assets URL 'union:/C:/Users/ostapchs/AppData/Roaming/.minecraft/libraries/net/minecraft/client/1.18.1-20211210.034407/client-1.18.1-20211210.034407-srg.jar%2362!/data/.mcassetsroot' uses unexpected schema
[22:51:45] [Render thread/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[22:51:47] [Render thread/INFO]: Setting user: Serg
[22:51:47] [Render thread/INFO]: Backend library: LWJGL version 3.2.2 SNAPSHOT
[22:51:47] [Render thread/INFO]: Loaded client.properties
[22:51:50] [modloading-worker-0/INFO]: Looking for KubeJS plugins...
[22:51:50] [modloading-worker-0/INFO]: Forge mod loading, version 39.0.14, for MC 1.18.1 with MCP 20211210.034407
[22:51:50] [modloading-worker-0/INFO]: MinecraftForge v39.0.14 Initialized
[22:51:50] [modloading-worker-0/INFO]: Found kubejs plugin
[22:51:50] [modloading-worker-0/INFO]: Done in 0 s
[22:51:50] [modloading-worker-0/INFO]: Loaded common.properties
[22:51:51] [modloading-worker-0/INFO]: Hello, World! (You will only see this line once in console, during startup)
[22:51:51] [modloading-worker-0/INFO]: Loaded script startup_scripts:script.js in 0.201 s
[22:51:51] [modloading-worker-0/INFO]: Loaded 1/1 KubeJS startup scripts in 0.548 s
[22:51:51] [modloading-worker-0/ERROR]: Error occurred while handling event 'block.registry': Can't find method dev.latvian.mods.kubejs.block.BlockRegistryEventJS.create(string). (startup_scripts:script.js#12)
[22:51:51] [modloading-worker-0/ERROR]: Error occurred while handling event 'item.registry': Can't find method dev.latvian.mods.kubejs.item.ItemRegistryEventJS.create(string). (startup_scripts:script.js#7)
[22:51:52] [modloading-worker-0/INFO]: Hello, World! (You will see this line every time client resources reload)
[22:51:52] [modloading-worker-0/INFO]: Loaded script client_scripts:script.js in 0.002 s
[22:51:52] [modloading-worker-0/INFO]: Loaded 1/1 KubeJS client scripts in 0.028 s
[22:51:52] [Render thread/INFO]: Potentially Dangerous alternative prefix minecraft for name milk, expected forge. This could be a intended override, but in most cases indicates a broken mod.
[22:51:52] [Render thread/INFO]: Potentially Dangerous alternative prefix minecraft for name flowing_milk, expected forge. This could be a intended override, but in most cases indicates a broken mod.
[22:51:55] [Render thread/INFO]: Narrator library for x64 successfully loaded
[22:51:55] [Render thread/INFO]: Reloading ResourceManager: Default, Mod Resources, KubeJS Resource Pack [assets]
[22:51:56] [Forge Version Check/INFO]: [forge] Starting version check at https://files.minecraftforge.net/net/minecraftforge/forge/promotions_slim.json
[22:51:58] [Forge Version Check/INFO]: [forge] Found status: BETA Current: 39.0.14 Target: 39.0.14
[22:52:17] [Render thread/INFO]: OpenAL initialized on device OpenAL Soft on Speakers (Conexant ISST Audio)
[22:52:17] [Render thread/INFO]: Sound engine started

commented

i liked the old way of doing ItemRegistryEvent cause you don't have to put in extra }) at the end of the script

commented

I'm having the same issue with the ItemRegistryEvent with both the default script and the wiki example

commented

fixed by switching to the new example on the wiki (the one not labeled with KubeJS 3)