command /cx []: aliases: cobblex trigger: set {_gui} to chest inventory with 1 rows named "&7Stworz &fCobble&2X" set slot (integers between 0 and 8) of {_gui} to black stained glass pane set slot 3 of {_gui} to mossy cobblestone named "&fCobble&2X &8(&7Zwykly&8)" with lore "&8» &7Potrzebujesz (9 stackow) cobblestone" and "&8» &7Nacisnij &2LPM &7aby stworzyc." set slot 5 of {_gui} to glowing mossy cobblestone named "&fCobble&2X &8(&6Premium&8)" with lore "&8» &7Potrzebujesz 8 stackow cobblestone i 1 stack wegla" and "&8» &7Nacisnij &2LPM &7aby stworzyc." open {_gui} to player on inventory click: event-inventory is not player's inventory if name of event-inventory is "&7Stworz &fCobble&2X": cancel event if clicked slot is 3: if player has 576 cobblestone: remove 576 cobblestone from player's inventory send "&8» &aTworze &fcobble&2X..." wait 2 second give 1 mossy cobblestone named "&fCobble&2X &8(&7Zwykly&8)" to player send "&8» &aStworzono &fCobble&2X'a" else: send "&8» &cNie posiadasz 9 stack'ow cobbla !" if clicked slot is 5: if player has 512 cobblestone: if player has 64 coal: remove 576 cobblestone from player's inventory remove 64 coal from player's inventory send "&8» &aTworze &fcobble&2X..." wait 2 second give 1 mossy cobblestone named "&fCobble&2X &8(&6Premium&8)" to player send "&8» &aStworzono &fCobble&2X'a" else: send "&8» &cNie posiadasz 1 stacka wegla !" else: send "&8» &cNie posiadasz 8 stack'ow cobbla !" on place of mossy cobblestone: if player's tool's name is "&fCobble&2X &8(&7Zwykly&8)": remove 1 mossy cobblestone named "&fCobble&2X &8(&7Zwykly&8)" from player set block to air set {_a} to random integer from 1 to 10 if {_a} is 1: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &6%{_b}%x Zlota" to player player has enough space for {_b} of gold ingot: drop {_b} of gold ingot if {_a} is 2: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &f%{_b}%x Zelaza" to player player has enough space for {_b} of iron ingot: drop {_b} of iron ingot if {_a} is 3: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &6%{_b}%x Jablko" to player player has enough space for {_b} of apple: drop {_b} of apple if {_a} is 4: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &6%{_b}%x Proch" to player player has enough space for {_b} of gunpowder: drop {_b} of gunpowder if {_a} is 5: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &d%{_b}%x krzemien" to player player has enough space for {_b} of flint: drop {_b} of flint if {_a} is 6: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &d%{_b}%x strzala" to player player has enough space for {_b} of arrow: drop {_b} of arrow if {_a} is 7: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &2%{_b}%x slimeball" to player player has enough space for {_b} of slimeball: drop {_b} of slimeball if {_a} is 8: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &a%{_b}%x Nicie" to player player has enough space for {_b} of string: drop {_b} of string if {_a} is 9: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &f%{_b}%x Kosc" to player player has enough space for {_b} of bone meal: drop {_b} of bone meal if {_a} is 10: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &c%{_b}%x Trzcina" to player player has enough space for {_b} of sugar canes: drop {_b} of sugar canes if player's tool's name is "&fCobble&2X &8(&6Premium&8)": remove 1 mossy cobblestone named "&fCobble&2X &8(&6Premium&8)" from player set block to air set {_a} to random integer from 1 to 13 if {_a} is 1: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &a%{_b}%x Emeraldow" to player player has enough space for {_b} of emerald: drop {_b} of emerald if {_a} is 2: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &6%{_b}%x Zlota" to player player has enough space for {_b} of gold ingot: drop {_b} of gold ingot if {_a} is 3: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &f%{_b}%x Zelaza" to player player has enough space for {_b} of iron ingot: drop {_b} of iron ingot if {_a} is 4: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &6%{_b}%x Jablko" to player player has enough space for {_b} of apple: drop {_b} of apple if {_a} is 5: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &6%{_b}%x Proch" to player player has enough space for {_b} of gunpowder: drop {_b} of gunpowder if {_a} is 6: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &9%{_b}%x Perla" to player player has enough space for {_b} of ender pearl: drop {_b} of ender pearl if {_a} is 7: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &d%{_b}%x krzemien" to player player has enough space for {_b} of flint: drop {_b} of flint if {_a} is 8: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &d%{_b}%x strzala" to player player has enough space for {_b} of arrow: drop {_b} of arrow if {_a} is 9: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &2%{_b}%x slimeball" to player player has enough space for {_b} of slimeball: drop {_b} of slimeball if {_a} is 10: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &a%{_b}%x Nicie" to player player has enough space for {_b} of string: drop {_b} of string if {_a} is 11: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &f%{_b}%x Kosc" to player player has enough space for {_b} of bone meal: drop {_b} of bone meal if {_a} is 12: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &c%{_b}%x Trzcina" to player player has enough space for {_b} of sugar canes: drop {_b} of sugar canes if {_a} is 13: add 1 to {_b} send "&8» &7Postawiles &fCobble&2X &7i wylosowales: &8%{_b}%x Jasnopyl" to player player has enough space for {_b} of glowstone dust: drop {_b} of glowstone dust on command: if command is "cobleks" or "cobbleks" or "coblex" or "koblex": cancel event execute player command "/cx"