
Failender
Forge Modder-
Posts
1091 -
Joined
-
Last visited
Everything posted by Failender
-
how to you get the world without a method. 1.7.10
Failender replied to BoonieQuafter-CrAfTeR's topic in Modder Support
there are several worldobjects that exist while playing minecraft. so u cant just take any worldobj and say thats the one i need. it depends on why u need it -
how to you get the world without a method. 1.7.10
Failender replied to BoonieQuafter-CrAfTeR's topic in Modder Support
so. there are two ways. tell us why u need an worldobj. or we cant help. -
how to you get the world without a method. 1.7.10
Failender replied to BoonieQuafter-CrAfTeR's topic in Modder Support
how do u call getCoolDown and why do u need an worldObj there. -
how to you get the world without a method. 1.7.10
Failender replied to BoonieQuafter-CrAfTeR's topic in Modder Support
show the methods where u need it, nad most likely we will be able to show u where u get the worldObj from. -
how to you get the world without a method. 1.7.10
Failender replied to BoonieQuafter-CrAfTeR's topic in Modder Support
because everywhere where u dont got an access to an worldObj u will most likely not need it. -
how to you get the world without a method. 1.7.10
Failender replied to BoonieQuafter-CrAfTeR's topic in Modder Support
why and where do you need it -
[solved][1.8] Change size of player inventory
Failender replied to Failender's topic in Modder Support
Alright. Managed to do a lot. (Apparently strg v code messes up the formatting a bit) Created my own class, which does nothing but reduce the inventory size. Applied the inventory every time the player joiins the world. Two problems I got right now. 1. The player picks up items, even though his inventory is already full. I am confused, this shouldnt happen since the important methods of InventoryPlayer seem to always iterate over mainInventory.length 2. The hotbar only updates after opening the custom gui public class InventoryPlayerCustom extends InventoryPlayer{ public InventoryPlayerCustom(EntityPlayer playerIn) { super(playerIn); mainInventory = new ItemStack[18]; } } @SubscribeEvent public void joining(EntityJoinWorldEvent event) { if(event.entity instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) event.entity; player.inventory = new InventoryPlayerCustom(player); } } EDIT: I guess I could be fixxing the 2nd problem by rendering it on my own, but I dont understand it. Normally the hotbar renderer should access the first 9 slots in the InventoryPlayer, where InveotryPlayer is my class and the first 9 slots shouldnt be out of sync -
[UNSOLVED]Strange things happen with my energysystem[1.8]
Failender replied to ItsAMysteriousYT's topic in Modder Support
This post is getting out of control. -
Hello guys, I am triing to change the size of the player inventory. He can upgrade it later so it gets bigger again. I would render the inventory gui on myself later. My problem is the setting of the inventory size. I thought using the entity construct event would allow me to do so, but im wrong. First problem is, that at the time the event is fired the player.inventory is null (which makes no sense to me, since it is initialized via public InventoryPlayer inventory = new InventoryPlayer(this) If I set the inventory myself via player.inventory = new InventoryPlayer(player); it gets overriden by vanilla. So my question is: How can I change the size of the inventory of the player? Do I need to create a custom class, overriding the inventory? Where do I need to apply my changes? Mfg Failender
-
[UNSOLVED]Strange things happen with my energysystem[1.8]
Failender replied to ItsAMysteriousYT's topic in Modder Support
dont mod when in a rush. saying "I only got five minutes left" will bring you nowhere. send the packet. when receiving the packet send the value to the opened gui. -
[UNSOLVED]Strange things happen with my energysystem[1.8]
Failender replied to ItsAMysteriousYT's topic in Modder Support
u can. but u dont. because thats total bs. -
[UNSOLVED]Strange things happen with my energysystem[1.8]
Failender replied to ItsAMysteriousYT's topic in Modder Support
http://www.minecraftforge.net/forum/index.php/topic,20135.0.html -
[UNSOLVED]Strange things happen with my energysystem[1.8]
Failender replied to ItsAMysteriousYT's topic in Modder Support
look at the container -
How to get the Block the player is looking at in 1.8?
Failender replied to Kloonder's topic in Modder Support
dont know about that error, but why are u taytracing three times thats waste of processing time. raytrace once, save the result, read x/y/z from it -
[UNSOLVED]Strange things happen with my energysystem[1.8]
Failender replied to ItsAMysteriousYT's topic in Modder Support
guess u should be searching more. -
How to use Reflection to change vanilla values
Failender replied to JimiIT92's topic in Modder Support
yes. -
[UNSOLVED]Strange things happen with my energysystem[1.8]
Failender replied to ItsAMysteriousYT's topic in Modder Support
You need this in a gui right? U dont need packets then. use detect and send changes. there u can use crafter.sendProgressBarUpdate. look at vanilla furnace for example -
bump after less then 3 hours? seriously?
-
How to get the Block the player is looking at in 1.8?
Failender replied to Kloonder's topic in Modder Support
you need to use a raycast -
you dont need to store an entire object to know of the spawner. just save the x/y/z of the spawner in the attributes and access the spawner when you need it (when the mob despawns)