Everything posted by Kwibble
-
Giving players potion effects when hit by a projectile
Read up tutorials on event handling for Minecraft forge. And yes, event.entity is the entity hurt, and event.source.getEntity() is the entity that caused the damage.
-
[1.6.4] Create a machine block which can contain water
I did say MODDER SUPPORT didn't I? Oh well, no matter.
-
[1.6.4] Create a machine block which can contain water
You're joking right? Because of your incompetence, here is the link. It's the first two tutorials. http://www.minecraftforge.net/forum/index.php/board,120.0.html
-
[1.6.4] Create a machine block which can contain water
What's wrong with your code? A LOT of things. I would suggest reading the tutorials on the SimpleNetworkWrapper that are in the tutorials section of the modder support forums. But then again, your working with a tile entity and shouldn't need custom packets.
-
Custom block
Make your block extend BlockContainer instead of block. See if that helps at all.
-
[1.7.2]NBT data not being created when shift clicking out of Crafting Bench
Take a look at this topic: http://www.minecraftforge.net/forum/index.php/topic,20157.0.html
-
set nbt upon crafting
Look at this topic: http://www.minecraftforge.net/forum/index.php/topic,20157.0.html
-
[1.6.4] Create a machine block which can contain water
Server/Client syncing issues I would presume. Time for packet handling.
-
Resources folder location?
Because they can... Before ForgeGradle such a setup was nice. Now... It's just not needed.
-
[1.7.2] [Solved] Particle crash by custom block renderer
@TGG How does ISimpleBlockRenderingHandler take care of rendering a block in the inventory? Can you give an example?
-
Mining requirements
* claps * well done sir, well done.
-
Mining requirements
@diesieben07 But what if he wants to have his own custom harvest level? What then?
-
GUI bug
I have noticed that you have registered your GuiHandler twice. Once in your registerNetworkStuff() method, and then inside the constructor of your GuiHandler. Try removing the one inside your GuiHandler's constructor and see if that fixes it. If it doesn't, post the crash report.
-
[SOLVED] [1.7] Rotate textures on a block
That could work. Not really sure what that is though. This question is making me think tessellator. With it you can render a basic cube and depending on the state, start at different points and draw the same texture. Viola, textures rotated. But yeah... That could be inefficient.
-
[1.7.2] [Solved] Particle crash by custom block renderer
Well... I am wondering the same thing. I have made a small fix for this problem by creating an item that places the wanted block via the onItemUse() method. Then, from there, create an IItemRenderer (I think its called) and register it. Then for the actual rendering you use your tile entity renderer and position 0,0,0. But I would like to know the better way of doing it...
-
[1.7.2]Random Crafting?
Hmm.. I will have to look into that method... Why make something like that final? It doesn't seem right I would expect forge to have made such a thing editable for such a day as this. I am curious and will be looking into it myself now as well. [EDIT] I am now wondering.. Can you cancel the event and then post a new event but with the itemstack you want?
-
Forge hooks and signs
* claps enthusiastically * Thank you for teaching me a little bit o' reflection
-
[1.7.2]Random Crafting?
WAIT!!! Guess what I found guys, an event @SubscribeEvent public void onCrafted(PlayerEvent.ItemCraftedEvent event) { // do stuff } Note this event is registered on the FMLEventBus and not the MinecraftForge event bus. Man do I feel good now
-
send data from GUI-Container to TileEntity and the other way around
I suggest packets. I'm not sure hoe they work after moving to Netty though.. Someone lend a hand in that regard?
-
send data from GUI-Container to TileEntity and the other way around
Lol, ninjad AGAIN!!! That does sound viable, but does the server know about it? That's the issue really. I remember when I was doing stuff client side and wondering why it wasn't working... Fun times
-
[1.7.2]Random Crafting?
No.. You want the blocks as item stacks. So ItemStack stack1 = new ItemStack(params); // replace params with what it asks for. Damn, ninjad Yeah, I am not sure if it would work every time though I.e. Shift clicking out of crafting table/creative mode. Crafting events would still be the easiest.
-
Forge hooks and signs
Good job Now I haven't messed around with reflection much, but you came up with same solution I would have. And following my logic... It should work.
-
Getting the Signed in Username
Have you looked into the Session class? I believe the players username is set to a value stored in the session class, and the session class is created in the main() method.
-
[1.7.2]Random Crafting?
Instead of null you reference whatever items you want as item stacks that's your random returned items. I was going to suggest that you could use the onCreated method of the item... But then I'm not sure how well that works.
-
Custom Potion Effect Help[1.7.2]
You want to make the entity rise above or below the the ground? If so, why not change the y coordinate of the entity?? Not motionY
IPS spam blocked by CleanTalk.