Advance Blocks version: 1.8.8 i plugin that use the config file when i break the listed blocks it drops random item etc.. with custom sound i want to use different blocks not only one "its just a simple config you can fix it and make it better" Config file Code: # FORMAT 'Item:Durability : Amount : name:<name> : lore:<lore> : enchant:<enchantment>:level' NORMAL: PREFIX: "LUCKY | " DIAMOND_BLOCK: chance: 20 number-of-drops: 2 #number of luck that will be drops sounds: NBA: "drop.nbs" #IF I USE THIS PLAY THE SOUNDS FROM NoteBlockAPI PLUGIN (sounds located in plugin folder) ORIGINAL: "ORB_PICKUP" #IF I USE THIS MINECRAFT SOUND EFFECT DROPS: luck: item: - 'IRON_SWORD : 1 : name:&6LUCKY Sword : enchant:DAMAGE_ALL:1' luck2: chance: 5 entity: - CREEPER, Msg: "<Prefix>OPS" luck2: chance: 2 effects: #TYPE,(seconds)DURATION,(int)AMPLIFIER - ABSORPTION,10,1 - BLINDNESS,5,1 Msg: "<Prefix> you got ABSORPTION and BLINDNESS effect." BOOST: #use these luck only if the player use " /luckboost " command PREFIX: "LUCKY | " DIAMOND_BLOCK: chance: 20 number-of-drops: 2 #number of luck that will be drops sounds: NBA: "drop.nbs" #IF I USE THIS PLAY THE SOUNDS FROM NoteBlockAPI PLUGIN (sounds located in plugin folder) ORIGINAL: "ORB_PICKUP" #IF I USE THIS MINECRAFT SOUND EFFECT DROPS: luck: item: - 'IRON_SWORD : 1 : name:&6LUCKY Sword :lore:lucky sword : enchant:DAMAGE_ALL:3' luck2: chance: 2 effects: #TYPE,(seconds)DURATION,(int)AMPLIFIER - ABSORPTION,40,1 Msg: "<Prefix> you got ABSORPTION"
Sure, I can do that for you. Do you need support for MmoItems or ItemsAdder? Are the drops one per block, or can you have multiple per block? Can you have a random number of items dropped? If you want to try this
- what do you mean by "MmoItems or ItemsAdder?" - as per the config i sent it should be 1 luck multiple per block. - yes a random change for each luck not item because the amount of item will be configured in the config file [17:40:41 ERROR]: Error occurred while enabling AdvanceBlock v1.0 (Is it up to date?) java.lang.ArrayIndexOutOfBoundsException: 1 at it.valkia.advanceblock.configs.Util.loadLanguage(Util.java:41) ~[?:?] at it.valkia.advanceblock.configs.ConfigManager.setup(ConfigManager.java:41) ~[?:?] at it.valkia.advanceblock.configs.ConfigManager.<init>(ConfigManager.java:26) ~[?:?] at it.valkia.advanceblock.AdvanceBlock.onEnable(AdvanceBlock.java:32) ~[?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-21fe707-741a1bd] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [server.jar:git-Spigot-21fe707-741a1bd] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-21fe707-741a1bd] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [server.jar:git-Spigot-21fe707-741a1bd] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [server.jar:git-Spigot-21fe707-741a1bd] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:741) [server.jar:git-Spigot-21fe707-741a1bd] at org.bukkit.Bukkit.reload(Bukkit.java:535) [server.jar:git-Spigot-21fe707-741a1bd] at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [server.jar:git-Spigot-21fe707-741a1bd] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [server.jar:git-Spigot-21fe707-741a1bd] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [server.jar:git-Spigot-21fe707-741a1bd] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627) [server.jar:git-Spigot-21fe707-741a1bd] at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412) [server.jar:git-Spigot-21fe707-741a1bd] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375) [server.jar:git-Spigot-21fe707-741a1bd] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-21fe707-741a1bd] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-21fe707-741a1bd] at java.lang.Thread.run(Thread.java:750) [?:1.8.0_402]
its not how i want it i will make it easier so if the player breaks these type of blocks(DIAMOND_ORE , GOLD_ORE , IRON_ORE) it drops random item i want simillar to this config Code: PREFIX: "LUCKY| " # FORMAT 'Item:Durability : Amount : name:<name> : lore:<lore> : enchant:<enchantment>:level' DIAMOND_ORE: LUCK1: CHANCE: 20 #this out of 100 chance MSG: "<PREFIX>&cYOU RECEIVED &6A LUCKY SWORD" ITEMS: - DIAMOND_SWORD : 1 : name:&6LUCKY SWORD - DIAMOND : 20 LUCK2: CHANCE: 50 #this out of 100 chance ITEMS: - DIAMOND_BOOTS : 1 GOLD_ORE: LUCK1: CHANCE: 60 #this out of 100 chance MSG: "<PREFIX>&cRUUUUUN!!!" ITEMS: - CREEPER #SPAWN CREEPER LUCK2: CHANCE: 30 #this out of 100 chance ITEMS: - GOLDEN_APPLE : 2 - WOOD : 16 LUCK3: CHANCE: 20 #this out of 100 chance ITEMS: - GOLDEN_HELMET : 1 - INSTANT_HEAL: 1 : splash:true - INSTANT_DAMAGE: 1 : splash:true now if the ore equal to LAPIS_ORE gives effects Code: TYPE : (seconds)DURATION : (int)AMPLIFIER LAPIS_ORE: LUCK1: CHANCE: 20 #this out of 100 chance MSG: "<PREFIX>YOU RECEIVED HEAL EFFECT" EFFECT: - HEAL : 5 : 1
yes and i want to make a custom name for the item and if you can when the drop equal to flower_pot spawn creeper on the same block location and dont drop "flower_pot" and send custom message to the player who broke the block (i want it to be in config)