How to do a plugin that add a client mod to the server

Discussion in 'Plugin Development' started by O_soldier, Apr 22, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    O_soldier

    Hi, I'm searching for how to do a plugin for adding block with the client mod (like ItemCraft but for 1 mod only) I've looked at the method to decompile Bukkit add the block and recompile but for differants reason I don't like this method so, do you know how to do a plugin for this ?

    P.S: my mod add obsidian tools and armors
     
  2. Offline

    Njol

    Take a look at Spout.
     
  3. Offline

    O_soldier

    I've alredy looked spout but I've did more complicated block/Item that spout not support
     
  4. Offline

    Njol

    What's needed to add you own materials? If it's only adding new entries to the Material enum you might be able to do so using reflection.

    edit: and the NMS byId array(s?) of course
     
  5. Offline

    O_soldier

    I'm trying to add new Block/Tools/armors without spout and without decompiling bukkit. I want to create a plugin that add a mod suport for multiplayer


    what is NMS ?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  6. Offline

    Njol

    the net.minecraft.server package, i.e. native minecraft code.

    So you basically want to recreate spout on your own, but with less flexibility and compatibility.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  7. Offline

    O_soldier

    yes but without api only for defined mods
     
  8. Offline

    ximnotyoux

    haha gl i hope you hava lots of programming skils cuz what you want to do isnt easy
     
  9. Offline

    ZachBora

  10. Offline

    SirTyler

    My question is, why?
     
  11. Offline

    O_soldier

    Beacause I've a launcher with mod (created only for my server) and i want to add it on multiplayer
     
  12. Offline

    HappyPikachu

    Creating a custom block with Bukkit alone is impossible. Spout is your best option.
     
  13. Offline

    O_soldier

    NOT ALONE with client mods
     
  14. Offline

    jca2323

    The only way possible is to override the net.minecraft.server packages. Or use spout. Or go to vanilla servers, and add modloader and modloaderMP support to it.
     
  15. Offline

    HappyPikachu

    I know, which is why I (and others) suggested Spout. You can't make a new block or new items in multiplayer with just client mods or just server mods - you gotta have both.

    Even writing over NMS won't produce new blocks/items. Unless you've got something going on server-side, it'll only allow you to change the behavior of something that already exists (here's a good example of this).
     
    Wulfspider likes this.
  16. HappyPikachu
    I think he meant:
    Which means server + client mods.

    The power of comma xD

    O_soldier
    You should use spout for compatibility because people might want to use your mod AND spout based mods and they can't...
    But if you really want to make a sepparate plugin, look into spout's source, they used reflection to alter some codes.
     
Thread Status:
Not open for further replies.

Share This Page