Failender
Forge Modder-
Posts
1091 -
Joined
-
Last visited
Everything posted by Failender
-
and diesieben told you what the problem is. I thought u wre coming up with a new problem
-
1. learn java 2. show crash log
-
[1.8] Custom CraftingManager won't consume items
Failender replied to Hackbaellchen's topic in Modder Support
Could you google that? http://stackoverflow.com/questions/2599440/how-can-i-access-a-private-constructor-of-a-class -
[1.8] Custom CraftingManager won't consume items
Failender replied to Hackbaellchen's topic in Modder Support
damn u mojang. so u just want ur custom CraftingManager, which is basically the same, right? Why not create ur own instance using reflection, instead of just copy pasting the whole code -
[1.8] Custom CraftingManager won't consume items
Failender replied to Hackbaellchen's topic in Modder Support
read about the keyword extends please. after that go and smash ur head soft against a wall -
u should consider reading a tutorial about the proxies and why u need to use them. the simple reason to use proxies is to NOT use event.getSide()
-
are u calling the clientproxy codeß
-
show thje whole thing where u send the package. i guess its inside ur event handler. have u registered the event handler? show that
-
Check if block is next to another block with power
Failender replied to MrHubbard's topic in Modder Support
for(Block b : BlocksUwannaCheck) { if (b instanceof MyMachineBlock) doEpicStuff(); } -
seriously the tutorial is straight forward. fix it urself
-
Check if block is next to another block with power
Failender replied to MrHubbard's topic in Modder Support
check all blocks around or block with instanceof MyPowerBlock -
-
how are u opening the gui
-
important changes should always happen on server side. the client side is ONLY for displaying informations and sending inputs
-
show more code
-
http://www.minecraftforge.net/forum/index.php/topic,20135.0.html
-
Some extra distance checking on inventories?
Failender replied to thebest108's topic in Modder Support
One way would always be reflection. But I dont feel like there is need for this in this situation. When do you need the distance from the container -
GuiOpenEvent is fired Client-Only. Which means If you want to open a different Container u need to send a packet and let the server open the gui (because the server will inform the client)
-
[1.8] Updating an old non-Forge Mod to current Version and Forge?
Failender replied to FieryChocobo's topic in Modder Support
A custom gui is done with a class extending GuiScreen , you only need to open that up on client side (I guess you want to be using a KeyBinding for that) so every time the KeyBinding gets hit open the gui using @SubscribeEvent public void onKeyPressed(KeyInputEvent event) { if(ClientProxy.binding.isKeyDown()) { Minecraft.getMinecraft.displayGuiScreen(new MyScreen()) } } You should look for a basic tutorial on how to set up ur proxies ( you will need it). There are tons of them out there so I wont teach u how to do that. Same goes for Keybindings. Look for a tutorial, if you have any problems come back and ask. (Of course the Clientproxy.binding is from type KeyBinding) For the playermodels.. I have no idea. Sorry -
delete the examplemod from ur project u wont need it.
-
seriously u should start to learn to look at vanilla and learn from it. look how vanilla renders the player inventory maybe and then add 4 slots?
-
dont do that. work with a master slave system, choosing one main block and let all other reference to the master
-
why are you adding 1 to y? if u want the block UNDER the player?
-
never use sideonly if u have no idea what u are doing. if(event.world.isRemote) doStuff();