Everything posted by Failender
-
[1.7.10] Is there a reason why my mod isn't running? 0 ERRORS IN ECLIPSE
u should better be reading some minecraft modding tutorials.
-
[1.7.10] Is there a reason why my mod isn't running? 0 ERRORS IN ECLIPSE
So. U are creating a new thread that is running infinite in ur main mad class that is doing exactly nothing. Why? Also dont register "this" as a event handler. create a separate class that handles events and register that. What the hell are u triing to do?
-
[1.7.10] Is there a reason why my mod isn't running? 0 ERRORS IN ECLIPSE
what do you think you are doing with that thread
-
[1.7.10] Is there a reason why my mod isn't running? 0 ERRORS IN ECLIPSE
what the..?
-
[1.7.10] Render HUD Inventory as custom -GUI Location/Coord ISSUE
you should be looking how vanilla caluclates those values.. then u will get the same results
-
Block.blocksList and Blocks.blocksList don't work?
- [1.7.10] Render HUD Inventory as custom -GUI Location/Coord ISSUE
GuiIngameForge in 1.8, not sure about 1.7- [1.7.10] How would you Force Item Drop from Inventory?
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?
are u using eclipse? if u do strg+shift+ t- [1.7.10] How would you Force Item Drop from Inventory?
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- [1.8] Force item update
Yeah I wasnt sure about that, hoped there was a better way. Thank you sir- [1.8] Force item update
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- [1.8] Force item update
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.- [1.8] Force item update
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?
I am using the mcpbot http://mcpbot.bspk.rs/- Block.blocksList and Blocks.blocksList don't work?
I guess U should be using BreakSpeed and HarvestDrops events to manage that they wont drop- [1.8] world.setBlockState not actually creating blocks
then u wil get ClassNotFoundException. Pass the world as an argument to ur method. U get the world object from Item#onItemRightClick- [1.7.10] Generate blocks on grass
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.- [1.7.10] Generate blocks on grass
and i answered that- [1.8] world.setBlockState not actually creating blocks
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- [1.7.10] Generate blocks on grass
the code u posted is not even urs. study more and come back with a question- [1.8] Custom gui rendering
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.- [1.7.10] Generate blocks on grass
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- [1.7.10] Generate blocks on grass
so u have copy pasted code from TheBedrockMiner.- [1.8] world.setBlockState not actually creating blocks
show ur actual code and the StoneDungeon stuff pleaese - [1.7.10] Render HUD Inventory as custom -GUI Location/Coord ISSUE
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.