MaterialAPI - Create new items and blocks!

Discussion in 'Resources' started by Cybermaxke, Jan 19, 2013.

Thread Status:
Not open for further replies.
  1. The ressources section is not as much viewed as the other section. Sorry :*

    Already got it working.
  2. Offline


    Is it possible to create custom items with durability with this API? Also, with it showing as the bar down the bottom of the item, showing how broken it is.
  3. Offline


  4. Offline


    The frame that animated textures use should be server side. The possibilities...
  5. Offline


    In theory, aren't custom textures possible? Like it is a sword, but the client gets a packet that says it is a diamond?
  6. Offline


    You can fake ids on the client, for example that I made a plugin that creates new items on the server with ids like 500, 1000, ... And fake them like any existing item on the client, because without doing this, the client will crash.
  7. Offline


    Cybermaxke I'm getting a error in my second class, saying that it isn't abstract and doesn't override a few things?
  8. Offline


    Samthelord1 I'm getting same errors, but I changed code a little and get it working.

    But when I try use plugin in server, it don't work. I have tried both jar in first post and this page, and they give same errors.

    Cybermaxke Do you have updated jar files to 1.6.2? I ask because I get this error anc much more similar:
    Caused by: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.v1_5_R3.inventory.CraftItemStack
  9. Offline


    bensku you're compiling with bukkit 1.6.2 but importing 1.5.3 things
  10. Offline


    I am currently working on a better api. It will fix bugs there are currently like that the items break in creative and after setting item meta. And containing also a lot of other stuff.
  11. Offline


    I'dont import any NMS or CraftBukkit code. MaterialAPI (or Tagutils) try use 1.5.2 classes. Looks like its tryng load 1.5.3 NMS NBTBase.
  12. Offline


    Out of curiosity, would it be possible to create a new block but change the block's texture on top to another? (For example: an iron block with the top texture of a gold block?
  13. Offline


  14. Offline


    Hmm... does this allow the item id to be set to a custom value (like 300 or 1337) and given by the /give lightningwand or /give 1337 command as used?
  15. Offline


    1. Are you still rewriting the plugin?
    2. Although not updated in months, is the current code for the plugin still compatible with more recent versions of Minecraft / Bukkit? If not, could you bring the current plugin code up-to-date while you continue the rewrite?
    3. Is it possible for you to add and retain a blocks maximum durability?

    To clarify what the plugin does:
    1. It appears a custom block ID can be used.
    2. It appears a custom skin can be used for the item.

    My questions:
    1. Is the new item viewable by clients?
    2. Has anyone implemented this and can confirm it works?
  16. Offline


    It's currently not working, but I need to find a new method to add the ids and keeping it compitable with other plugins and working in the latest version. I will try to find a solution and rewrite the plugin after my examens.
  17. Offline


    I also decompiled your plugin and it seems you used NMS code for the tagutils in the source plugin for version 1.5.2. Could you possibly use reflection and not make this library version-dependent? Thanks
  18. Offline


    Yes, I will try to use reflections but if it's not possible I will add a implementation it for every new mc version.
  19. Offline


    When will the new version for this come?
  20. Offline


    I am working on it, andI am also busy with my exams and they will end 18 december. I also gonna try to add custom enchantments, attributes, nbt data, and so on.
  21. Offline


    i need help after all of my public void onHit(EntityDamageByEntityEvent event) { } etc after the bit that says event) there is a red underline on the ) how do i stoop this, thanks :)

    this is my full code
    import org.bukkit.Material;
    import org.bukkit.event.block.BlockBreakEvent;
    import org.bukkit.event.block.BlockDamageEvent;
    import org.bukkit.event.block.BlockPlaceEvent;
    import org.bukkit.event.entity.EntityDamageByEntityEvent;
    import org.bukkit.event.player.PlayerInteractEntityEvent;
    import org.bukkit.event.player.PlayerInteractEvent;
    import org.bukkit.event.player.PlayerItemHeldEvent;
    import me.cybermaxke.materialapi.inventory.CustomItemStack;
    import me.cybermaxke.materialapi.material.CustomMaterial;
    import me.cybermaxke.materialapi.recipe.CustomRecipeShaped;
    public class SuperDiam extends CustomMaterial {
        public SuperDiam(String id, Material material) {
            super(id, material);
        public static CustomMaterial SUPERDIAM;
        public void onEnable() {
            SUPERDIAM = new SuperDiam("superdiam", Material.DIAMOND);       
            CustomItemStack is = new CustomItemStack(SUPERDIAM);
            CustomRecipeShaped r = new CustomRecipeShaped(is);
                    new CustomItemStack[] { new CustomItemStack(Material.DIAMOND_BLOCK)},
                    new CustomItemStack[] { new CustomItemStack(Material.DIAMOND_BLOCK)},
                    new CustomItemStack[] { new CustomItemStack(Material.DIAMOND_BLOCK)},
                    new CustomItemStack[] { new CustomItemStack(Material.DIAMOND_BLOCK)},
                    new CustomItemStack[] { new CustomItemStack(Material.DIAMOND_BLOCK)},
                    new CustomItemStack[] { new CustomItemStack(Material.DIAMOND_BLOCK)},
                    new CustomItemStack[] { new CustomItemStack(Material.DIAMOND_BLOCK)},
                    new CustomItemStack[] { new CustomItemStack(Material.DIAMOND_BLOCK)},
                    new CustomItemStack[] { new CustomItemStack(Material.DIAMOND_BLOCK)}
        this.setName("Super Diamond");
        this.setLore("Nice job now can you make a legendary Diamond?");
        public void onHit.public void onHit(EntityDamageByEntityEvent arg0) {};
        public void onInteract(PlayerInteractEvent event) { };
        public void onInteractEntity(PlayerInteractEntityEvent event) { };
        public void onBlockPlaced(BlockPlaceEvent event) { };
        public void onBlockBreak(BlockBreakEvent event) { };
        public void onBlockDamage(BlockDamageEvent event) { };
        public void onBlockInteract(PlayerInteractEvent event) { };
        public void onHold(PlayerItemHeldEvent event) { };
    im not sure if i did it right
  22. Offline


    Looks excellent, defiantly bookmarking this for my project (when the time comes to start on the custom weapons)!
  23. Offline


    How Would I Add Multiple Items/Blocks in one plugin?
  24. Offline


    Any chance we'll be getting a 1.7.2+ version of this?
  25. Offline


    Are you done updating? It has been 5 months now.
  26. Offline


    I hope it is. I love this thing! c:
  27. Offline


    Cybermaxke I can't seem to find where you registered the listeners you have in the CustomMaterial class. Is there something I'm missing here?
  28. Offline


    Is this still being updated? When i use it i get a lot of chunk data errors.
Thread Status:
Not open for further replies.

Share This Page