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::*}
- command /pandora:
- trigger:
- if player has 576 cobblestone:
- remove 576 cobblestone from player
- set {_r} to "%random integer from 1 to 3%" parsed as integer
- set {_n} to dragon egg
- set {_item} to "%{_r}% %{_n}%" parsed as item
- give {_item} named "&6Cobble&4&lX" to the player
- stop
- send "&cNie posiadasz 9 stackow cobla!"
- stop
- 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:
- clear {dragonegg.%location of event-block%}
- 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