Jump to content

Failender

Forge Modder
  • Posts

    1091
  • Joined

  • Last visited

Everything posted by Failender

  1. Ufff well that could be tricky You will need a TickHandler (google event handling) On keypress you will need to safe the block the player is looking at and in the Tickhandler simulate the left mouse button until the block is broken. If you have no idea what I am talking about you probably shouldnt write this
  2. Look at this again double vx = (player.posX + radius) * Math.cos(angle) -player.posZ * Math.sin(angle); double vz = player.posX * Math.sin(angle) + player.posZ * Math.cos(angle); Maybe teleport urself to the coordinate x=100000 and check out what will happen
  3. I hope you know that there is no way that code creates a circle around you
  4. so returning null is fine? oh return a default "useless" value
  5. Hey everyone, I am working on a custom implementaiton of IRecipe and stumpled upon the following I need to acess the InventoryCrafting for getRecipeOutput, because it is a generic recipe that will work for an unknown amounts of items. Is this possible or do I need to find a workaround without recipes? Greetz Failender
  6. well sin(x) is between 0 and 1 .. so you are basically adding a max of 1. which is nothing. cerandior is right
  7. Good luck http://www.minecraftforum.net/forums/minecraft-discussion/discussion/153885-any-software-to-change-my-players-coordinates
  8. not urself. there might be some1 who is deep enuf into minecraft to do so buuuuuuuuuuuut I dont think so
  9. well first of all why are you converting the position into a vector? you can just directly access the players position and use that I think the main part of the lagg is that you are spawning 36 explosion. maybe you should try degrees+=20? And maybe use float instead of double you dont really need the precision of double there for (double degrees = 0.0D; degrees < 360.0D; degrees += 10.0D) { double angle = Math.toRadians(degrees); double vx = player.posX* Math.cos(angle) -player.posZ * Math.sin(angle); double vz = player.posX * Math.sin(angle) + player.posZ * Math.cos(angle); par2World.createExplosion(player,(int)vx, player.posY, (int)vz, 3.2F, true); }
  10. The question is if you really need a perfect circle. You could use a square shape, which is way faster.
  11. Because witchery is handling leaving the end wrong. Its the mod witchery report to them, we cant help you with that. If its still casuing problems you will need to remove witchery
  12. firrst of all you need to destroy the block on server side. second you cant use the Miencraft class on Server side, its client only Pressing a key is client side (use a KeyHandler for it this thread should help http://www.minecraftforge.net/forum/index.php?topic=15960.0) After that you need to send a packet to the server which infor,ms about the pressed button (this should helphttp://www.minecraftforge.net/forum/index.php/topic,20135.0.html)
  13. either directly message thje mod author of waila with the crash log or here http://www.minecraftforge.net/forum/index.php/board,15.0.html . I guess your thread will be moved there anyway in a second :b
  14. wrong forum sir. this is support for ppl that want to write a mod. The problem is the mod witchery, it seems broken.
  15. I guess you will need to create your own class implementing IRecipe. The enchantment of an item is storted in the nbt of its stack. So when getting the output you should copy the part of the stack thats for the enchantments
  16. Are you doing the teleport on server side..?
  17. First of all thanks to both of you. I need to look if I am able to pull it off, because i am TOTALLY unexperienced in this area of minecraft forge and hoped it would be easier But still, thanks for your help!
  18. well. I am super confused what you are triing to do, but I can tell you that a itemstack that the player has in his inventory will never be == to a new created itemstack.. (check out ItemStack#areItemStacksEqual..)
  19. Hey everyone, I know we already had this here once, but unfortunately I cant find it.. I am triing to create tools, that are a composite of different smaller parts. Which means that I would love to assemble the texture from smaller parts. I know how to create the items and access which things are part of it (hello nbt) , but how do i create the texture from it?
  20. first of all about which version are yuo talking
  21. http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571567-forge-1-6-4-1-8-eventhandler-and
  22. Subscribe to Living Hurt event, check if entity hurt is a player, check if he has full armor on aaaand set em on fire
  23. I guess you will need to use events for that. I know that there was an event that gets fired when an entity gets damaged, but it seems like its not EntityHurtEvent
  24. And if you do that do it while in debug mode x)
×
×
  • Create New...

Important Information

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