import: java.lang.Integer on rightclick on composter: cancel event if block at event-location is level 0 composter: set block at event-location to level 1 composter send action bar "&4Composter Level: &c1" to player stop if block at event-location is level 1 composter: set block at event-location to level 2 composter send action bar "&4Composter Level: &c2" to player stop if block at event-location is level 2 composter: set block at event-location to level 3 composter send action bar "&4Composter Level: &c3" to player stop if block at event-location is level 3 composter: set block at event-location to level 4 composter send action bar "&4Composter Level: &c4" to player stop if block at event-location is level 4 composter: set block at event-location to level 5 composter send action bar "&4Composter Level: &c5" to player stop if block at event-location is level 5 composter: set block at event-location to level 6 composter send action bar "&4Composter Level: &c6" to player stop if block at event-location is level 6 composter: set block at event-location to level 0 composter send action bar "&4Composter Level: &c0" to player stop on rightclick on cake: cancel event if event-block.getBlockData().getBites() is equal to 0: set {_blkdata} to event-block.getBlockData() {_blkdata}.setBites(1) event-block.setBlockData({_blkdata}) event-block.update() send action bar "&4Cake bites: &c1" to player stop if event-block.getBlockData().getBites() is equal to 1: set {_blkdata} to event-block.getBlockData() {_blkdata}.setBites(2) event-block.setBlockData({_blkdata}) event-block.update() send action bar "&4Cake bites: &c2" to player stop if event-block.getBlockData().getBites() is equal to 2: set {_blkdata} to event-block.getBlockData() {_blkdata}.setBites(3) event-block.setBlockData({_blkdata}) event-block.update() send action bar "&4Cake bites: &c3" to player stop if event-block.getBlockData().getBites() is equal to 3: set {_blkdata} to event-block.getBlockData() {_blkdata}.setBites(4) event-block.setBlockData({_blkdata}) event-block.update() send action bar "&4Cake bites: &c4" to player stop if event-block.getBlockData().getBites() is equal to 4: set {_blkdata} to event-block.getBlockData() {_blkdata}.setBites(5) event-block.setBlockData({_blkdata}) event-block.update() send action bar "&4Cake bites: &c5" to player stop if event-block.getBlockData().getBites() is equal to 5: set {_blkdata} to event-block.getBlockData() {_blkdata}.setBites(6) event-block.setBlockData({_blkdata}) event-block.update() send action bar "&4Cake bites: &c6" to player stop if event-block.getBlockData().getBites() is equal to 6: set {_blkdata} to event-block.getBlockData() {_blkdata}.setBites(0) event-block.setBlockData({_blkdata}) event-block.update() send action bar "&4Cake bites: &c0" to player stop command /dec2bin : trigger: set {num} to arg-1 set {_binary} to Integer.toBinaryString({num}) message "%{_binary}%" command /bin2dec : trigger: set {_decimal} to Integer.valueOf("%arg-1%",2) if {_decimal} is set: message "%{_decimal}%" if {_decimal} is not set: message "Error, please use only 1's and 0's" on rightclick on cauldron: cancel event if block at event-location is empty cauldron: set block at event-location to one-third filled cauldron send action bar "&4Cauldron level: &c1" to player stop if block at event-location is one-third filled cauldron: set block at event-location to two-thirds filled cauldron send action bar "&4Cauldron level: &c2" to player stop if block at event-location is two-thirds filled cauldron: set block at event-location to full cauldron send action bar "&4Cauldron level: &c3" to player stop if block at event-location is full cauldron: set block at event-location to empty cauldron send action bar "&4Cauldron level: &c0" to player stop on place of piston: if player is sneaking: set {_yaw} to yaw of player set {_x} to block's x-coord set {_y} to block's y-coord set {_z} to block's z-coord subtract 1 from {_x} subtract 1 from {_y} subtract 1 from {_z} broadcast "detected place of piston" if {_yaw} is between 315 and 360: #south if player's facing is not down: if player's facing is not up: execute console command "/setblock %{_x}% %{_y}% %{_z}% minecraft:piston[facing=south]" loop blocks in radius 1 of event-location: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air if {_yaw} is between 0 and 45: #south if player's facing is not down: if player's facing is not up: execute console command "/setblock %{_x}% %{_y}% %{_z}% minecraft:piston[facing=south]" loop blocks in radius 1 of event-location: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if {_yaw} is between 45 and 135: #west if player's facing is not down: if player's facing is not up: execute console command "/setblock %{_x}% %{_y}% %{_z}% minecraft:piston[facing=west]" loop blocks in radius 1 of event-location: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if {_yaw} is between 135 and 225: #north if player's facing is not down: if player's facing is not up: execute console command "/setblock %{_x}% %{_y}% %{_z}% minecraft:piston[facing=north]" loop blocks in radius 1 of event-location: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if {_yaw} is between 225 and 315: #east if player's facing is not down: if player's facing is not up: execute console command "/setblock %{_x}% %{_y}% %{_z}% minecraft:piston[facing=east]" loop blocks in radius 1 of event-location: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if player's facing is up: execute console command "/setblock %{_x}% %{_y}% %{_z}% minecraft:piston[facing=up]" loop blocks in radius 1 of event-location: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if player's facing is down: execute console command "/setblock %{_x}% %{_y}% %{_z}% minecraft:piston[facing=down]" loop blocks in radius 1 of event-location: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop on place of sticky piston: if player is sneaking: set {_yaw} to yaw of player set {_x} to block's x-coord set {_y} to block's y-coord set {_z} to block's z-coord subtract 1 from {_x} subtract 1 from {_y} subtract 1 from {_z} if {_yaw} is between 315 and 360: #south if player's facing is not down: if player's facing is not up: execute console command "/setblock %{_x}% %{_y}% %{_z}% minecraft:sticky_piston[facing=south]" loop blocks in radius 1 of event-location: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air if {_yaw} is between 0 and 45: #south if player's facing is not down: if player's facing is not up: execute console command "/setblock %{_x}% %{_y}% %{_z}% minecraft:sticky_piston[facing=south]" loop blocks in radius 1 of event-location: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if {_yaw} is between 45 and 135: #west if player's facing is not down: if player's facing is not up: execute console command "/setblock %{_x}% %{_y}% %{_z}% minecraft:sticky_piston[facing=west]" loop blocks in radius 1 of event-location: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if {_yaw} is between 135 and 225: #north if player's facing is not down: if player's facing is not up: execute console command "/setblock %{_x}% %{_y}% %{_z}% minecraft:sticky_piston[facing=north]" loop blocks in radius 1 of event-location: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if {_yaw} is between 225 and 315: #east if player's facing is not down: if player's facing is not up: execute console command "/setblock %{_x}% %{_y}% %{_z}% minecraft:sticky_piston[facing=east]" loop blocks in radius 1 of event-location: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if player's facing is up: execute console command "/setblock %{_x}% %{_y}% %{_z}% minecraft:sticky_piston[facing=up]" loop blocks in radius 1 of event-location: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if player's facing is down: execute console command "/setblock %{_x}% %{_y}% %{_z}% minecraft:sticky_piston[facing=down]" loop blocks in radius 1 of event-location: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop on place of repeater: if player is sneaking: set {_yaw} to yaw of player if {_yaw} is between 315 and 360:#south set block at event-location to unpowered south facing repeater loop blocks in radius 1 of event-block: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if {_yaw} is between 0 and 45:#south set block at event-location to unpowered south facing repeater loop blocks in radius 1 of event-block: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if {_yaw} is between 45 and 135:#west set block at event-location to unpowered west facing repeater loop blocks in radius 1 of event-block: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if {_yaw} is between 135 and 225:#north set block at event-location to unpowered north facing repeater loop blocks in radius 1 of event-block: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if {_yaw} is between 225 and 315:#east set block at event-location to unpowered east facing repeater loop blocks in radius 1 of event-block: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop on place of observer: if player is sneaking: set {_yaw} to yaw of player if {_yaw} is between 315 and 360: if player's facing is not up: if player's facing is not down: set block at event-location to unpowered north facing observer loop blocks in radius 1 of event-block: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if {_yaw} is between 0 and 45: if player's facing is not up: if player's facing is not down: set block at event-location to unpowered north facing observer loop blocks in radius 1 of event-block: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if {_yaw} is between 45 and 135: if player's facing is not up: if player's facing is not down: set block at event-location to unpowered east facing observer loop blocks in radius 1 of event-block: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if {_yaw} is between 135 and 225: if player's facing is not up: if player's facing is not down: set block at event-location to unpowered south facing observer loop blocks in radius 1 of event-block: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if {_yaw} is between 225 and 315: if player's facing is not up: if player's facing is not down: set block at event-location to unpowered west facing observer loop blocks in radius 1 of event-block: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if player's facing is up: set block at event-location to unpowered down facing observer loop blocks in radius 1 of event-block: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if player's facing is down: set block at event-location to unpowered up facing observer loop blocks in radius 1 of event-block: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop on place of comparator: if player is sneaking: set {_yaw} to yaw of player if {_yaw} is between 315 and 360: set block at event-location to unpowered south facing compare mode comparator loop blocks in radius 1 of event-block: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if {_yaw} is between 0 and 45: set block at event-location to unpowered south facing compare mode comparator loop blocks in radius 1 of event-block: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if {_yaw} is between 45 and 135: set block at event-location to unpowered west facing compare mode comparator loop blocks in radius 1 of event-block: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop if {_yaw} is between 135 and 225: set block at event-location to unpowered north facing compare mode comparator loop blocks in radius 1 of event-block: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop message "script completed" if {_yaw} is between 225 and 315: set block at event-location to unpowered east facing compare mode comparator loop blocks in radius 1 of event-block: if loop-block is air: set loop-block to barrier wait 1 tick set loop-block to air stop on rightclick on redstone wire holding redstone: set {pwr} to block.getBlockData().getPower() send action bar "&4Power: &c%{pwr}%" to player on place of a end portal frame: if player is sneaking: set block at event-location to filled end portal frame command /furnace : trigger: if arg-1 is greater than 15: message "Too high, use only 1-15" if arg-1 is less than 1: message "Too low, use only 1-15" if arg-1 is set: if arg-1 is 1: execute console command "/give @p minecraft:furnace{BlockEntityTag:{Items:[{Slot:0,id:redstone_block,Count:1}]}} 1" if arg-1 is 2: execute console command "/give @p minecraft:furnace{BlockEntityTag:{Items:[{Slot:0,id:redstone_block,Count:14}]}} 1" if arg-1 is 3: execute console command "/give @p minecraft:furnace{BlockEntityTag:{Items:[{Slot:0,id:redstone_block,Count:28}]}} 1" if arg-1 is 4: execute console command "/give @p minecraft:furnace{BlockEntityTag:{Items:[{Slot:0,id:redstone_block,Count:42}]}} 1" if arg-1 is 5: execute console command "/give @p minecraft:furnace{BlockEntityTag:{Items:[{Slot:0,id:redstone_block,Count:55}]}} 1" if arg-1 is 6: execute console command "/give @p minecraft:furnace{BlockEntityTag:{Items:[{Slot:0,id:redstone_block,Count:64},{Slot:1,id:redstone_block,Count:5}]}} 1" if arg-1 is 7: execute console command "/give @p minecraft:furnace{BlockEntityTag:{Items:[{Slot:0,id:redstone_block,Count:64},{Slot:1,id:redstone_block,Count:19}]}} 1" if arg-1 is 8: execute console command "/give @p minecraft:furnace{BlockEntityTag:{Items:[{Slot:0,id:redstone_block,Count:64},{Slot:1,id:redstone_block,Count:32}]}} 1" if arg-1 is 9: execute console command "/give @p minecraft:furnace{BlockEntityTag:{Items:[{Slot:0,id:redstone_block,Count:64},{Slot:1,id:redstone_block,Count:46}]}} 1" if arg-1 is 10: execute console command "/give @p minecraft:furnace{BlockEntityTag:{Items:[{Slot:0,id:redstone_block,Count:64},{Slot:1,id:redstone_block,Count:60}]}} 1" if arg-1 is 11: execute console command "/give @p minecraft:furnace{BlockEntityTag:{Items:[{Slot:0,id:redstone_block,Count:64},{Slot:1,id:redstone_block,Count:64},{Slot:2,id:redstone_block,Count:10}]}} 1" if arg-1 is 12: execute console command "/give @p minecraft:furnace{BlockEntityTag:{Items:[{Slot:0,id:redstone_block,Count:64},{Slot:1,id:redstone_block,Count:64},{Slot:2,id:redstone_block,Count:23}]}} 1" if arg-1 is 13: execute console command "/give @p minecraft:furnace{BlockEntityTag:{Items:[{Slot:0,id:redstone_block,Count:64},{Slot:1,id:redstone_block,Count:64},{Slot:2,id:redstone_block,Count:37}]}} 1" if arg-1 is 14: execute console command "/give @p minecraft:furnace{BlockEntityTag:{Items:[{Slot:0,id:redstone_block,Count:64},{Slot:1,id:redstone_block,Count:64},{Slot:2,id:redstone_block,Count:51}]}} 1" if arg-1 is 15: execute console command "/give @p minecraft:furnace{BlockEntityTag:{Items:[{Slot:0,id:redstone_block,Count:64},{Slot:1,id:redstone_block,Count:64},{Slot:2,id:redstone_block,Count:64}]}} 1"