New food (simply)

Discussion in 'Archived: Plugin Requests' started by FlOppy, Jul 6, 2013.

  1. Offline

    FlOppy

    Ok Hello everyone.

    This time i would like a simple plugin really easy to make and easy to config...

    A plugin which add only 2 new food items... The Horse meat, and the Sheep meat.

    The horse meat would look like the cow meat, just the name would change, and the sheep meat would look like the pork meat.

    So that would add two new food which need to be in the game, don't know why mojang does not do that. And add as well the drop from sheep and horse of this meat ideas: 1-2 for sheep, and 2-3 for horses.

    Maybe configurable numbers but not necessary if it is well done first.

    Someone wants to take over this plugin need any more information just ask me.

    Have a good day.
     
  2. Offline

    rguz10

    Try out the plugin OtherDrops.
     
  3. Offline

    FlOppy

    ??? Why that ? do you know what i mean ?
     
  4. Offline

    Chaositic

    If I understand you correctly, you want a plugin that drops those items already named but also gives them a different hunger bar recovery compared to the rest of the items in a config file. Does that sound about right?
     
  5. Offline

    FlOppy

    Yeah you are right, maybe not for the food bar recovery, maybe the same amount of food seems correct.

    But yeah drop horse meat for horses when killed (2-3 piece of meat) / and sheep meat when killed (1-2 piece of meat), you can burn those new meat and the texture i repeat for horses look like cow meat and for sheeps looks like pork meat.

    Thank you.
     
  6. Offline

    slayr288

    FlOppy
    Yes... OtherDrops can do exactly this.
     
  7. Offline

    FlOppy

    yeah but i don't want...

    God.. why kids i ask for a simple plugin and they gave me a whole big plugin, do you think i want to have lags on my server only for two new food items ?

    And i have already check this plugin i repeat, it won't do what i want. So please just read what i wrote above.

    Simple plugin which is easy and free from lags...
     
  8. Offline

    Zarius

    FlOppy

    Yes, a stand-alone plugin will be more efficient but not as much as you might think. OtherDrops only listens to events that it is configured for, eg. if you only add mob drops then that is the only event it listens to. Keep in mind that any plugin of this nature needs to listen to mobdeath events.

    OtherDrops also offers a number of custom conditions and/or actions - again though, if these are not configured then the code for them is not even looked at.

    Also, it will meet the original request, here's an example:

    Code:
      SHEEP:
      - drop: RAW_PORK~Sheep Meat
        quantity: 1-2
     
      HORSE:
      - drop: RAWBEEF~Horse Meat
        quantity: 2-3
    
    Not sure that it could be much easier (without being a single-purpose plugin) & I haven't had any complaints of lag.

    It doesn't deal with cooking though (yet), so a more specialised plugin will likely suit your needs better.
     
  9. Offline

    Me4502


    Most large plugins are coded in such a way that only the resources for what is enabled or used are needed. For example, Essentials, CraftBook, CommandBook all use this system. Meaning, only stuff you enable in the config are loaded and use resources. In this sense, you will most likely not get a difference in lag by using a large plugin with everything disabled, vs a small plugin that just does this.

    And if you use multiple small plugins to do stuff 1 large plugin can do, it is actually much more efficient to just use the larger plugin.
     
  10. Offline

    FlOppy

    Thank you both for your answers, but i don't need otherdrop for other stuff, i don't need it at all so i don'tse the problem to have one more plugin in my server for that, but come on don't you want those two meats too ?

    I don't know why those animals can not feed the people like it does in the real life.

    So if someone is ready to help me for that.
     
  11. Offline

    Me4502


    With CraftBook, using CustomDrops and CustomCrafting you could do this completely, with cooking support and all.. But I am assuming you wish to use a plugin that ONLY does this?

    Edit: Yes, and before you ask.. You can disable everything else in the plugin but those features to make it extremely lightweight. Both CustomDrops and CustomCrafting are specially coded to be incredibly lightweight.
     
  12. Offline

    FlOppy

    So i have to download 3 plugins, completly configure them to avoid any other feature, for a simple idea ?

    Wow people here got to be smarter and even if i disable all you say it won't be a light as one plugin which does only what i asked. But please i won't do what you say so stop with your commercial post i won't download those plugins if you can't make my plugin it's fine just say it don't bother me with the same post....
     
  13. Offline

    Me4502

    3 plugins? What? And this isn't a 'commercial post', I was just suggesting the plugin as it is capable of doing what you want, to save someone the trouble of creating a plugin that practically already exists.
     
  14. Offline

    FlOppy

    Practycally that's the word man, and this is one of your plugin that you recommend, but this is ok you know just writing three post to say the same thing download my plugin is ridiculous to me.

    So just write something who can make this thread move on please or remain quiet. You can post one message to tell me to download your plugin or other plugin which can work for what i ask, but typing 3 time the same things ain't acceptable sorry.

    Thank you anyway for your support.
     
  15. Offline

    Me4502

    And for the record, only my second post recommended my plugin.. So that's only 1 post. The first post was backing up OtherDrops about being a large plugin, and the third was trying to comprehend your reply.
     
  16. Offline

    FlOppy

    Ok i see what kind of guy you are... Always want the last word so that would be my last reply for this plugin, you know, when i propose a plugin it ain't for me only it is for the communauty i share my ideas to the world and if someone wants to acomplish it into Minecraft as a plugin fine...

    But if not it won't kill me personally maybe some would be disapointed i am not. No need to continue in that way.

    I bet people here got what they want an idea would see if one day, we would see sheep or horse meat in MP.

    Good night.
     
  17. Not trying to be rude or anything, but you are making a big deal out of nothing. You asked for a plugin to be developed that does what you ask. They give you a plugin that already exists, saving you the trouble of waiting and someone else the trouble of coding, that already does what you need. I honestly don't see the issue here. You say that the plugin would cause lag, but they already explained that, unless you enable EVERY feature, it would have the same effect as another plugin that just does what you ask. You seem to be very ungrateful. They are trying to help you, and you can do nothing but give a reason that they already explained a thousand times is false. Not trying to start a flame war or anything, sorry if I do.
     
  18. Offline

    Zarius

    TehMinecraftPoke - thanks for the post however in FlOppy's defense his own preference is for a plugin which does just this and only this & there's nothing wrong with this preference. However FlOppy - please note these are called "forums" for a reason, that being a place for discussion.

    Sometimes (and this comes from experience) people sometimes disregard suggested plugins but when it's demonstrated they decide they are happy to use said plugins. Sometimes they don't. Either way please don't look down on freely given advice - consider them "free bumps" that gather you more views than the thread would otherwise get :)
     
  19. Offline

    bluemadness107

    Not a single plugin on my server (I have around 20) causes any more then a tiny bit of lag, and i doubt a single plugin on your server would make a difference.

    That's just my advice.
     
    timtower likes this.
  20. Offline

    Zarius

    bluemadness107 - oh, you'd be surprised... entirely possible for a single plugin to cause a lot of lag (and it doesn't have to be a big or complicated one - even a tiny plugin could cause potentially major issues). However I personally ran 80 plugins on my server and had only an occasional problem.

    In the interests of keeping the thread on-topic however, and because I haven't coded a teensy plugin in a while, I decided to code the file as FlOppy wanted - just the new horse & sheep meat, cookable, and nothing else :) Here's the download: <Edit by Moderator: Redacted mediafire url>

    Source code is included. Got it to 66 lines (without comments) - I couldn't get it smaller without cheating :)
     
    Last edited by a moderator: Nov 6, 2016
  21. Offline

    FlOppy

    Ok i said i would not reply but i wanted to thank you, finally someone who knows how to read lines and kind enough to help. I will test it now, and tell you how it goes, and you are definetly right about tiny plugin causes major lags, it ain't because of the plugin but the guy who code it because there is not doubt that the quality of the plugin comes with the quality of the guy who codes it.

    Ok message dited from now i have tested your plugin, so it is really what i asked and you have done it very well, but when i closed the game i look at the console, and there is many errors which appear when we burn the horse or sheep meat it does work in game but still errors to be honest i don't like errors, and there is one little thing more estitecal (why is it wrote in italic). But after all of that your plugin is really great simple from what isaw does not cause lags i had majors lags but i bet this is because of bukkit dev build so i will need to see on a proper bukkit version if you could upload it for everybody on bukkit as an official plugin and maybe keep up to date, so we can all work together on taht plugin which is cool as iwanted thanks again.

    Here is the error:

    19:52:13 [SEVERE] Could not pass event FurnaceSmeltEvent to NewFood v1.0.18
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:427)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
    ava:477)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:462)
    at net.minecraft.server.v1_6_R1.TileEntityFurnace.burn(TileEntityFurnace
    .java:261)
    at net.minecraft.server.v1_6_R1.TileEntityFurnace.h(TileEntityFurnace.ja
    va:177)
    at net.minecraft.server.v1_6_R1.World.tickEntities(World.java:1263)
    at net.minecraft.server.v1_6_R1.WorldServer.tickEntities(WorldServer.jav
    a:480)
    at net.minecraft.server.v1_6_R1.MinecraftServer.t(MinecraftServer.java:5
    72)
    at net.minecraft.server.v1_6_R1.DedicatedServer.t(DedicatedServer.java:2
    26)
    at net.minecraft.server.v1_6_R1.MinecraftServer.s(MinecraftServer.java:4
    86)
    at net.minecraft.server.v1_6_R1.MinecraftServer.run(MinecraftServer.java
    :419)
    at net.minecraft.server.v1_6_R1.ThreadServerApplication.run(SourceFile:5
    82)
    Caused by: java.lang.NullPointerException
    at com.gmail.zariust.newfood.NewFood.onFurnaceSmelt(NewFood.java:67)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.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.ja
    va:425)
    ... 12 more
    19:52:23 [SEVERE] Could not pass event FurnaceSmeltEvent to NewFood v1.0.18
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:427)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
    ava:477)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:462)
    at net.minecraft.server.v1_6_R1.TileEntityFurnace.burn(TileEntityFurnace
    .java:261)
    at net.minecraft.server.v1_6_R1.TileEntityFurnace.h(TileEntityFurnace.ja
    va:177)
    at net.minecraft.server.v1_6_R1.World.tickEntities(World.java:1263)
    at net.minecraft.server.v1_6_R1.WorldServer.tickEntities(WorldServer.jav
    a:480)
    at net.minecraft.server.v1_6_R1.MinecraftServer.t(MinecraftServer.java:5
    72)
    at net.minecraft.server.v1_6_R1.DedicatedServer.t(DedicatedServer.java:2
    26)
    at net.minecraft.server.v1_6_R1.MinecraftServer.s(MinecraftServer.java:4
    86)
    at net.minecraft.server.v1_6_R1.MinecraftServer.run(MinecraftServer.java
    :419)
    at net.minecraft.server.v1_6_R1.ThreadServerApplication.run(SourceFile:5
    82)
    Caused by: java.lang.NullPointerException
    at com.gmail.zariust.newfood.NewFood.onFurnaceSmelt(NewFood.java:67)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.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.ja
    va:425)
    ... 12 more

    Thank you again :)
     
  22. Offline

    bluemadness107

    I personally have never tried otherdrops, so i'm not sure if it's laggy or not.
     
  23. Offline

    Me4502

    I would say the lag is coming from the constant errors being generated, so once those errors are fixed the lag shouldn't be there.

    From what I've heard it's a very lightweight plugin.
     
  24. Offline

    Zarius

    FlOppy - oops, that comes from me coding at 2am and not testing it with burning something that doesn't have a custom name :) Here's a fixed version of the plugin (hopefully, haven't got time to test it at the moment): <Edit by Moderator: Redacted mediafire url>

    Please note I've renamed it to NewMeat.jar so please ensure you delete NewFood.jar otherwise you will get twice the amount of drops.

    There's a project page here: http://dev.bukkit.org/bukkit-plugins/newmeat/
     
    Last edited by a moderator: Nov 6, 2016
  25. Offline

    FlOppy

    Awesome it work pretty fine now :) thank you, oh and you are the author of the plugin "otherdrops" lol didn't know that i've just noticed.

    Sorry but when i was talking about Italic thing i was refering to the meat name. Like horse meat instead of horse meat.

    And i was type a new idea just to see what you think or other think about...

    And i have another idea but it is just a idea lol no worries no need to work on that. I would like to see something like growing animals, i explain myself we already see them babies and going adults, but this is it, no more evolution for them. What i would like is only when they are adults they have like a bar system like us with our levels which means their feed bar (age) more they are feed more the bar goes up and if you kill him when the bar is really up it gives you more meat.

    Imagine you feed a cow with one wheat so the cow is getting one more level let's say level 2, she will give if you kill her 2 meat. instead of one by default.

    Why this plugin would be nice is because it will make a new mechanic (realistic as well) for the farmers and allow to take some risk if you kill your cow too soon your foor production won't be good enough, and if you wait you will need more cows to have a minimum time production.
     
  26. FlOppy

    Well there ya go :p. You got the creator of OtherDrops (the plugin that was recommended so many times) to develop pretty much the same thing again (in terms of functionality).

    Anyway, I'm not sure if your post is for a plugin idea or a minecraft update idea. Either way, you forgot to tag Zarius so he probably didn't see it. Hopefully he'll see it now though and try to fix your "horse meat" instead of "horse meat" problem.

    EDIT: Nevermind. I didn't know you guys were already talking, and in fact already fixed, the italic thing. Anyway, I hope you enjoy the plugin FlOppy, and sorry for the post I made earlier. I was just getting frustrated.
     
  27. Offline

    FlOppy

    Lol hello why were you frustracted ?

    I could see that myself but not really get why, and yeah all my ideas should be in Minecraft itself and not made by fans, but you know there is a lot of lazy people and mojang is lazy, now they get there money, they let the fans do their job, so i try to add the functionalities at least proposed them, so minecraft can become a better game.

    So why were you frustrated ?
     

Share This Page