Warjort I can ask you for help with something else, I made a button that turns on the light in my house, one for each room. I made a Button class with all the methods. A method that it has, you put the name of the room (the same one that has the smart lamps api) and it creates a String[] with the ids. With another method it turns it on. Then I made a son class with the name of each room to write the attribute with the lamp ids in each one and call the parent method to turn them on.
Can you think of a way so that the user with a set from the minecraft console can modify the operation of the button, to make this mod more universal?
The idea that occurs to me but I don't know if it's possible, that the player writes to the console something from /give Player button X. Example (/give Player button RoomGames) where X is a variable.
Thank you so much.