Posted June 17, 20223 yr Hey, how would I go about saving key&value(or Set) as ConfigValue in a config using ForgeConfigSpec? For example, if I execute the command "/itembind gamemode creative" while holding a grass block, a configuration entry is added to "Binds" where "grass_block" is the key and "gamemode creative" is the value. My Interact event could then get the value (command) from the key (item/block) I clicked. Example: Binds: { grass_block: gamemode creative, diamond_sword: say hi } Ty
June 17, 20223 yr Author 29 minutes ago, diesieben07 said: This is not really something that should be stored in a config file. What would I do instead to keep this data even after closing the client?
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.