SHOW:
|
|
- or go back to the newest paste.
| 1 | #================= StoneGenerator - by EmsonGames ================ | |
| 2 | ||
| 3 | # ===================== KOD/CODE ====================== | |
| 4 | ||
| 5 | on script load: | |
| 6 | - | register new shaped recipe for emerald ore named "&aMagiczna stoniarka" using stone, stone, stone, stone, emerald, stone, stone, stone, stone |
| 6 | + | register new shaped recipe for emerald ore named "&aMagiczna stoniarka" using iron_ingot, stone, iron_ingot, redstone_block, diamond, redstone_block, emerald, stone, emerald, |
| 7 | on place of emerald ore: | |
| 8 | if name of the player's tool is "&aMagiczna stoniarka": | |
| 9 | send "&7Postawiles: &aMagiczna stoniarke" | |
| 10 | set {s.%event-block%} to true
| |
| 11 | wait 1 second | |
| 12 | set event-block to stone | |
| 13 | stop | |
| 14 | on break of stone: | |
| 15 | if {s.%event-block%} is true:
| |
| 16 | if player is holding gold pickaxe: | |
| 17 | cancel event | |
| 18 | send "&7Zniszczyles: &aMagiczna stoniarke" | |
| 19 | set event-block to air | |
| 20 | if player can hold 1 emerald ore named "&aMagiczna stoniarka": | |
| 21 | give 1 emerald ore named "&aMagiczna stoniarka" to the player | |
| 22 | stop | |
| 23 | else: | |
| 24 | drop 1 emerald ore named "&aMagiczna stoniarka" | |
| 25 | stop | |
| 26 | else: | |
| 27 | wait 1 second | |
| 28 | set event-block to stone | |
| 29 | stop |