#Version 1.6.1.2/(2.1.2) recode by FUZIK #In order to download or use this software, you must agree to it's license: http://pastebin.com/raw.php?i=JGSLhFdU #Edit options and aliases to customize the skript # official page https://www.spigotmc.org/resources/puddles-sk.6211/ # i recommend create new db in config.sk(above "default") # puddles: # type: CSV # pattern: puddles.* # file: ./plugins/Skript/puddles.csv # backup interval: 0 options: rangeX: 30 rangeY: 20 rangeZ: 37 tickRate: 3 enabled world: "world" or "world0" block at: air or air block below: grass or dirt enabled biome: plains, sunflower plains, sunflower plains, forest, birch forest, roofed forest, flower forest, swampland, jungle, jungle hills, jungle edge, jungle mountains, jungle edge mountains, river, beach, mushroom island, mushroom shore, extreme_hills or extreme_hills_plus # english.lang # http://minecraft.gamepedia.com/Biome # https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/Biome.html aliases: landonable = 1, 2, 3, 4, 7, 12, 5, 17, 162, 13, 97, 98, 16, 15, 73, 14, 129, 56, 21 every {@tickRate} tick: loop all players: loop-player's world = {@enabled world} is raining or thundering in loop-player's world loop 5 times: set {_loc} to location of block at loop-player add a random integer between -{@rangeX} and {@rangeX} to {_loc}'s x-coordinate add a random integer between -{@rangeY} and {@rangeY} to {_loc}'s y-coordinate add a random integer between -{@rangeZ} and {@rangeZ} to {_loc}'s z-coordinate set {_chunk} to {_loc}'s chunk if size of {puddles.%loop-player's world%.chunk::%{_chunk}%::*} < 5: biome at {_loc} = {@enabled biome} set {_loc} to location of highest solid block at {_loc} block at {_loc} = {@block at} block below {_loc} = {@block below} "%{puddles.%loop-player's world%.chunk::*}%" doesn't contain "%{_chunk}%": add {_chunk} to {puddles.%loop-player's world%.chunk::*} add {_loc} to {puddles.%loop-player's world%.chunk::%{_chunk}%::*} set block at {_loc} to water set data value of block at {_loc} to 7 stop else: stop every 7 tick: loop all worlds: loop-world = {@enabled world} set {_chance} to 21 if is raining in loop-world: if time in loop-world is between 20:00 and 8:00: set {_chance} to {_chance} * 0.25 else if time in loop-world is between 11:00 and 16:00: set {_chance} to {_chance} * 0.75 else: set {_chance} to {_chance} * 0.50 else if is thundering in loop-world: if time in loop-world is between 20:00 and 8:00: set {_chance} to {_chance} * 0.05 if time in loop-world is between 11:00 and 16:00: set {_chance} to {_chance} * 0.2 else: set {_chance} to {_chance} * 0.1 else if is sunny in loop-world: if time in loop-world is between 20:00 and 8:00: set {_chance} to {_chance} * 0.9 else if time in loop-world is between 11:00 and 16:00: set {_chance} to {_chance} * 1.2 else: set {_chance} to {_chance} * 1 else: stop chance of {_chance}% set {_chunk} to a random chunk out of {puddles.%loop-world%.chunk::*} set {_loc} to a random location out of {puddles.%loop-world%.chunk::%{_chunk}%::*} {_loc} is location remove {_loc} from {puddles.%loop-world%.chunk::%{_chunk}%::*} block at {_loc} = water: wait a tick data value of block at {_loc} = 7 set block at {_loc} to air stop #clear {_loc} on physics: event-block = water data value of event-block = 7 {puddles.%world%.chunk::%chunk of block%::*} is set {puddles.%world%.chunk::%chunk of block%::*} contains location of block block below event-block = landonable cancel event