#Variables
1 messages · Page 1 of 1 (latest)
Think like a scoreboard variable, but once it's set, it'd be like
'/replaceitem block ~ ~ ~ slot.container 0 dirt "Luigi Clan Score"'
How would I do that?
You can't use scores like that in commands
You would have to use scripting or repeatedly add more of the item to the slot until it reaches the score value
How would I do that then?
I only know how to replace an Item in a container, not add them to it
Are you able to use addons?
I can, but not at the moment, I'm trying to make what I'm working on as Vanilla as possible
Also, I have a shitty laptop and my phone is Out Of Commission
I've been coding in command blocks on my Xbox, I'm in physical and mental pain /hj
So there's no way to add an item to a chest outside of some crazy contraption?
Yes. Unless you can add a loot table with the item. Then you can use /loot insert
If you want to add items into a chest with commands loot tables would help a lot and make command amount much smaller, otherwise you could use a worse methods like hoppers but it will limit use cases
Wait, so, with /loot insert, can I just take 1 specific drop from a pre-existing loot table? Because I just need placeholder items in a chest for some scoreboard shenanigans