Everything posted by Failender
-
[1.8] Player destroy block with pickaxe
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
-
[1.7.10] Creating a Ring Around Player
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
-
[1.7.10] Creating a Ring Around Player
I hope you know that there is no way that code creates a circle around you
-
[1.8.9][IRecipe]Get InventoryCrafting contents in getRecipeOutput
so returning null is fine? oh return a default "useless" value
-
[1.8.9][IRecipe]Get InventoryCrafting contents in getRecipeOutput
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
-
[1.7.10] Creating a Ring Around Player
well sin(x) is between 0 and 1 .. so you are basically adding a max of 1. which is nothing. cerandior is right
-
[1.7.10]problem with server won'y run , infinity 2.3.0
Good luck http://www.minecraftforum.net/forums/minecraft-discussion/discussion/153885-any-software-to-change-my-players-coordinates
-
[1.7.10]problem with server won'y run , infinity 2.3.0
not urself. there might be some1 who is deep enuf into minecraft to do so buuuuuuuuuuuut I dont think so
-
[1.7.10] Creating a Ring Around Player
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); }
-
[1.7.10] Creating a Ring Around Player
The question is if you really need a perfect circle. You could use a square shape, which is way faster.
-
[1.7.10]problem with server won'y run , infinity 2.3.0
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
-
[1.8] Player destroy block with pickaxe
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)
-
[1.7.10]problem with server won'y run , infinity 2.3.0
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
-
[1.7.10]problem with server won'y run , infinity 2.3.0
wrong forum sir. this is support for ppl that want to write a mod. The problem is the mod witchery, it seems broken.
-
[1.7.10] Keep Enchantments on crafting
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
-
[1.7.10] Player moved Wrongly
Are you doing the teleport on server side..?
-
[1.8.9] Dynamic item textures
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!
-
-deleted-
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..)
-
[1.8.9] Dynamic item textures
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?
-
EntityCreature.setTarget() not working
first of all about which version are yuo talking
-
[Solved][1.7.10] When hit set mob on fire
http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571567-forge-1-6-4-1-8-eventhandler-and
-
[Solved][1.7.10] When hit set mob on fire
- [Solved][1.7.10] When hit set mob on fire
Subscribe to Living Hurt event, check if entity hurt is a player, check if he has full armor on aaaand set em on fire- Spawn TNT over Play
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- [1.7.10] How to make the Slots and the GUI
And if you do that do it while in debug mode x) - [Solved][1.7.10] When hit set mob on fire
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.