Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- delete {pandora::*}
- if {pandora::*} is not set:
- add "16 diamond" to {pandora::*}
- add "enderchest" to {pandora::*}
- add "5 gold ingot" to {pandora::*}
- #Tutaj dodajesz itemy jakie chcesz miec, mam nadzieje ze po przykladach bedziesz wiedzial jak to zrobic
- command /pandora:
- trigger:
- if player has 576 cobblestone:
- remove 576 cobblestone from player
- set {_r} to random integer from 1 to 3
- give {_r} dragon egg named "&6Cobble&4&lX" to the player
- on place of dragon egg:
- if name of player's tool is "&6Cobble&4&lX":
- set {dragonegg.%location of event-block%} to true
- on click on dragon egg:
- if {dragonegg.%location of event-block%} is set:
- cancel event
- set {_i} to size of {pandora::*}
- loop 10 times:
- if {_n} is set:
- exit loop
- loop {pandora::*}:
- chance of 100 / {_i}%:
- set {_n} to loop-value parsed as item
- exit loop
- give {_n} to the player
- set event-block to air
Advertisement
Add Comment
Please, Sign In to add comment