Jump to content

Problems with getting basic values from forge level, chunk etc. classes


_KS_

Recommended Posts

I need to get values like current dimension of chunk but i cant find anywhere how to get dimension name, is chunk new etc.
And i need to disable ore vein generation (code for disabling ore gen dont work there) 
Version 1.18

Edited by _KS_
Link to comment
Share on other sites

1 hour ago, _KS_ said:

I need to get values like current dimension of chunk but i cant find anywhere how to get dimension name, is chunk new etc.

In what context? The names of the current dimension can always be obtained through a `Level` instance which you most likely have in some interface abstract.

1 hour ago, _KS_ said:

And i need to disable ore vein generation (code for disabling ore gen dont work there) 

There's not really a good way to do this. You could attempt to find all `PlacedFeature`s which are registered for ore generation, but it depends on how other mods choose to implement this. The best you could do would be for vanilla.

Link to comment
Share on other sites

51 minutes ago, ChampionAsh5357 said:

There's not really a good way to do this. You could attempt to find all `PlacedFeature`s which are registered for ore generation, but it depends on how other mods choose to implement this. The best you could do would be for vanilla.

I know about this, and i making mod just for me and few friends for private server and we dont gonna add any other mods with ore gen ore something like this

1 hour ago, ChampionAsh5357 said:

In what context? The names of the current dimension can always be obtained through a `Level` instance which you most likely have in some interface abstract

i cant find this in any of level variables, i need to get dimension and lvl name for custom ores generation 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.