0

I am trying to make a shop with items that get increasingly more expensive,

My problem is: How do I show the new price? This will be on a sign that I place, not in chat. Does anyone know how to place a sign with text using commands?

1 Answer 1

5

It’s pretty simple:

/setblock ~ ~ ~ oak_sign{Text1:'{"text":"Your Text Here"}'}

This creates a sign with "Your Text Here" on line 1. For other lines of the sign replace Text1 with Text2, Text3, or Text4. I recommend McStacker for even greater customization like colors or styles. It also supports other commands like /summon or /give.

5
  • 1
    how do i close this question?
    – user258594
    Commented Oct 15, 2020 at 18:15
  • 2
    @anomanous Mark an answer as accepted
    – Sam Hill
    Commented Oct 15, 2020 at 18:17
  • how do i do that?
    – user258594
    Commented Oct 15, 2020 at 18:53
  • 1
    @anomanous There should be a gray checkmark underneath the answer’s vote buttons.
    – Sam Hill
    Commented Oct 15, 2020 at 18:54
  • @ExpertCoder14 My bad, missed a couple of quotes. I’ve updated the answer with the correct, tested command
    – Sam Hill
    Commented Oct 15, 2020 at 23:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.