Jump to content

Failender

Forge Modder
  • Posts

    1091
  • Joined

  • Last visited

Everything posted by Failender

  1. well you have two choices. 1. dont do it, start with sth easier 2. learn a lot of java, then come back.
  2. if u are using eclipse to Ctrl+Shft+T, it will open a search window
  3. public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ) { return false; } found this in 1.8 . mb u can find it in 1.7 too
  4. Dont do the EntityUpdate code on client side. only do it on server side.
  5. I know that the PlayerInteractEvent gives u an EnumFcing with it. So I am pretty sure that there must be a method in ur Item class that gives u an enum facing u can use.
  6. because a copy of terraria is worth hours of coding x)
  7. I literally can't even... ...think of an appropriate meme to post now. Just speechless. let me help you out. If u say we cant understand ur code dont ask for help. thank you.
  8. diesieben has more understanding of minecraft and modding then u might ever have so dont come up with u dont understand the code if u have no idea what u r doing.
  9. you dont need to write or read anything from the buffer. if u just need a message that is like "update now!" and u dont need more information go ahead
  10. there is NO need to send a string if u dont use it. remove it.
  11. show the crash log and how u send the packet
  12. to create a message u need to use the constructor with the argu,ments. the empty is for forge. there cant be a npe
  13. how about u find it out urself? Learn how to use sysos for debugging please.
  14. 1. Dont use Minecraft.getMinecraft on a server, the class is client side only 2. How is that a packet class? Wheres ur IMessage ,wheres the IMessageHandler, what is this?
  15. why are you building the path urself? ResourceLocation.getResourcePath should give u the path u need to create a new File
  16. Im not sure if this is the best way, but the ResourceLocation also gives u the absolute/relative path for JavaIO. so u can go ahead, load the image inside an buffered image (goolge is your friend) and call the methods for getting width and height there. but java io is expensive so dont do this a lot.
  17. I dont know about all vanilla packets out of my head. either u find a vanilla one u can send or u need to create a custom one
  18. you cant and you dont need. if you want to change the world the player is currently in simply go and get the worldObj from the player. the handleMessage of the imessagehandler gives u an context ctx. so just go ctx.getServerHandler().playerEntity.worldObj. I might be wrong with some naming here, search ur ide
  19. http://www.minecraftforge.net/forum/index.php/topic,20135.0.html
  20. define "update" but yes. i guess u need packets.
  21. if you are opening a thread always write the version u are in helps a lot.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.