Can I code item ids?

Discussion in 'Plugin Development' started by wizard7611, Nov 26, 2013.

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

    wizard7611

    Can I give players an item by coding an item id in my plugin? -derp
    How can I drop an ignited tnt block after activating a dispenser with redstone?
     
  2. Offline

    LucasEmanuel

    The ID's are about to get removed, you should work with the Material-enumerator. :)
     
  3. Offline

    wizard7611

    why?!?!?!?!
     
  4. Offline

    LucasEmanuel

    Mojang is removing all "Magic numbers" in Minecraft if I remember correctly.

    So you have to call Material.STONE if you want to specify the stone material. :)
     
  5. Offline

    Blah1

    LucasEmanuel likes this.
  6. Offline

    Garris0n

    They'll be kept in but deprecated because in the future they'll be problematic or removed. It's one of the moves towards the Minecraft "Plugin API".
     
    LucasEmanuel likes this.
  7. Offline

    Blah1

    Garris0n i wonder how this "Minecraft Api" will work. Will i have to like re-learn how to code?
     
  8. Offline

    Garris0n

    Same language, so no, however the API will change for however it works. The reason it's a big deal is we'll finally be able to change the client, like add a new mob etc etc. We have no idea how it will work yet, though, or what Bukkit will continue to be after its release.
     
  9. Offline

    Vilsol

    You will just have to learn how to use the new API. Coding basics will stay the same.
     
  10. Offline

    Blah1

    Garris0n Vilsol idk why but i dont think this is going to be a good idea. First im gonna miss bukkit but mostly its going to be so chaotic. There will be so much diversity between servers. I dont think its a good idea for minecraft in the long run.
     
  11. Offline

    The_Doctor_123

    Blah1
    Err.. as far as I know, Bukkit isn't ever going.. The Modding API is for mods. Bukkit plugins are for modifying how existing resources work.
     
  12. Offline

    Blah1

    The_Doctor_123 Well they will be effecting servers too. I don't want to flood this thread with another topic but this is an interesting topic to talk about.
     
  13. Offline

    The_Doctor_123

    Blah1
    Yes, of course it will affect the server, as well as the client. You see, users will still have to install client mods in order to join modded servers, just like how it is today. That is the reason why Bukkit will still be around.
     
  14. Offline

    mattrick

    I'm guessing it's going to work by injecting code into the client and removing it when they disconnect (Which means twice as much work for us). It will still be nice when they add native server mod support.
     
  15. Offline

    wizard7611

    XD is there at least an answer for my second question? -derp
     
Thread Status:
Not open for further replies.

Share This Page