on place flower pot: block below event-block is workbench set {workbench.%location of block below event-block%} to true stop on rightclick on flower pot: tool is air {workbench.%location of block below event-block%} is not set: block below event-block is workbench show smoke at location of event-block play raw sound "mob.creeper.death" at location of event-block with pitch 1 volume 1 stop {cobl.clickpot.%location of event-block%} is player: clear {cobl.clickpot.%location of event-block%} stop {cobl.clickpot.%location of event-block%} is set: send "&cTen utylizator jest zajety przez %{cobl.clickpot.%location of event-block%}%!" stop set {cobl.clickpot.%location of event-block%} to player block below event-block is workbench {workbench.%location of block below event-block%} is true set {coblA.4.%player%} to number of cobblestone in player's inventory show "s;1;i;air" with 1 row named "&5&lUtylizator bruku" to player set {cobl.lastplace.%player%} to false wait 2 seconds set {cobl.lastloc.%player%} to location of event-block stop on every 2 seconds: loop {event.activepots::*}: play ender signal at location of loop-value play raw sound "note.bd" at location of loop-value with pitch 1 volume 1 stop on drop: {cobl.lastloc.%player%} is set cancel event stop on pickup: {cobl.lastloc.%player%} is set cancel event stop on click: {cobl.lastloc.%player%} is set clear {cobl.clickpot.%{cobl.lastloc.%player%}%} set {coblB.4.%player%} to number of cobblestone in player's inventory {coblB.4.%player%} is {coblA.4.%player%}: set {cobl.4.dontchange.%player%} to true clear {cobl.lastloc.%player%} {cobl.4.dontchange.%player%} is not set: remove {coblB.4.%player%} from {coblA.4.%player%} {cobl.4.dontchange.%player%} is true: clear {cobl.4.dontchange.%player%} clear {cobl.263.dontchange.%player%} clear {cobl.lastloc.%player%} stop {coblA.4.%player%} is bigger than 575: remove 576 from {coblA.4.%player%} add 1 tnt named "&a&oMagiczne TNT" to {cobl.inv.%{cobl.lastloc.%player%}%::*} add {cobl.lastloc.%player%} to {event.activepots::*} loop all blocks around player in radius 5: loop-block is workbench clear {workbench.%location of loop-block%} {coblA.4.%player%} is bigger than 0: send "[SKRIPT] [Eco-Cobl] Przydzielanie reszty cobblestone dla gracza %player%" to console execute console command "give %player% cobblestone %{coblA.4.%player%}%" set {_loc} to {cobl.lastloc.%player%} clear {coblA.4.%player%} clear {cobl.lastloc.%player%} wait 15 seconds loop all blocks around location of {_loc} in radius 3: loop-block is flower pot {cobl.inv.%location of loop-block%::*} is set wait 15 seconds loop all blocks around location of {_loc} in radius 3: loop-block is flower pot {cobl.inv.%location of loop-block%::*} is set set {cobl.utylizator.done.%{_loc}%} to true loop {event.activepots::*}: loop-value is {_loc} remove {_loc} from {event.activepots::*} play raw sound "note.hat" at location of event-block with pitch 1.5 volume 1.5 stop stop on any movement: {cobl.lastloc.%player%} is set clear {cobl.clickpot.%{cobl.lastloc.%player%}%} set {coblB.4.%player%} to number of cobblestone in player's inventory {coblB.4.%player%} is {coblA.4.%player%}: set {cobl.4.dontchange.%player%} to true clear {cobl.lastloc.%player%} {cobl.4.dontchange.%player%} is not set: remove {coblB.4.%player%} from {coblA.4.%player%} {cobl.4.dontchange.%player%} is true: clear {cobl.4.dontchange.%player%} clear {cobl.263.dontchange.%player%} clear {cobl.lastloc.%player%} stop {coblA.4.%player%} is bigger than 575: remove 576 from {coblA.4.%player%} add 1 tnt named "&a&oMagiczne TNT" to {cobl.inv.%{cobl.lastloc.%player%}%::*} add {cobl.lastloc.%player%} to {event.activepots::*} loop all blocks around player in radius 5: loop-block is workbench clear {workbench.%location of loop-block%} {coblA.4.%player%} is bigger than 0: send "[SKRIPT] [Eco-Cobl] Przydzielanie reszty cobblestone dla gracza %player%" to console execute console command "give %player% cobblestone %{coblA.4.%player%}%" set {_loc} to {cobl.lastloc.%player%} clear {coblA.4.%player%} clear {cobl.lastloc.%player%} wait 15 seconds loop all blocks around location of {_loc} in radius 3: loop-block is flower pot {cobl.inv.%location of loop-block%::*} is set wait 15 seconds loop all blocks around location of {_loc} in radius 3: loop-block is flower pot {cobl.inv.%location of loop-block%::*} is set set {cobl.utylizator.done.%{_loc}%} to true loop {event.activepots::*}: loop-value is {_loc} remove {_loc} from {event.activepots::*} play raw sound "note.hat" at location of event-block with pitch 1.5 volume 1.5 stop stop on break flower pot: {cobl.inv.%location of event-block%::*} is set {cobl.utylizator.done.%location of event-block%} is not set: remove location of event-block from {event.activepots::*} loop {cobl.inv.%location of event-block%::*}: loop-value is tnt named "&a&oMagiczne TNT" remove loop-value from {cobl.inv.%location of event-block%::*} chance of 75%: drop 384 cobblestone play raw sound "random.fizz" at location of event-block with pitch 1 volume 1 send "&6Cos sie chyba spalilo... ;\" stop chance of 50%: drop 192 cobblestone play raw sound "random.fizz" at location of event-block with pitch 1 volume 1 send "&6Cos sie chyba spalilo... ;\" stop drop 576 cobblestone stop {cobl.utylizator.done.%location of event-block%} is true clear {cobl.utylizator.done.%location of event-block%} clear entity loop {cobl.inv.%location of event-block%::*}: drop loop-value remove loop-value from {cobl.inv.%location of event-block%::*} play raw sound "random.wood_click" at location of event-block with pitch 1 volume 1 remove location of event-block from {event.activepots::*} clear {cobl.clickpot.%location of event-block%} stop on tool change: tool is tnt: name of tool is "&a&oMagiczne TNT" set {cobl.tool.%player%} to true stop clear {cobl.tool.%player%} stop on place tnt: {cobl.tool.%player%} is true wait 1 tick player's tool is tnt: set {cobl.tnt.%location of event-block%} to true stop clear {cobl.tool.%player%} set {cobl.tnt.%location of event-block%} to true stop on pickup tnt: name of item is "&a&oMagiczne TNT" set {cobl.tool.%player%} to true stop on drop: name of tool is "&a&oMagiczne TNT" add 1 to {cobl.droppedtnt.%player%} stop on pickup tnt: {cobl.dropeedtnt.%player%} is set: remove 1 from {cobl.dropeedtnt.%player%} set name of item to "&a&oMagiczne TNT" stop on break tnt: {cobl.tnt.%location of event-block%} is true clear {cobl.tnt.%location of event-block%} player's gamemode is survival or adventure cancel event set event-block to air drop tnt named "&a&oMagiczne TNT" stop on rightclick with flint'n'steel: targeted block is water: cancel event stop targeted block is tnt distance between location of player and location of targeted block is smaller than 6: {cobl.tnt.%location of targeted block%} is true clear {cobl.tnt.%location of targeted block%} cancel event set targeted block to air pop ball colored red at location of targeted block chance of 10%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop slimeball chance of 10%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop snow block chance of 10%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop bed chance of 10%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop gold ingot chance of 10%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop diamond chance of 10%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop iron ingot # ---------------------------------------------------------------- # chance of 25%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop ender pearl chance of 25%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop emerald chance of 25%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop pumpkin chance of 25%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop rotten flesh chance of 25%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop red mushroom chance of 25%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop cobweb chance of 25%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop glowstone chance of 25%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop yellow flower chance of 25%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop 3 snowball chance of 25%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop stone hoe chance of 25%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop red flower chance of 25%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop sugar chance of 25%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop bone chance of 25%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop spider eye chance of 25%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop brown mushroom # -------------------------------------------------------------------- # chance of 40%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop eye of ender chance of 40%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop sulphur chance of 40%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop mycelium chance of 40%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop leather chance of 40%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop apple chance of 40%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop arrow chance of 40%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop string chance of 5%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop nether star chance of 5%: {cobl.droptnt.%player%} is 3: clear {cobl.droptnt.%player%} stop add 1 to {cobl.droptnt.%player%} drop tnt named "&a&oMagiczne TNT" clear {cobl.droptnt.%player%} stop