Failender
Forge Modder-
Posts
1091 -
Joined
-
Last visited
Everything posted by Failender
-
[1.7.10] Render HUD Inventory as custom -GUI Location/Coord ISSUE
Failender replied to Thornack's topic in Modder Support
you should be looking how vanilla caluclates those values.. then u will get the same results -
Block.blocksList and Blocks.blocksList don't work?
Failender replied to NightTerror6's topic in Modder Support
-
[1.7.10] Render HUD Inventory as custom -GUI Location/Coord ISSUE
Failender replied to Thornack's topic in Modder Support
GuiIngameForge in 1.8, not sure about 1.7 -
[1.7.10] How would you Force Item Drop from Inventory?
Failender replied to Thornack's topic in Modder Support
Hmm didnt knew it was a new thing in 1.8 , I apologize. private static void spawnItemStack(World worldIn, double p_180173_1_, double p_180173_3_, double p_180173_5_, ItemStack p_180173_7_) { float f = RANDOM.nextFloat() * 0.8F + 0.1F; float f1 = RANDOM.nextFloat() * 0.8F + 0.1F; float f2 = RANDOM.nextFloat() * 0.8F + 0.1F; while (p_180173_7_.stackSize > 0) { int i = RANDOM.nextInt(21) + 10; if (i > p_180173_7_.stackSize) { i = p_180173_7_.stackSize; } p_180173_7_.stackSize -= i; EntityItem entityitem = new EntityItem(worldIn, p_180173_1_ + (double)f, p_180173_3_ + (double)f1, p_180173_5_ + (double)f2, new ItemStack(p_180173_7_.getItem(), i, p_180173_7_.getMetadata())); if (p_180173_7_.hasTagCompound()) { entityitem.getEntityItem().setTagCompound((NBTTagCompound)p_180173_7_.getTagCompound().copy()); } float f3 = 0.05F; entityitem.motionX = RANDOM.nextGaussian() * (double)f3; entityitem.motionY = RANDOM.nextGaussian() * (double)f3 + 0.20000000298023224D; entityitem.motionZ = RANDOM.nextGaussian() * (double)f3; worldIn.spawnEntityInWorld(entityitem); } } -
[1.7.10] How would you Force Item Drop from Inventory?
Failender replied to Thornack's topic in Modder Support
are u using eclipse? if u do strg+shift+ t -
[1.7.10] How would you Force Item Drop from Inventory?
Failender replied to Thornack's topic in Modder Support
player.inventory.seInventorySlotContents(desiredSlot, null) removes the item from the inventory. To drop it in the world look at InventoryHelper.dropInventorySlotContents. u should find help there -
Yeah I wasnt sure about that, hoped there was a better way. Thank you sir
-
Exactly. It does that using detectAndSendChanges. So. Is there a good way without detectAndSendChanges? I could of course also use a custom packet, but I feel like there must be another way
-
I am damaging the items on server side (they are a energy storage and im usign damage values to check out how much energy is left) . I am rendering the energy left on client side which means I need the damage value on client side. But its not getting synced by default, because its not in a opened container. Which means I need to force the update. The question is not the where, the question is the how. So my question is has vanilla a built in way to synchronize itemstacks I can use.
-
Hey folks, I have an item that I store inside an inventory of my IEEP. I need to have that item synchronized at all time because I am calculating values for custom gui rendering from its durabilty. The problem is that right now it is only synchronized when I open the container where I use this item. How can I force this item to update , I could use a custom packet but I feel like minecraft must have a built in way I dont know about. Greetz Failender
-
[1.7.10] Can someone tell me what these functions are?
Failender replied to TheCerealKill3r's topic in Modder Support
I am using the mcpbot http://mcpbot.bspk.rs/ -
Block.blocksList and Blocks.blocksList don't work?
Failender replied to NightTerror6's topic in Modder Support
I guess U should be using BreakSpeed and HarvestDrops events to manage that they wont drop -
[1.8] world.setBlockState not actually creating blocks
Failender replied to Atomos's topic in Modder Support
then u wil get ClassNotFoundException. Pass the world as an argument to ur method. U get the world object from Item#onItemRightClick -
we wont write ur mod 4 u. If u want to write ur own mod learn java. then come back. or find some1 u can pay to write ur mod. but dont expect us to help u without u learning java.
-
and i answered that
-
[1.8] world.setBlockState not actually creating blocks
Failender replied to Atomos's topic in Modder Support
dont read everything but there is a big mistake inside. ur StoneDungeon stuff is for generating something. So it shall only run on server side. But u are calling Minecraft.getMinecraft().thePlayer.addChatComponentMessage(new ChatComponentTranslation("Creating "+output.size()+" Rooms")); Never ever call Minecraft on server side, since it is not existing on server side. If u want the player u need to pass it as argument fromthe item rightclick method -
the code u posted is not even urs. study more and come back with a question
-
already done that still dont changes the fact that i will need to add sth to the x value and scale that. and the event.resolution.getScaleFactor() is to inaccurate, since its an integer.
-
not until u understood what hes doing there and are able to ask me a specific question. im not gonna write ur mod 4 u
-
so u have copy pasted code from TheBedrockMiner.
-
[1.8] world.setBlockState not actually creating blocks
Failender replied to Atomos's topic in Modder Support
show ur actual code and the StoneDungeon stuff pleaese