CaptainGolem Posted March 29, 2021 Share Posted March 29, 2021 Hey, working on my server, thought I'd make a skript to put snow under trees since //snow just doesn't cut it. After I made it, I thought, Hey! why not share it? so I did. bettersnow.sk Link to comment Share on other sites More sharing options...
AHelpingCandy Posted March 30, 2021 Share Posted March 30, 2021 Cool! IGN ➣ Pickey ( Soon ) Joined MineHut ➣ January 7th 2019 Joined Forums ➣ January 11th 2021 Admin on NotedGens Manager on NotedGens Developer on CropiedDeveloper on Gennow (Genable) ==========================================Best Job: Badlion ( Client Moderator [ Failed Trial / Demoted] )Retired From: InvadedLands ( Moderator ) Retired From: MineTime ( Sr.Moderator ) Retired From: Hero Mines ( Helper ) Link to comment Share on other sites More sharing options...
MillionDollar Posted March 30, 2021 Share Posted March 30, 2021 Did you try to obfuscate the skript or compile it with C? There's really no use for obfuscating skripts in my opinion. \f0\fs24 \cf0 command //bettersnow [<number>] :\ trigger:\ if player has permission "op":\ # Use "permission: op" instead of this, if you want to see if the player is an operator you need to use "if player is op:" set \{_snow\} to "%arg-1%" parsed as integer\ # No need to parse as an integer if you change [<number>] to [<integer=1>] (=1 so it returns 1 if no argument is provided) loop all blocks in radius \{_snow\} around player:\ if loop-block is air:\ if block below loop-block is not air:\ set loop-block to snow} "Clean version" # Defaults to 1 command //bettersnow [<integer=1>]: permission: op trigger: set {_r} to arg 1 loop all blocks in radius {_r} around player: if loop-block is air: if block below loop-block is not air: set loop-block to snow layer MillionDollar, TrillionDollar BillionDollar please notice me. Link to comment Share on other sites More sharing options...
CaptainGolem Posted March 30, 2021 Author Share Posted March 30, 2021 Thanks for the Feedback! I'm kinda just starting out at skript so thanks for your suggestion. Just a quick question, does the revised version actually make the skript more efficient or just less messy? Thanks. Link to comment Share on other sites More sharing options...
MillionDollar Posted March 30, 2021 Share Posted March 30, 2021 59 minutes ago, CaptainGolem said: Thanks for the Feedback! I'm kinda just starting out at skript so thanks for your suggestion. Just a quick question, does the revised version actually make the skript more efficient or just less messy? Thanks. Makes it less messy, and provides possibilities for setting snow layers which you can find here MillionDollar, TrillionDollar BillionDollar please notice me. Link to comment Share on other sites More sharing options...
CaptainGolem Posted March 30, 2021 Author Share Posted March 30, 2021 Thanks, I think it would be cool if the layers could be randomised for a more natural and wild feel. 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