Jump to content

Recommended Posts

Posted (edited)

Hello, 

I would like to know if it is possible to add values to a config after it's been registered and built?

I'd like to add all registered entities into my config to be able to change a value for each individual entity, my problem now is, that I build and register my config in the constructor of the mod but i think that at this time, only the vanilla entities are registered, because those are the only ones getting written into my config.

Thanks in advance!

Edited by WizZzLe
typo in title
  • WizZzLe changed the title to Add values dynamically to config
Posted
13 hours ago, WizZzLe said:

I would like to know if it is possible to add values to a config after it's been registered and built?

Why not just make a custom datapack entry and datagen the configuration information for each entity? Or, you shouldn't be setting values dynamically and perform an override else default system.

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.

Announcements



×
×
  • Create New...

Important Information

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