# Wersja: 1.0 # Zakaz usuwanie podpisu autora skryptu. # Zakaz podpisywania skryptu wlasnym nickiem. options: szansa: 45 on mine bookshelf: chance of (@szansa}%: drop enchanted book named "bookez" chance of 25%: drop 3 book chance of 25%: drop 2 book else: drop 1 book on pickup: event-item is enchanted book named "bookez" wait a tick loop items in player's inventory: loop-item is enchanted book named "blockez" remove loop-item from player add 0, 1, 2, 3, 4, 5, 6, 7, 8, 16, 17, 18, 19, 20, 21, 32, 33, 34, 35, 48, 49, 50, 51, 61, and 62 to {_ench::*} set {_rand::1} to random element of {_ench::*} set {_rand::2} to random element of {_ench::*} set {_rand::3} to random element of {_ench::*} set {_lvl::1} to random integer between 2 and 5 set {_lvl::2} to random integer between 2 and 5 set {_lvl::3} to random integer between 2 and 5 chance of 50%: execute console command "/give %player% enchanted_book 1 0 {StoredEnchantments:[{id:%{_rand::1}%,lvl:%{_lvl::1}%},{id:%{_rand::2}%,lvl:%{_lvl::2}%}]}" chance of 50%: execute console command "/give %player% enchanted_book 1 0 {StoredEnchantments:[{id:%{_rand::1}%,lvl:%{_lvl::1}%}]" else: execute console command "/give %player% enchanted_book 1 0 {StoredEnchantments:[{id:%{_rand::1}%,lvl:%{_lvl::1}%},{id:%{_rand::2}%,lvl:%{_lvl::2}%},{id:%{_rand::3}%,lvl:%{_lvl::3}%}]}"