Shire Sheep
ShireSheep - Multicolour Sheep! (Supports 1.15.1)
When sheep spawn, this plugin will dye them a random colour. You can also enable an option which lets you set the probabilities for different colours.
How do I use this plugin?
Simply drop it into your plugins folder - no configuration is required, but you can configure the probabilities of the colours if you want to.
Why would I want this plugin?
To brighten up your server!
What Minecraft version has this been made for?
The most recent version has been built for Minecraft 1.15.1. If you're using an older version of Minecraft, then check the 'Files' page for older versions of this plugin.
Oh no! Something is wrong!
Copy and paste your error into this topic, make sure you wrap it in code tags.
But there are no errors!
Are you sure it's installed? Try: checking your plugins folder and/or typing /pl
Servers currently using ShireSheep
The Shire - (Address: play.shirecraft.us)
Post in the comments below if your server is using ShireSheep and you could get added to this list.
A massive THANK-YOU goes to everyone who uses ShireSheep, over *8000* downloads and counting! :D
Click here for help with configuration
Feedback? Suggestions? Please post in the comments section below and I'll respond as soon as I can.
Thanks man this is the only plugin that worked
New version for 1.3.2 uploaded and currently awaiting approval.
@Hangar
I've got a semi-stable version almost ready, will release it some time in the next 24 hours.
You'll get a 'new update' notification in your server console when the plugin loads once I release it.
Edit: Released it as a beta version... now I'm going to bed. :3 Ciao!
@Hangar
Bleereruuurrghhhhh. *cries*
I'll look into that ASAP.
Edit: Unable to replicate with my dev build v2.2.1 - Tried spawning lots of sheep, no errors.
Spent ages hunting for 'naturally' spawned sheep, found a lovely group of red and white sheep (my prob. config), checked console, no errors.
I'll upload my dev version once I've fixed a few irritating bugs in it. [...edit #2! ...and once I've finished rewriting my command handler [edit #3 - which is almost done]]
Thanks
New NPE on build 2309 with SS 2.1.5:
2012-08-06 16:31:41 [SEVERE] Could not pass event CreatureSpawnEvent to ShireSheep org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:324) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:226) at net.minecraft.server.World.addEntity(World.java:837) at net.minecraft.server.SpawnerCreature.spawnEntities(SpawnerCreature.java:175) at net.minecraft.server.WorldServer.doTick(WorldServer.java:154) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:560) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.add(Unknown Source) at uk.co.andrewpover.ShireSheep.SheepListener.onCreatureSpawn(SheepListener.java:49) at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:322) ... 12 more
It happened right as I was launching my new world, so we are now colorless ><
@TnTBass
Thanks for the suggestion, I've implemented it on my dev version and it will be included in the next update.
Very cool plugin.
However, breeding sheep can become ridiculous with this plugin. Any chance there can be a option to ignore sheep being bred? :P
@andrewvpo
Ok that seems to work better with integers. That's why I was asking a while back what the maximum/minimum values were, so I could configure it right. You may want to scan for non-integers if that's what was causing the NPEs.
Thanks for the tip on VS. I usually just use it to fix land or occasionally create something and I always forget how many features they seem to have packed into that sucker :p
EDIT: Essentials /spawnmob works fine too.
@Hangar I advise that you use integers for the probability config.
Note that you can do it with commands: e.g. /ssheep colour yellow 5
All the integers for each colour are added up, this is called the combined total.
Then the probabilities are worked out as the number given to a colour over the combined total.
So if your probability for yellow was '4' and the combined total of all the numbers was 35, there would be a 4/35 (11.4%) chance of a spawned sheep being dyed yellow.
I used voxelsniper to spawn lots of sheep (in lots of 25)
Voxel commands:
/b en Sheep
/b 25
I seem to have a new one with 2.1.5 on CB 2296. This happened I believe right when I teleported to a fresh (ungenerated) part of a brand new world:
19:39:49 [SEVERE] java.lang.NullPointerException 19:39:49 [SEVERE] at uk.co.andrewpover.ShireSheep.SheepListener$1.run(SheepListener.java:126) 19:39:49 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34) 19:39:49 [SEVERE] at java.lang.Thread.run(Unknown Source)
Also, here's my config: http://pastebin.com/cnPM5tUb
I think that light blue sheep should be almost as common as the white/grey/silver but I don't think I'm seeing any now. I could be misunderstanding probabilities though, or just being unlucky. When you add that command I'll spawn a whole mess (*grin*) and that will help me know for sure I think.
EDIT: I'm going to change my numbers to non-decimals and see if that helps.
@Hangar
I'll try to include that in my next major update. *prepares to immerse self in javadocs*
I see what you mean, I get a few 'kiddies' (but also lots of nice people!!) on the server I administrate who account for the majority of my stress. :3
I sometimes find it hard to tell if they're either very good trolls or genuinely so.... err... childish.
@andrewvpo
I was thinking it might be nice to be able to type "/ssheep spawn" to get a small, normal-sized flock to spawn, like what you would encounter in the wild, using whatever probabilities are set. Maybe you could optionally add a quantity as a third parameter. That way you would do some focused testing. I'm not sure how you did the mass of sheep in your picture.
If any other ideas occur to me I'll throw them at ya.
My server is very small and since I'm farily picky about who I let in (*cough*adults*cough*), I tend to go looking for people in specific ways when I'm ready to add a few more people. Thanks for the offer though. I do appreciate it :)
@Hangar
Oops! I missed that duplicate, I've fixed it on my local copy and it will be uploaded within the next day or so.
I'm not sure about PluginReloader, I never knew it existed. It hasn't been updated for a few months, and possibly my plugin being built against 1.3 is causing issues. Not sure o.O
Do you have any suggestions for features to add to enhance your Minecraft Sheep experience? I will be adding functionality so you can type "/ssheep colour <colour>" to see the current probability value.
Would you like me to add your server to the list in the plugin description of servers that are currently using the plugin?
Thanks
@andrewvpo
Haha nice pic!
I dunno if it's my decompiler but is grey supposed to be listed twice here? It looks like everywhere else you have a silver instead.
Finally, when I use PluginReloader ( dev.bukkit.org/server-mods/pluginreloader/ ) to unload this plugin, it isn't being released like most other plugins. Usually, you can then replace/rename/move a .jar file and put an update in place, then reload that plugin all while the server is running, but this one seems to be keeping it locked. I'm not sure at all why or if it can easily be fixed but I figured I'd mention it.
Thanks for the update :)
@Hangar
Thanks - I thought I'd fixed that problem o.O It won't cause you any issues, the plugin will function as usual. I'll try and fix it now :)
Grey should not be in there twice o.O What makes you think it is?
0 = None will be dyed this colour
Numbers for probabilities don't have a maximum value (well they will eventually, but it'll be a very big number), sheep with the largest numbers in the probability configuration will spawn more frequently.
Edit: Uploaded an update which fixes the array bug, awaiting approval. Did a lot of colourful testing and couldn't reproduce the error.
HALP! My sheep are out of bounds! :p
I had probabilities set to false when this was happening. Trying it now with it enabled. It also looks like you might have 'grey' listed twice (instead of silver and grey?) in the ShireSheep class. Not sure if that's a problem or on purpose though.
Also, a question on probabilities... what is the minimum/maximum number you can specify for each color, and does 0 mean literally 'none of those will spawn'?
CB 2281 / SS 2.1.4
@damnnicholas
Awesome! :) Thanks
Also incase you didn't spot it, there are commands to see the plugin version ( /ssheep version ), enable/disable the probability feature ( /ssheep probabilities true/false ) and change probabilities for each colour ( /ssheep colour yellow 10 ) [yellow=colour, 10=probability integer].
Hey, i made a little video showcase on your plugin :) Hope you'll like it!
Link to video: http://www.youtube.com/watch?v=_H-qGgsabAA&feature=youtu.be
@Hangar
There is an awesome place at /warp Pangea - it's best to view that area at night time, with your brightness turned up to maximum in settings.
Go to Pangea Valley using the warp I mentioned above, walk out of the tree, move away from it a bit then look back at it and up.
Then continue moving away from the tree, you'll go down a hill towards a river which goes around the entire valley. You should see a bridge over the river. Next to the bridge, on the same side as the tree, is a 'hobbit hole' type of house.
I'll be monitoring the server for the rest of the evening, so if you come on make sure to ask if Andrew is there (even if it doesn't say I'm online, I may still be watching *shiftyeyes*) and I'll give you a tour and show you lots of awesome creations.
Thanks (:
@andrewvpo
Hey, I logged onto your server to check it out. It was overwhelmingly epic! I was wondering if there's a hobbit village anywhere? You know, just something cute with little doors and lots of greenery. If there is, get me the coords and I'll come peek :) Trying to come up with some ideas for a village and I kept thinking of Frodo's home area lol.