Advanced Lucky Block
Before installing, make sure that you've read all of the instructions down below and that your server version matches that of the plugin.
This plugin simply adds lucky blocks to your server. If you're not familiar with the actual lucky block mod, you may need to watch it on Youtube since it's very popular. Lucky blocks are blocks that, by default, act like sponges and spawn random drops when they are broken. Depending on the luck the block possess, it's more probable that you receive good or bad stuff. Numerous different drops can be anything from lucky armor, potions, lucky swords, chests, monsters, traps, etc.
This plugin is highly customizable which means that you can control which drops may spawn and when. Reading through files that the plugin generates on installations will give you a good idea of how the plugin works.
• How to get the block
You may notice that regular sponges won't do anything as you would expect. You can either get the block through crafting by surrounding a dropper with 8 gold ingots, which is the same recipe as in the original mod; or by simply using /lb give command which takes additional arguments allowing you to specify things like luck value.
Currently, you can have up to 1048 lucky blocks placed at the same time. Placing more will just delete the newly placed block. The reason behind this limitation is that the loading mechanism takes a considerable amount of time if you have too many lucky blocks placed which definitely causes the server to lag on reload. This is however probably going to be changed in a later version when a more effective way of loading is implemented. Suggestions about how this can be achieved are appreciated.
• Important to mention
If you're running an outdated Minecraft server, you can look up for older versions of the plugin and find the one that supports your server. Notice that different versions of the plugin may work on the same server but I'm not responsible for any eventual errors and bugs so it's always recommended to use the right version to avoid unexpected bugs and glitches.
• Features
- Highly customizable.
- Craftable.
- Option to make lucky blocks spawn naturally in the world.
- You can create and add your custom lucky blocks (a tutorial about this might be implemented later).
- All data is stored inside files, so loading the server won't cause any data loss.
- Play sounds, spawn particles when lucky blocks are placed/destroyed.
- Lucky blocks with better luck yield better drops and vice versa.
- You can add as many drops as you wish (until your server runs out of memory).
- Silk touch enchantment support.
- When the block is broken with a tool that has fortune enchantment, a dropped luck block with higher luck will spawn (consumes too much durability of the held item).
- Can be placed by dispensers.
- Can be pushed by pistons.
- Slime blocks next to pistons can push lucky blocks in the air (WIP).
- Developers can add custom drops to the plugin.
- Much more!
• Setup
- Download and install WorldEdit (recommended).
- Download Advanced Lucky Block plugin.
- Put the downloaded file in plugins folder.
- Enjoy!
• Commands
• Permissions
• Lucky Crafting Table:
Used to add or subtract luck from lucky blocks. The traditional method was to surround the lucky block with minerals and valuable items in the crafting table, but this method was replaced with another one involving an own crafting window.
Crafting recipe:
Gui:
Addons
- You can make your own lucky blocks by editing files inside Types folder.
Examples:
- Share your custom ones.
Donation
If you want to support this project and help updating it you can donate by simply clicking the below button:
• Servers
MCFeelBoy.minecraft360.de
- You can leave your server IP in the comments if you are using this plugin on your server and I'll add it to this list.
• Enchantments
- Lightning Enchantment: Strikes a lightning bolt when right-click.
• Files
• Editing drops
- Drops are stored in drops folder.
• Custom Drops
- Developers can make and add custom drops to lucky blocks.
- tutorial Here
• Todo
- Suggest ideas!
• Screenshots
- Share your screenshots.
- Credits to https://serverminer.com/
Permissions dont work..
@SlimeDog
Working on 1.5 i've added lots of options and commands and fixed all related bugs.
I would really like a command "/lb reload" command, so I can change the configuration on the fly, without having to restart the server. Is this possible?
Bug with drops: If LuckyBlock is something other than sponge (say, end[er]_stone), the lucky drops are still sponge, not the defined block.
@SlimeDog
Yes, it'st's not worthy to rename it 1.5 because I have been working on it since last week but it's not finished yet.
@SlimeDog
Yes it's called ENDER_STONE in the code I tried Material.END_STONE but it's does not exist. Maybe I will support other block names. Is there a bug with drops?
Thanks for the quick fix for the enchantments. No more startup errors on Spigot 1.8.4.
Small thing, but updates should have different version numbers than what they replace. In this case, a minor version increment to 1.4.1, if you feel that the small change is not worthy of a major version increment to 1.5.
In game, and both http://minecraft.gamepedia.com/Ender_stone and http://minecraft.gamepedia.com/End_stone, the block name is displayed as end_stone. Curious where do you find it as ender_stone. Given the redirection on the MC site, I suspect that is the former name. But I'm new to all this, so you probably have better information. Both versions are acceptable to the /give command. In any event, I was able to work around it with the BlockID, and have since changed back to sponge, until the LB drops are fixed.
@SlimeDog
Fixed Enchantment bug reinstall 1.4. it's ENDER_STONE not END_STONE :)
It would be nice to modify to "give" message. In my case, I give 64 lucky blocks at a time via a command block. (Optionally, the message should not be generated at all, I suppose.) At the very least, since the number given is known to the plugin (from the /lb luckyblock ... command), the message should use that information to craft the message. If only one:
%source% gave you a lucky block!
If more than one:
%source% gave you %N% lucky blocks!
I tried to change the lucky block to END_STONE in config.yml
LuckyBlock:
Block: END_STONE
UseBlockID: false
BlockID: 121
(Note that I left UserBlockID:false) Server start generated warnings for null pointer, and plugin didn't work. If I explicitly specify the BlockID:121 it works. Error messages follow:
[23:15:44] [Server thread/WARN]: java.lang.NullPointerException
[23:15:44] [Server thread/WARN]: at com.LuckyBlock.Engine.LuckyBlock.loadRecipes(LuckyBlock.java:554)
[23:15:44] [Server thread/WARN]: at com.LuckyBlock.Engine.LuckyBlock.onEnable(LuckyBlock.java:462)
[23:15:44] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321)
[23:15:44] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335)
[23:15:44] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405)
[23:15:44] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_8_R2.CraftServer.loadPlugin(CraftServer.java:356)
[23:15:44] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_8_R2.CraftServer.enablePlugins(CraftServer.java:316)
[23:15:44] [Server thread/WARN]: at net.minecraft.server.v1_8_R2.MinecraftServer.r(MinecraftServer.java:416)
[23:15:44] [Server thread/WARN]: at net.minecraft.server.v1_8_R2.MinecraftServer.k(MinecraftServer.java:382)
[23:15:44] [Server thread/WARN]: at net.minecraft.server.v1_8_R2.MinecraftServer.a(MinecraftServer.java:337)
[23:15:44] [Server thread/WARN]: at net.minecraft.server.v1_8_R2.DedicatedServer.init(DedicatedServer.java:257)
[23:15:44] [Server thread/WARN]: at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:522)
[23:15:44] [Server thread/WARN]: at java.lang.Thread.run(Thread.java:745)
Excellent plugin!
I resolved the "permissions" issue. It was actually spawn area protection.
I created an area with eight lucky blocks, for show. When I stop and restart the server, I get:
[Server thread/INFO]: [LuckyBlock] Error: Loading LuckyBlocks Error! null
and LuckyBlock plugin fails to load. If I delete ./plugins/LuckyBlock/LuckyBlocks.yml and then restart, the plugin loads, but (obviously) I've lost the lucky blocks I placed. This is not optimal. Can you tell what is the problem?
Environment is Spigot 1.8.4 latest version, with WE/WG/PEX/MV/Essentials and other assorted plugins. The following error is generated on start:
[Server thread/ERROR]: Error occurred while enabling LuckyBlock v1.4 (Is it up to date?)
java.lang.IllegalStateException No longer accepting new enchantments (can only be done by the server implementation)
at org.bukkit.enchantments.Enchantment.registerEnchantment(Enchantment.java:243) ~[spigot-1.8.3.jar-2015-05-08:git-Spigot-870264a-0a645a2]
at com.LuckyBlock.Engine.LuckyBlock.addEnchants(LuckyBlock.java:969) ~[?:?]
at com.LuckyBlock.Engine.LuckyBlock.onEnable(LuckyBlock.java:484) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot-1.8.3.jar-2015-05-08:git-Spigot-870264a-0a645a2]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335) [spigot-1.8.3.jar-2015-05-08:git-Spigot-870264a-0a645a2]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-1.8.3.jar-2015-05-08:git-Spigot-870264a-0a645a2]
at org.bukkit.craftbukkit.v1_8_R2.CraftServer.loadPlugin(CraftServer.java:356) [spigot-1.8.3.jar-2015-05-08:git-Spigot-870264a-0a645a2]
at org.bukkit.craftbukkit.v1_8_R2.CraftServer.enablePlugins(CraftServer.java:316) [spigot-1.8.3.jar-2015-05-08:git-Spigot-870264a-0a645a2]
at net.minecraft.server.v1_8_R2.MinecraftServer.r(MinecraftServer.java:416) [spigot-1.8.3.jar-2015-05-08:git-Spigot-870264a-0a645a2]
at net.minecraft.server.v1_8_R2.MinecraftServer.k(MinecraftServer.java:382) [spigot-1.8.3.jar-2015-05-08:git-Spigot-870264a-0a645a2]
at net.minecraft.server.v1_8_R2.MinecraftServer.a(MinecraftServer.java:337) [spigot-1.8.3.jar-2015-05-08:git-Spigot-870264a-0a645a2]
at net.minecraft.server.v1_8_R2.DedicatedServer.init(DedicatedServer.java:257) [spigot-1.8.3.jar-2015-05-08:git-Spigot-870264a-0a645a2]
at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:522) [spigot-1.8.3.jar-2015-05-08:git-Spigot-870264a-0a645a2]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
The plugin still loads, but I imagine that some of the enchantments do not work. Can this be fixed or worked around?
@MCGamer199
oh my :D THANK U FOR THE AMAZING PLUGIN BRO!
@SlimeDog
From crafting or from commands? I mean when a vip player crafts a lucky block he will get luck=50 or what? Lucky block tool and advanced lucky block tool are Name Tags. I will add /llb reload in the next version. Do you want me to change # symbol or what?
@kachekos
You can change it from the config.
Heyo! TY for the plugin :D But can u add ability to change the Lucky Block? From sponge.. to dirt for example ;D
I would suggest that you add the command /lb luckyblock (ign) then the percentage that you want like 50% for Players, 100% for VIPs. And if that doesn't work I suggest not using eps and use group manager I use that on my server if u want to see it the ip is 23.235.226.246 I use group manager and I could help u set it up if you need
By "per player group" I mean permission groups. For example, set luck = 50% for Players, 100% for VIPs. I use PEX for permissions management.
As for tools, I meant to ask: What item is the LuckyBlock tool? What item is the Advanced LuckyBlock tool?
Please consider a reload command: /lb reload. Nearly every plugin supports this feature, so that one doesn't have to restart the server to change configuration.
Please fix the errors generated when loading LuckyBlock with Spigot 1.8.4/WE 6.0/WG 6.0/PEX/etc. I can supply logs if that is helpful.
Please consider recasting the configuration as YAML, rather than #-separated fields.
@SlimeDog
How per player group? What do you mean by that?
@SlimeDog
Lucky block tool tells you the luck of the right clicked lucky block. The advanced lucky block tool tells you what would you get if you broke the lucky block. The luckyblock2 and 3 are still an upcoming feature. Lucky block1.yml controls the luck from 0 to19 .Luckyblock2.yml controls the luck from 20 to 50 etc but luckyblock2.yml and 3 are not finished yet.
A few more:
What is the LuckyBlock tool?
What is the advanced LuckyBlock tool? What does it do?
I would like to set chances and luck in the configuration. I would like to set it per player group, if possible. Not essential, but nice.
The folder inside the root LuckyBlock folder is also LuckyBlock, not luckyblock.