Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- load("loads/menuutil.js")
- load("loads/vaultutil.js")
- autoload.watch("patches/content/tutorial.js")
- var tutorialJoinItem = itemName(itemStack("name tag"), colorize("&e&lTutorial"))
- itemAddLore(tutorialJoinItem, colorize("&7This menu contains lots of &6information"))
- itemAddLore(tutorialJoinItem, colorize("&7about the gamemode"))
- itemAddLore(tutorialJoinItem, colorize(""))
- itemAddLore(tutorialJoinItem, colorize("&7You can &3read &7through the sections"))
- itemAddLore(tutorialJoinItem, colorize("&7below &aby hovering &7over each item"))
- itemAddLore(tutorialJoinItem, colorize(""))
- itemAddLore(tutorialJoinItem, colorize("&7You can also go on a &ctour of the server"))
- itemAddLore(tutorialJoinItem, colorize("&7by &dclicking this item!"))
- var islandItem = itemName(itemStack("grass"), colorize("&a&lIslands"))
- itemAddLore(islandItem, colorize("&7You can start your own island by typing &e&l/is&7!"))
- itemAddLore(islandItem, colorize("&6A gui will open and display all of"))
- itemAddLore(islandItem, colorize("&fthe different &eislands &7you can start from!"))
- itemAddLore(islandItem, colorize("&7But be careful, some are &charder &7than the others!"))
- itemAddLore(islandItem, colorize("&7These are the islands you can choose from:"))
- itemAddLore(islandItem, colorize(" &c- &a&lClassic &f&lIsland"))
- itemAddLore(islandItem, colorize(" &c- &f&lThe &a&Original &f&lIsland"))
- itemAddLore(islandItem, colorize(" &c- &d&lMedievel &f&lIsland"))
- itemAddLore(islandItem, colorize(" &c- &e&lFarmer &f&lIsland"))
- itemAddLore(islandItem, colorize(" &c- &2&lMushroom &f&lIsland"))
- itemAddLore(islandItem, colorize(" &c- &6&lDouble &f&lIsland"))
- itemAddLore(islandItem, colorize(" &c- &b&lIce &f&lIsland"))
- itemAddLore(islandItem, colorize(" &c- &5&lDesert &f&lIsland"))
- itemAddLore(islandItem, colorize(" &c- &4&lVolcano &f&lIsland"))
- itemAddLore(islandItem, colorize(" &c- &c&lNether &f&lIsland"))
- var cratesItem = itemName(itemStack("chest"), colorize("&5&lCrates"))
- itemAddLore(cratesItem, colorize("&7Running low on supplies?"))
- itemAddLore(cratesItem, colorize(""))
- itemAddLore(cratesItem, colorize("&7You can get &bSpawners&7, &6Money&7, and other"))
- itemAddLore(cratesItem, colorize("&ccool items &7by opening &5crates!"))
- itemAddLore(cratesItem, colorize(""))
- itemAddLore(cratesItem, colorize("&cType &4/crates &cto visit the crate area"))
- var pvpItem = itemName(itemStack("diamond sword"), colorize("&e&lPvP"))
- itemAddLore(pvpItem, colorize("&7Want to try and kill other players and gain their loot?"))
- itemAddLore(pvpItem, colorize("&7Go to &e/pvp &7to try!"))
- var islandLevel = itemName(itemStack("exp bottle"), colorize("&d&lIsland Level"))
- itemAddLore(islandLevel, colorize("&7Blocks you place increase your &disland level"))
- itemAddLore(islandLevel, colorize("&7which is displayed on the scoreboared"))
- itemAddLore(islandLevel, colorize(""))
- itemAddLore(islandLevel, colorize("&7More valuable items such as &aores"))
- itemAddLore(islandLevel, colorize("&7increase the island level much more!"))
- var bankItem = itemName(itemStack("emerald"), colorize("&a&lBank"))
- itemAddLore(bankItem, colorize("&7You can exchange &amoney &7with other players"))
- itemAddLore(bankItem, colorize("&7by talking to the &aBanker &7at &6/spawn"))
- var helpItem = itemName(itemStack("name tag"), colorize("&c&lGeneral Help"))
- itemAddLore(helpItem, colorize("&7Around the spawn you can find places which"))
- itemAddLore(helpItem, colorize("&7show you how to do certain things"))
- itemAddLore(helpItem, colorize(""))
- itemAddLore(helpItem, colorize("&7Such as"))
- itemAddLore(helpItem, colorize(" &c- &7Build a &ecobblestone generator"))
- itemAddLore(helpItem, colorize(" &c- &7Make a &echest shop"))
- var barItem = itemName(itemStack("potion"), colorize("&2&lBar"))
- itemAddLore(barItem, colorize("&7Feeling lucky?"))
- itemAddLore(barItem, colorize(""))
- itemAddLore(barItem, colorize("&aGamble &7your money away at the bar"))
- itemAddLore(barItem, colorize("&7and hope for a big return!"))
- itemAddLore(barItem, colorize(""))
- itemAddLore(barItem, colorize("&cType &4/bar &cor &4/casino &cto be teleported"))
- exports.put("patches/content/tutorial", {
- npc: new Location(bukkit.getWorld("world"), 183.5, 118, 6.5),
- script: [
- { action: "warp", name: "tutorial1", andWait: 10 },
- { action: "title", title: "Welcome to &c&lSkyblock &7&l2&r!", subtitle: "Talk to the banker to &cwithdraw money&r!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 60 },
- { action: "warp", name: "tutorial2", andWait: 10 },
- { action: "title", title: "&b&lExamples", subtitle: "This is how you use &3chest shops&r and make &ecobblestone generators&r!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 60 },
- { action: "warp", name: "pvp", andWait: 10 },
- { action: "title", title: "&4&lPvP &b&lArena", subtitle: "Fight to the &4&ldeath&r here!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 10 },
- { action: "message", message: "\nThis is where you can battle other &eplayers&r!", andWait: 60 },
- { action: "warp", name: "tutorial3", andWait: 10 },
- { action: "title", title: "&b&lBar", subtitle: "Here you can &egamble&r your money!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 10 },
- { action: "message", message: "\nTest your luck at the &d&lbar&r!", andWait: 60 },
- { action: "warp", name: "tutorial4", andWait: 10 },
- { action: "title", title: "&a&lShop", subtitle: "Here you can &ebuy&r blocks and items!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 60 },
- { action: "warp", name: "tutorial5", andWait: 10 },
- { action: "title", title: "&e&lCommands", subtitle: "Here you can view all of the &ecommands&r!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 10 },
- { action: "message", message: "\nThese will be &euseful&r when you start playing!", andWait: 60 },
- { action: "warp", name: "tutorial6", andWait: 10 },
- { action: "title", title: "&6&lRules", subtitle: "Here you can view all of the &6rules&r!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 10 },
- { action: "message", message: "\nYou need to know all of the &6rules&r!", andWait: 60 },
- { action: "warp", name: "tutorial7", andWait: 10 },
- { action: "title", title: "&2&lParkour", subtitle: "You can complete the &2parkour &rdaily for a reward!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 10 },
- { action: "message", message: "\nGood luck completing the &2parkour&r!", andWait: 60 },
- { action: "warp", name: "tutorial8", andWait: 10 },
- { action: "title", title: "&c&lIslands", subtitle: "Here are some of the &cislands&r!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 10 },
- { action: "message", message: "\nYou can start with any of these &cislands&r!", andWait: 60 },
- { action: "warp", name: "tutorial9", andWait: 40 },
- { action: "warp", name: "tutorial10", andWait: 40 },
- { action: "warp", name: "tutorial11", andWait: 40 },
- { action: "warp", name: "tutorial12", andWait: 40 },
- { action: "warp", name: "tutorial13", andWait: 40 },
- { action: "warp", name: "tutorial14", andWait: 40 },
- { action: "warp", name: "tutorial15", andWait: 40 },
- { action: "warp", name: "spawn", andWait: 10 },
- { action: "title", title: "&b&lThanks&r for staying!", subtitle: "Tutorial Complete!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 20 },
- ],
- reward: player => {
- vault().depositPlayer(player, 25000)
- player.sendMessage(colorize("&a+ $25,000 for completing Tutorial!"))
- },
- encyclopedia: {
- schemeMask: "111111111 111101111 111000111 111000111 111101111 111111111",
- scheme: menuScheme(
- [0, 0, 14, 4, 0, 4, 14, 0, 0,
- 0, 4, 14, 0, 0, 14, 4, 0,
- 14, 4, 0, 0, 4, 14,
- 14, 4, 0, 0, 4, 14,
- 0, 4, 14, 0, 0, 14, 4, 0,
- 0, 0, 14, 4, 0, 4, 14, 0, 0], true),
- populatorMask: "000000000 000010000 000111000 000111000 000010000 000000000",
- populator: (partition, doTutorial) => {
- partition.newSlot(tutorialJoinItem, () => doTutorial())
- partition.newSlot(islandItem)
- partition.newSlot(cratesItem)
- partition.newSlot(pvpItem)
- partition.newSlot(islandLevel)
- partition.newSlot(bankItem)
- partition.newSlot(helpItem)
- partition.newSlot(barItem)
- },
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement