Everything posted by Draco18s
-
[1.8.9] Extending the Chat Character limit to 256
Oh jesus fucking christ. I even GAVE you an example of how to use it. It gives you back a typed object that has all the publicly accessible objects you'd want for an object of that type. Stop casting it to Object.
-
[1.8.9] Extending the Chat Character limit to 256
Sorry, it's called "get" Alternatively you can use the ReflectionHelper class. Although I do advise referencing things by name (which means you'll have to use MCPBot to get the SRG name as well) rather than by index. The index might change unexpectedly. For example: DamageSource damage = ReflectionHelper.getPrivateValue(LootContext.class, context, "damageSource","field_186503_f");
-
[1.8.9] Extending the Chat Character limit to 256
More reflection. Specifically getValue . And if the method you need to invoke is also private, you'll have to use invoke
-
[1.10.2] See-through glass-like block acts as an x-ray, help needed
public boolean isOpaqueCube(IBlockState state) { return false; }
-
How to add food (1.10.2)
extend ItemFood
-
[1.8.9] Extending the Chat Character limit to 256
Is it a variable? Access it with reflection. Is it a hard coded value? Tough luck, can't do it.
-
Issues giving a custom item a name
Sorry, thought they were.
-
Issues giving a custom item a name
*Cough*
-
[1.8.9] Weird Problems with custom Dimension [SOLVED]
Ah, yes, you are correct. I had assumed that if the entity wasn't null, then that method was probably safe.
-
[1.8.9] Weird Problems with custom Dimension [SOLVED]
So it errors on d6 = (double)(blockpattern$patternhelper.func_181117_a().getY() + 1) - entityIn.func_181014_aG().yCoord * (double)blockpattern$patternhelper.func_181119_e(); ? And I mean that line exactly. Because if so, there's literally nothing there that could be null: every object referenced on that line has already been referenced on a previous line.
-
Issues giving a custom item a name
Your lang file does not contain an entry for cheese: https://bitbucket.org/kitsushadow/forgecraft/src/0c6cb00316b3d00b05a01a68c11c7a3ec042e8f9/1.10.2/src/main/resources/assets/forgecraft/lang/en_US.lang?at=master&fileviewer=file-view-default This asset directory is wrongly named and nothing inside it will be used: https://bitbucket.org/kitsushadow/forgecraft/src/0c6cb00316b3d00b05a01a68c11c7a3ec042e8f9/1.10.2/src/main/resources/assets.forgecraft/?at=master
-
1.11 custom mob is invisible
No where did you register a renderer. That only tells the game "I am a thing that exists." It doesn't magically know about your fox.png file or what to do with it.
-
[1.11] ModelLoader Exception.
Show your registration code.
-
Block texture not working (1.10.2) [Solved]
Caused by: java.io.FileNotFoundException: ftl:models/item/gooseberry.json
-
[1.8.9] Entity creates lag in game and walks into blocks
Shift F3
-
[1.8.9] Weird Problems with custom Dimension [SOLVED]
...and which line of that stupidly large method is line 158? Look at that line. Find the thing that is null. Figure out why.
-
[1.10.2]TileEntity not Working properly (page 2)
If its not syncing with the server, you need to make it sync with the server. Usually involves packets.
-
[1.10.2]TileEntity not Working properly (page 2)
- Texture not loading in minecraft
1.7.10 is no longer supported by Forge- Odd Eclipse Error. Textures wont render and I get [TEXTURE ERROR]
intellicraft:items/titaniumingot != intellicraft:item/titaniumingot- [1.11] Problem With Sending Info to TEs
Why are you not using Capabilities?- [1.10.2]GuiContainer: draw texture in foreground of an item in slot
Just draw something else over the top. I do something similar here: https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/industry/client/gui/GuiContainerFilter.java#L67-L71 It draws a section of the gui texture I already have over the slots (and behind items) any time the TE says that it doesn't have any filters (i.e. your "when some condition is true"). The visual ends up looking like this: http://vignette1.wikia.nocookie.net/reasonable-realism/images/7/73/Filter_no.png/revision/latest?cb=20150419162009[/img]- Cancelling updates vs tickspeeds
No idea. You might be trying to do something that isn't really supported by the existing hooks.- Cancelling updates vs tickspeeds
Subscribe to LivingUpdateEvent.Pre and cancel some.- Cancelling updates vs tickspeeds
...give them a speed modifier attribute? It's what the Speed/Slowness potions do (mechanically, they also do other things like particles). - Texture not loading in minecraft
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.