Jump to content
  • Home
  • Files
  • Docs
  • Merch
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mistram

Mistram

Members
 View Profile  See their activity
  • Content Count

    35
  • Joined

    March 1, 2015
  • Last visited

    February 6, 2016

Community Reputation

0 Neutral

About Mistram

  • Rank
    Tree Puncher

Converted

  • Gender
    Undisclosed
  1. Mistram

    [1.8]Adding subtext to vanilla itemstacks

    Mistram replied to Mistram's topic in Modder Support

    Reading the docs helps a lot.. How can I work around that?
    • February 6, 2016
    • 8 replies
  2. Mistram

    [1.8]Adding subtext to vanilla itemstacks

    Mistram replied to Mistram's topic in Modder Support

    I guess I will be using JEI then, since it supports 1.8.9. Another problem I stumpled upon was adding the information to the itemstacks nbt. I am triing to add 10 charges to each blaze rod that get depleted when doing stuff. The problem is that the TagCompound is null the next tick, even if I set it in my code (This is running inside a ServerTickHandler) ArrayList<EntityPlayer> player = Helper.getAllPlayer(); for (EntityPlayer entityPlayer : player) { for (ItemStack itemStack : entityPlayer.openContainer.inventoryItemStacks) { if(itemStack==null) continue; if(itemStack.getItem() ==Items.blaze_rod) { NBTTagCompound compound = itemStack.getTagCompound(); if(compound==null) { compound = new NBTTagCompound(); itemStack.setTagCompound(compound); } if(!compound.hasKey("charges")) { System.out.println("setting compound"); compound.setLong("charges", 10); } } } }
    • February 6, 2016
    • 8 replies
  3. Mistram

    [1.8]Adding subtext to vanilla itemstacks

    Mistram replied to Mistram's topic in Modder Support

    wait. not enough items does NOT support minecraft 1.8.9?
    • February 6, 2016
    • 8 replies
  4. Mistram

    [1.8]Adding subtext to vanilla itemstacks

    Mistram replied to Mistram's topic in Modder Support

    I added the dev version of CodeChickenCore and NotEnoughItems and its throwing a ClassNotFoundException at me.. Any ideas..?
    • February 6, 2016
    • 8 replies
  5. Mistram

    [1.8]Adding subtext to vanilla itemstacks

    Mistram posted a topic in Modder Support

    Is there a way to add a subtext for vanilla itemstacks, depending on some data written in the nbt stack? So lets say you could infuse a blaze rod with some stuff (written in the nbt) and then you would have the tooltip "This item has 4 infusions left"?
    • February 6, 2016
    • 8 replies
  6. Mistram

    [1.7.10] Setting Stack Size over 64

    Mistram replied to American2050's topic in Modder Support

    not possible without serious hacking. we already had this topic once here. why do you need a stack size bigger then 64?
    • September 2, 2015
    • 4 replies
  7. Mistram

    [1.7.10] server high lag. anyone understands a VisualVM profiler snapshot?

    Mistram replied to kauan99's topic in Modder Support

    I feel like this is not the forum to report problems with ForgeEssentials, since it is not ur creation
    • September 2, 2015
    • 4 replies
  8. Mistram

    [1.8] Creating a backpack

    Mistram replied to Mistram's topic in Modder Support

    thank you very much to all
    • September 2, 2015
    • 6 replies
  9. Mistram

    [1.8] Creating a backpack

    Mistram replied to Mistram's topic in Modder Support

    U sure? bc i wanted my backpacks to store specific items on pickup, which means that i need to check every time a player picks an item up if there is space in the backpack. which means a lot of nbt reading. rip processor
    • September 1, 2015
    • 6 replies
  10. Mistram

    [1.8] Creating a backpack

    Mistram posted a topic in Modder Support

    Hey guys, I started creating my own backpack and stumpled upon a problem. I created the Inventory for it (not posting all methods because unnecessary) Now I wonder. I can save and read it from nbt. Do I need to create the inventory from the nbt every time I want to access it, and save it after I created it? If not where do I store it? Since I cant store it in the item class im confused.. public class InventoryBackpack implements IInventory{ public static InventoryBackpack readFromNBT(NBTTagCompound compound) { InventoryBackpack backpack = new InventoryBackpack(); NBTTagList list = compound.getTagList(LIST_TAG, 10); if(list!=null) { for( byte b=0; b<list.tagCount(); b++) { NBTTagCompound comp = (NBTTagCompound) list.get(b); backpack.setInventorySlotContents(comp.getByte("id"), ItemStack.loadItemStackFromNBT(comp)); } } return backpack; } private static final String LIST_TAG="BACKPACK_TAG"; private ItemStack[] items; public void writeToNBT(NBTTagCompound compound) { NBTTagList tag = new NBTTagList(); for (byte b = 0; b < items.length; b++) { if(items[b]==null) continue; NBTTagCompound comp = new NBTTagCompound(); comp.setByte("id", b); items[b].writeToNBT(comp); tag.appendTag(comp); } compound.setTag(LIST_TAG, tag); }
    • September 1, 2015
    • 6 replies
  11. Mistram

    [1.8] Obfuscated fields names for EntityArrow

    Mistram replied to Mistram's topic in Modder Support

    I used that, just not to find all fields. thank you found my mistake
    • August 5, 2015
    • 8 replies
  12. Mistram

    [1.8] Obfuscated fields names for EntityArrow

    Mistram replied to Mistram's topic in Modder Support

    the mcpbot seems to let me down.. I get this from the mcpbot [16:15] -MCPBot_Reborn- === MC 1.8: net/minecraft/entity/projectile/EntityArrow.yTile (ahj.e) UNLOCKED === [16:15] -MCPBot_Reborn- Name : e => field_145792_e => yTile But I know that this cant be correct , bc 1. I get a NoSuchFieldException 2. I used this code snippet to find all fields Field[] fields = EntityArrow.class.getFields(); for (Field field : fields) { System.out.println(field.getName()); } And the output is this
    • August 5, 2015
    • 8 replies
  13. Mistram

    [1.8] Obfuscated fields names for EntityArrow

    Mistram replied to Mistram's topic in Modder Support

    could i get some more information on how to do that?
    • August 4, 2015
    • 8 replies
  14. Mistram

    [1.8] Obfuscated fields names for EntityArrow

    Mistram posted a topic in Modder Support

    Hey guys, I am triing to use a technique I read here not long ago. My problem is that I am unable to find the obfuscated field names for xTile, yTile, and zTile for the EntityArrow class.. is there any good way of finding these?
    • August 4, 2015
    • 8 replies
  15. Mistram

    [1.8] [SOLVED] Spawning in world with item

    Mistram replied to skyfir3's topic in Modder Support

    EntityConstruct event
    • July 20, 2015
    • 3 replies
  • All Activity
  • Home
  • Mistram
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community