fairiestoy wrote:Im sorry, my bad. Got the wrong case. Anyway, i read a bit through the unified inventory and stumbled over something. You tried to access the inventory list bag1 from the player inventory. But it seems the bags themself are not stored as bag1 bag2 bagn [..] but within the inventory list '<player name>_bags'. Correct me if im wrong, but this line seems to be relevant in this case: Unified Inventory
Also this line shows maybe what i mean: Unified Formspec
Since i didn't find any call in your code to exactly that inventory list, it may be possible that this is the issue.
If this was the case my code wouldn't do anything at all if you look at my earlier posts you'll see that I use the same convention to make sure the modname is suitcase, and then again to place the node associated with the tool(not in my posts) all of these work. bags is a direct reference to the button not the bag slots. look at line 28 in the code you sent to me to see the naming convention.