Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {cobblex.%player%} = 1
- command /cobblex:
- permission: cobblex.use
- trigger:
- player has 576 cobblestone:
- remove 576 cobblestone from player
- clear {cobblex.%player%}
- wait a tick
- set {cobblex.%player%} to a random integer from 1 to 3
- if {cobblex.%player%} is 1:
- send "&aDostales 1 cobblex!"
- give a 129 of sharpness 5 named "&2CobbleX" to the player
- if {cobblex.%player%} is 2:
- send "&aDostales 2 cobblex!"
- give 2 129 of sharpness 5 named "&2CobbleX" to the player
- if {cobblex.%player%} is 3:
- send "&aDostales 3 cobblex!"
- give 3 129 of sharpness 5 named "&2CobbleX" to the player
- else:
- send "&4Blad: &cNie posiadasz 9 stakow cobblestone!."
- on rightclick with emerald ore:
- if name of player's tool is "&2CobbleX":
- chance of 5%:
- give 1 diamond sword to player
- send "&bOtrzymales miecz!" to player
- chance of 0.5%:
- give 1 diamond sword of sharpness 6 named "&5Super Miecz" to player
- send "&bOtrzymales &5Super Miecz!" to player
- chance of 15%:
- give 5 golden apple to player
- send "&bOtzymales jablka!" to player
- chance of 7%:
- give 2 enchanted golden apple to player
- send "&bOtrzymales koxa!" to player
- chance of 1%:
- give 1 diamond pickaxe of efficiency 6 named "&5Super Kilof" to player
- send "&bOtrzymales Super Kilof!" to player
- chance of 6%:
- give 32 diamonds to player
- send "&BOtrzymales 32 diamenty!" to player
- chance of 10%:
- give 16 diamonds to player
- send "&BOtrzymales 16 diamenty!" to player
- chance of 2%:
- give 64 diamonds to player
- send "&bOtrzymales 64 diamenty!" to player
- chance of 5%:
- give creeper spawn egg to player
- send "&bOtrzymales spawner Creepera!" to player
- chance of 5%:
- give potion of:8233 to player
- send "&BOtrzymales potke silki 2!" to player
- chance of 5%:
- give potion of:8258 to player
- send "&BOtrzymales Potke Speeda!" to player
- chance of 10%:
- give 16 tnt to player
- send "&bOtrzymales 16 TNT!" to player
- chance of 7%:
- give 32 tnt to player
- send "&bOtrzymales 32 TNT!" to player
- chance of 3%:
- give 64 tnt to player
- send "&bOtrzymales 64 TNT!" to player
- chance of 1%:
- give 1 rotten flesh to player
- send "&cNieszczescie ci dopisuje!" to player
- chance of 15%:
- give 16 nether wart item to player
- send "&bOtrzymales 16 Brodawek!" to player
- chance of 10%:
- give 10 blaze rod to player
- send "&bOtrzymales 10 Palek Blaze!" to player
- wait 1 tick
- remove 1 129 of sharpness 5 named "&2CobbleX" from player
- on place:
- player is holding emerald ore named "&2CobbleX":
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement