[{"data":1,"prerenderedAt":251},["ShallowReactive",2],{"project--04-04-2024-dev-blog-1-build-a-skyblock-plugin":3},{"id":4,"title":5,"body":6,"description":233,"extension":234,"meta":235,"navigation":246,"path":247,"seo":248,"stem":249,"__hash__":250},"blog\u002Fblog\u002F04-04-2024-dev-blog-1-build-a-skyblock-plugin.md","Build a Skyblock Plugin (Part 1): Introduction",{"type":7,"value":8,"toc":223},"minimark",[9,14,19,23,26,30,38,69,74,78,81,95,99,106,126,141,144,155,165,176,180,183,211,215,218],[10,11,13],"h1",{"id":12},"dev-blog-1-build-a-minecraft-skyblock-plugin","Dev Blog #1: Build a Minecraft Skyblock Plugin",[15,16,18],"h2",{"id":17},"what-type-of-plugin-am-i-building","What type of plugin am I building?",[20,21,22],"p",{},"I'm building a Minecraft 1.20.4 Skyblock plugin. Skyblock is a popular game mode in Minecraft where players start on a\nsmall island in the sky and have to expand it by gathering resources, building structures, and completing challenges.\nThe goal is to create a thriving island and become the richest player on the server.",[20,24,25],{},"That's what everyone wants, but I prefer something a little bit more like Hypixel’s Skyblock—not too complex but with\ninteresting features and mechanics.",[15,27,29],{"id":28},"considerations-requirements","Considerations \u002F Requirements",[20,31,32,33,37],{},"This plugin is for ",[34,35,36],"strong",{},"Edmine Network",", a Minecraft server that I'm working on. Here are some considerations and\nrequirements for the plugin (some features are missing):",[39,40,41,45,48,51,54,57,60,63,66],"ul",{},[42,43,44],"li",{},"Players should be able to create and manage their own islands.",[42,46,47],{},"Islands should have a border that prevents players from falling off.",[42,49,50],{},"Players should be able to invite others to their islands.",[42,52,53],{},"Players should be able to visit other players' islands and interact with them.",[42,55,56],{},"Islands should have a shop where players can buy and sell items.",[42,58,59],{},"Players should be able to compete in challenges and earn rewards.",[42,61,62],{},"Implements dungeons, custom items, and custom mobs to enhance the experience.",[42,64,65],{},"Players should be able to level up their islands and unlock new features (size, generator, etc.).",[42,67,68],{},"Players should be able to edit island ranks permissions via a GUI.",[20,70,71],{},[34,72,73],{},"Also, I need a Skyblock that can be played by at least 50 players at the same time.",[15,75,77],{"id":76},"time-to-think-about-the-architecture","Time to think about the architecture",[20,79,80],{},"Before I start coding, I need to think about the architecture of the plugin. Here are some questions I need to answer (I\ndidn't put all the questions):",[39,82,83,86,89,92],{},[42,84,85],{},"How will a Minecraft server in 1.20.4 handle 50 players at the same time?",[42,87,88],{},"How will I store island data? In a database? In files?",[42,90,91],{},"If I have custom mobs and a lot of features, how will I handle performance?",[42,93,94],{},"How will I handle dungeons?",[15,96,98],{"id":97},"what-architecture-did-i-choose","What architecture did I choose?",[20,100,101,102,105],{},"I decided to use a ",[34,103,104],{},"cross-server architecture",". For example, if I have 50 players on the server, I will have:",[39,107,108,114,120],{},[42,109,110,113],{},[34,111,112],{},"1 server"," for the Skyblock spawn (only one because spawns are not that heavy).",[42,115,116,119],{},[34,117,118],{},"3 servers"," for the islands (because islands are resource-heavy).",[42,121,122,125],{},[34,123,124],{},"2 servers"," for dungeons (since combat may be heavy).",[20,127,128,129,132,133,136,137,140],{},"I also need ",[34,130,131],{},"an inventory sync system",". If a player moves from ",[34,134,135],{},"Island Server 1"," to ",[34,138,139],{},"Island Server 2",", their\ninventory should remain the same. This is a bit complex but doable.",[20,142,143],{},"For dungeons, I haven't made final decisions yet.",[20,145,146,147,150,151,154],{},"For storing island data, I will use a ",[34,148,149],{},"database"," to store worlds and other information. I plan to use an updated\nversion of ",[34,152,153],{},"SlimeWorldManager",", a plugin originally developed by Hypixel for 1.8 but maintained by the community for\nnewer versions.",[20,156,157,158],{},"🔗 ",[159,160,164],"a",{"href":161,"rel":162},"https:\u002F\u002Fwww.spigotmc.org\u002Fresources\u002Fadvanced-slimeworldmanager.87209\u002F",[163],"nofollow","Advanced SlimeWorldManager",[20,166,167,168,171,172,175],{},"For the database, I'll use ",[34,169,170],{},"MySQL"," for everything, along with a ",[34,173,174],{},"Redis"," server for caching. However, given Redis’\nrecent license changes, I might opt for an open-source fork.",[15,177,179],{"id":178},"what-about-performance","What about performance?",[20,181,182],{},"For performance optimization:",[39,184,185,192,199],{},[42,186,187,188,191],{},"I will ",[34,189,190],{},"cache"," islands, players, dungeons, mobs, and items.",[42,193,194,195,198],{},"I will rely on ",[34,196,197],{},"async tasks"," to handle heavy operations.",[42,200,201,202,205,206,210],{},"Every database\u002Fcache query will be ",[34,203,204],{},"async",", using ",[207,208,209],"code",{},"CompletableFuture"," and a callback system to ensure results are\nprocessed on the main thread.",[15,212,214],{"id":213},"the-end","The End",[20,216,217],{},"That's it for this blog post. I've started coding the plugin, and I'll post the next blog update when I have something\nsubstantial to show.",[20,219,220],{},[34,221,222],{},"Stay tuned!",{"title":224,"searchDepth":225,"depth":225,"links":226},"",2,[227,228,229,230,231,232],{"id":17,"depth":225,"text":18},{"id":28,"depth":225,"text":29},{"id":76,"depth":225,"text":77},{"id":97,"depth":225,"text":98},{"id":178,"depth":225,"text":179},{"id":213,"depth":225,"text":214},"This article outlines the development of a Minecraft Skyblock plugin for Spigot servers, starting with project goals and context.","md",{"image":236,"date":237,"tags":238,"author":243},"https:\u002F\u002Fcdn.farmeurimmo.fr\u002Fimg\u002Fblog\u002F04-04-2024-dev-blog-1-build-a-skyblock-plugin.jpeg","2024-04-04T21:00:00.000Z",[239,240,241,242],"Minecraft","Spigot","Plugin Development","Skyblock",{"name":244,"picture":245},"Farmeurimmo","https:\u002F\u002Fcdn.farmeurimmo.fr\u002Fimg\u002Flogo.png",true,"\u002Fblog\u002F04-04-2024-dev-blog-1-build-a-skyblock-plugin",{"title":5,"description":233},"blog\u002F04-04-2024-dev-blog-1-build-a-skyblock-plugin","hvycAB7SJTFJ1d_YozNl3hSOPU09kPvyNQSaWu9RZrA",1794558958059]