2badatmodding Posted June 17, 2022 Share Posted June 17, 2022 Hi how do i add configure options for recipes into my mod? like easy normal hard? Link to comment https://forums.kleientertainment.com/forums/topic/140956-custom-item-with-config/ Share on other sites More sharing options...
Leonidas IV Posted June 17, 2022 Share Posted June 17, 2022 (edited) You have to create a table called configuration_options in modinfo.lua configuration_options = { -- A exemple config: { name = "FASTERHANDS", -- ID (string) label = "Faster Hands?", -- Option Name (string) hover = "Harvest quicker or not", -- Mouse Over text (string) options = { {description = "Yes", data = true}, -- The options. Description (string). data (Any). {description = "No", data = false}, }, default = true, -- What is "from fabric" (Any) }, { --other config }, } And then you call GetModConfigData to get the option selected by the user, using the ID: local option_selected = GetModConfigData("FASTERHANDS") Edited June 17, 2022 by Leonidas IV Link to comment https://forums.kleientertainment.com/forums/topic/140956-custom-item-with-config/#findComment-1577739 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now