Jump to content

I need help setting lines of a sign.


EllWasHere

Recommended Posts

I'm trying to make a skript that includes placing signs that have text on them. It places signs near the player, and I have the location of the sign it placed, but I don't know how to edit the lines on it. I've tried numerous ways, and I've also tried looking at the docs, which were extremely unhelpful. Here's the code:

 

            set {_x} to x coord of player + (random number between -10 and 30)
            set {_z} to z coord of player + (random number between -10 and 30)
            set {_y} to y coord of player
            set block above block at highest solid block at location({_x}, {_y}, {_z}) to oak wood floor sign
            set line 1 to "hi"

 

How can I fix this?

Link to comment
Share on other sites

            set {_x} to x coord of player + (random number between -10 and 30)
            set {_z} to z coord of player + (random number between -10 and 30)
            set {_y} to y coord of player
			set {_loc} to block above block at highest solid block at location({_x}, {_y}, {_z})
            set block at {_loc} to dark oak wood sign
			
            set line 1 of {_loc} to "hello"

This might work please try it

(chat update) Well, I'm on team #RevertTheUpdate, but if you want to vote, please vote on my post here:

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...