Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: "WorldgenEvents" is not defined. #900

Open
desagas opened this issue Sep 22, 2024 · 1 comment
Open

ReferenceError: "WorldgenEvents" is not defined. #900

desagas opened this issue Sep 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@desagas
Copy link

desagas commented Sep 22, 2024

Minecraft Version

1.21.1

KubeJS Version

2101.7.0-build.171

Rhino Version

2101.2.5-build.54

Architectury Version

13.0.6-neoforge

Forge/Fabric Version

Neoforge 21.1.56

Describe your issue

As the title described. No code called using WorldgenEvents loads when in startup_scripts or any other scripts.

My Code, which is actually your code featured on your wiki:

WorldgenEvents.remove((event) => {
  // remove features by their id (first argument is a generation step)
  event.removeFeatureById('underground_ores', ['minecraft:ore_coal_upper', 'minecraft:ore_coal_lower'])
})

Startup Log:
startup.log

Crash report/logs

No response

@desagas desagas added the bug Something isn't working label Sep 22, 2024
@johalun
Copy link

johalun commented Nov 14, 2024

I'm porting our modpack to 1.21.1 neoforge and got the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants