Can you do the 2in1?

Ti
6

Can you write 2 commands in a command block in minecraft?

So: / give @p wheat 32

/ clear @p goldnugget 3

Can you somehow write them together in a command block? Or do you know another command for it?

Be

No, only one command per command block

Pr

You want to do a shop, right?

I don't know how to do that, but you can also link command blocks together

Pr

Make a command block with the first command "/ give @p wheat 32" then put a command block behind it (both must point in the same direction, the one with wheat first) the command "/ give @ p gold_nugget 3" and set the nozzle Command block on "chaining" and "always active"

There are also tutorials on YouTube.

Ti

Yes wants to do a shop

Ti

But do you know a command if you don't have 3 gold nuggets with you? So: you don't have enough gold?

Pr

No, unfortunately I don't know, I'm sorry.