{"id":19017402,"url":"https://github.com/polymeta/luckyspongeblock","last_synced_at":"2026-04-27T00:30:19.165Z","repository":{"id":152541587,"uuid":"275860073","full_name":"Polymeta/LuckySpongeBlock","owner":"Polymeta","description":"Build against SpongeAPI 7 to allow Server Owners to distribute different kinds of luckyblocks to their players!","archived":false,"fork":false,"pushed_at":"2021-02-10T14:16:13.000Z","size":89,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-01T23:30:06.147Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Polymeta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-29T15:48:06.000Z","updated_at":"2021-02-10T14:16:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"6eddb45f-2fb2-45f9-a9c7-7999992f42a9","html_url":"https://github.com/Polymeta/LuckySpongeBlock","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polymeta%2FLuckySpongeBlock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polymeta%2FLuckySpongeBlock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polymeta%2FLuckySpongeBlock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polymeta%2FLuckySpongeBlock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Polymeta","download_url":"https://codeload.github.com/Polymeta/LuckySpongeBlock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240061637,"owners_count":19742067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T19:46:54.333Z","updated_at":"2026-04-27T00:30:19.046Z","avatar_url":"https://github.com/Polymeta.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Java CI with Gradle](https://github.com/Polymeta/LuckySpongeBlock/workflows/Java%20CI%20with%20Gradle/badge.svg)\n\n# LuckySpongeBlock\nBuild against SpongeAPI 7 to allow Server Owners to distribute different kinds of luckyblocks to their players!\n\n### What does it do?\nLuckySpongeBlock allows you to create as many custom lucky blocks as you want. It uses itemstacksnapshots as serialization and therefore allows you to make highly customizable blocks. Upon placing the lucky block, it triggers the commands you entered into the config and executes them from console on the player. \nThis plugin also features a buy command, which players can use to buy a luckyblock at a pre-configured price.\n\n### Command/Permission\nThis plugin consists of only one command which is as follows:\n\n* `/luckyspongeblock give [\u003cplayer\u003e] \u003cluckyblockname\u003e [amount]` **Permission:** `luckyspongeblock.give`.\nGives a the chosen luckyblock to the specified player (or yourself if you leave it out). Amount is optional and defaults to 1.\n\n* `/luckyspongeblock buy \u003cluckyblockname\u003e` **Permission:** `luckyspongeblock.buy`.\nAttempts to buy the chosen luckyblock. Will fail if you don't have enough money. Command only works if you have an economy plugin installed.\n\n* `/luckyspongeblock reload` **Permission:** `luckyspongeblock.reload`.\nAttempts to reload the plugin from its configuration.\n\n\n### Configuration\nUpon first starting your server with this plugin it will automatically generate a default configuration for you already, so you can use it straight out of the box! \nThe default configuration also contains plenty of comments to guide you through it, but just for coverage, I will list them here as well:\n\n* luckyblocks: Will contain a list of all your configured luckyblocks which can be bought and given to players ingame.\n\nFor each luckyblock you can define the following:\n\n* commands: The commands to be executed when the blocks get placed. All commands will be run from the console. Use %p to get the player that placed the block.\n\n* cost: The cost of the luckyblock. This is the amount the players have to pay to obtain the specified luckyblock\n\n* luckyblockitem: ItemData. Contains things like display name, lore, itemtype, unsafe data, etc. I put in a default block to show some of the possibilities, but it is easiest just to explore (or to google)!\n\n* name: needs to be **individual** will be used as reference for the command arguments\n\n**NOTE**: If you make changes to existing luckyblocks, while they still exist in the world, the old ones **will break**. It is best to add a new luckyblock to the config instead of changing old ones, to ensure nothing breaks!\n\n\n### TO-DO(?)\nCurrently, I can't think of additional things to add but, if you feel like something is wrong or missing, please open an issue and I'll see what I can do!\n\nThank you for looking at my plugin and reading until the end of this text. :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolymeta%2Fluckyspongeblock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolymeta%2Fluckyspongeblock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolymeta%2Fluckyspongeblock/lists"}