#Variables

1 messages · Page 1 of 1 (latest)

vocal galleon
#

I want to make a variable, such as just, "X" that I can increase independently and plug into other commands later, how would I do that?

#

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?

fervent meteor
#

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

vocal galleon
#

I only know how to replace an Item in a container, not add them to it

fervent meteor
#

Are you able to use addons?

vocal galleon
#

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

fervent meteor
#

Commands are pretty janky

vocal galleon
#

So there's no way to add an item to a chest outside of some crazy contraption?

fervent meteor
#

Yes. Unless you can add a loot table with the item. Then you can use /loot insert

toxic root
vocal galleon