Nd_ Posted October 26, 2019 Share Posted October 26, 2019 Code: command /wild: aliases: /rtp, /forest trigger: set {wild.1} to "4760, 255, 825" set {wild.2} to "760, 0, 825" loop blocks between {wild.1} and {wild.2}: if loop-block is air: set {_wild} to loop-block's location if block below loop-block isn't air, lava, or water:## this line doesn't work, is there any way to do this add {_wild} to {_wild::*} teleport the player to a random element of {_wild::*} This doesn't work. I tried removing if block below loop-block isn't air, lava, or water:, but it still doesn't work. Can someone help me? Thanks Link to comment Share on other sites More sharing options...
AWorthySon Posted October 27, 2019 Share Posted October 27, 2019 {wild.1} and {wild.2} is not a location Try this: set {wild.1} to location at (4760, 255, 825) in player's world set {wild.2} to location at (760, 0, 825) in player's world Link to comment Share on other sites More sharing options...
Stargazers Posted October 28, 2019 Share Posted October 28, 2019 Looping blocks between locations in Skript is a bit broken. You would be better off setting random integers (set {_var} to random integer between x and y), and using Skript's highest solid block expression, found here. [VIP] 2019 [JR.MOD] 10/29/2019 [MOD] 12/30/2019 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now