WishingWells
Introduction
WishingWells is a plugin that allows users with the "well.command" permission to create wells, and with those wells, players with the "well.use" command can drop certain items into the well, and may receive a selected list of items. All values are configurable in the config. This was originally crated for Music4lity.
Github page:
https://github.com/ZombieStriker/WishingWells_Bukkit
Permissions:
- well.use Allows a player to use the wells
- well.command Allows players to create wells/ use WishingWells commands.
Commands:
- /well create <name>: Create a new well at the player's location. Wells extends two blocks in each direction from the center of the player.
- /Well delete <name>: Deletes the well
- /Well list: Lists all the wells registered
Features:
Adds the ability to create custom wishing wells. Wishing wells are locations that players can throw per-defined items into, and based on chance values, may return a reward - an itemstack which is also per-defined by the config. All messages, rewards, and items that can be thrown into the well are configurable.
Config:
The config looks like:
#Delay between wishes in seconds
Delay: 60
Accepted:
- <item>
- GOLD_NUGGET
Returned:
# Name is a test variable, so we need to comment them out
# name:
# - <itemnumber> <amount> <meta>
test:
- DIAMOND_SWORD 1
Example:
- DIAMOND_PICKAXE 1 efficiency:1 durability:1 fortune:1 name:&4Gigadrill lore:The_drill_that_&npierces|the_heavens
ReturnedChance:
# Name is a test variable, so we need to comment them out
# name: 0
Example: 50
test: 50
CongratsMessage: '&aYou got a new item back from the well!'
TooBadMessage: '&cOh no! You lost your item in the well. Too bad!'
ItemNotAccepted: '&4That item isnt accepted in the well!'
Delay message: '&cYou cant make another wish for %s seconds!'
auto-update: true
Remember: all percentage amounts must equal up to 100. If it goes over, some items may not have the correct chance values. If it is below, the player might not receive any items even if it registers the player as "winning".
In reply to ZombieStryker:
Anything ist wrong with the nochancefunction in the Config. when you stay under 0,..... you get vor every diamond i drop in a wish granted. when i go on 1,..... i can throw more than 5 stacks of diamonds in it without any donation from the well.
In reply to Forge_User_71160185:
Hey so all my rewards add up to 100%. So I know I got that right. But for some reason the well still returns nothing most of the time and the "TooBadMessage" is displayed. If all my items add up to 100% then how is this happening? And why can't we edit the percent chance that you will receive nothing? The plugin does work pretty well though other than that.
Thanks :)
In reply to Spotsindude:
- EMERALD
Returned:
diamond1:
- DIAMOND 1
diamond2:
- DIAMOND 2
netherstar:
- NETHER_STAR 1
emerald2:
- EMERALD 2
coal:
- COAL 16
ReturnedChance:
diamond1: 50
diamond2: 50
netherstar: 50
emerald2: 50
coal: 50
In reply to Spotsindude:
In reply to ZombieStryker:
Hi Zombie, I'm trying to use in 1.13.1, bad results are shown, the item picked up (with the message related), but good chances items are not given and shown no messages...
It also gives me console errors when server starts...
Thanks for help,
Marco
In reply to Forge_User_25865424:
In reply to ZombieStryker:
Error occurred while enabling WishingWells v1.0.6 (Is it up to date?)
java.lang.NoSuchMethodError: org.bukkit.inventory.ItemStack.<init>(I)V
at me.zombie_striker.wishingwells.Main.itemStackParser(Main.java:271) ~[?:?]
at me.zombie_striker.wishingwells.Main.onEnable(Main.java:81) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[spigot-1.13.1.jar:git-Spigot-2440e18-4228a56]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:339) [spigot-1.13.1.jar:git-Spigot-2440e18-4228a56]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:403) [spigot-1.13.1.jar:git-Spigot-2440e18-4228a56]
at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugin(CraftServer.java:427) [spigot-1.13.1.jar:git-Spigot-2440e18-4228a56]
at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugins(CraftServer.java:341) [spigot-1.13.1.jar:git-Spigot-2440e18-4228a56]
at net.minecraft.server.v1_13_R2.MinecraftServer.l(MinecraftServer.java:582) [spigot-1.13.1.jar:git-Spigot-2440e18-4228a56]
at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:545) [spigot-1.13.1.jar:git-Spigot-2440e18-4228a56]
at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:423) [spigot-1.13.1.jar:git-Spigot-2440e18-4228a56]
at net.minecraft.server.v1_13_R2.DedicatedServer.init(DedicatedServer.java:288) [spigot-1.13.1.jar:git-Spigot-2440e18-4228a56]
at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:698) [spigot-1.13.1.jar:git-Spigot-2440e18-4228a56]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]
Do Have I to install your plugins library? maybe it will works better?
In reply to Forge_User_25865424:
In reply to ZombieStryker:
In reply to ZombieStryker:
In reply to Forge_User_25865424:
In reply to ZombieStryker:
Can u please have a video or something on how it works beacuse idk if i need to change something
In reply to Forge_User_01860930:
For adding a new well, just use the /well create command. There will be a well instance created at that location, an all you need to do is throw a valid item in the at that location to use it. Note that you will have to build the well, as this plugin just manages the function (not the blocks used) for the well.
Hmm could you help me? :D
I don't really understand this plugin, what i want is, when you throw 1 jungle wood in the well, i want 50% chance for a enderpearl to come back up, how do i do that?
Thank you! :)
edit: i know how it works now, but i cant put like 17:3 it doesnt register it if you put : why?
In reply to Forge_User_84121827:
Sorry to be a bother but I don't do a whole lot of modding, can someone show me how it would look to add more items and change their percentages in the config.yml file?