Everything posted by Draco18s
-
[1.9.4]custom logs help
Do you have a json blockstate file?
-
Particle rotation.
Particles are explicitly rendered such that they always face the camera. Unless you mean that you want them to originate at an offset, and that offset rotates.
-
World.destroyBlock not visible by other players
The right click method runs client side. If you log out and log back in, you'll find that the block was not destroyed.
-
[1.10.2] NPE on getRegistryName
I have an IDE that formats static in italics, so I don't have that problem.
-
[1.8] [SOLVED] Mod initializes twice, can't tell why
And this is why you always change that...
-
[SOLVED] Leaf decay Event or substitute?
The event is for when any block generates drops. Do note that event.player may be null (which for natural leaf decay would be true).
-
black/purple icons in inventory(armor) [1.10]
His leggings slot isn't empty: check the player model, you can see the armor. What's going on is that one of the armor layers is not finding a model/texture (and in the case of leggings, both appear to be missing).
-
[1.10.2][CLOSED]Creating Non Existing Blocks
Rather than drawing exactly at the coordinates (e.g. (1, 1, 1 ) draw slightly offset (e.g. 1.001, 1.001, 1.001 ). You'll want to draw larger than the block and you don't care if that direction is towards or away from the camera (if it's away, then it's behind, and won't draw anyway).
-
[1.10.2] draw string in gui
You need to draw the string during drawGuiContainerForegroundLayer and drawGuiContainerForegroundLayer only. If it is dependent on a button being "pressed" you need to save that state elsewhere and reference it during drawGuiContainerForegroundLayer to draw your string.
-
[1.10.2][CLOSED] How to stop all minecraft at once without extra log lines
http://stackoverflow.com/questions/17671234/is-there-a-complete-list-of-jvm-exit-codes
-
[1.10.2][CLOSED]Creating Non Existing Blocks
I think, but I am not sure, that you are running into Z-Fighting: the lines you are drawing occur in the same z-depth (distance from the camera) as the objects you're drawing them "over" so the GPU can't correctly sort their order.
-
[1.10.2][CLOSED] How to stop all minecraft at once without extra log lines
It's a return value from main. Generally speaking "0" means "everything's fine" while other values are some variant of an error.
-
[1.10.2] NPE on getRegistryName
Betcha it's this part here: Item.getItemFromBlock(block) Just because you called GameRegistry.register on a block does not mean your block has an item.
-
[CLOSED] Github
Yeah, except that the documentation for git's command line is ass. It was written by people to say "look at how smart I am, can YOU understand this?"
-
Model File not Loading
Did you change the folder name too?
-
[1.10.2] NPE on getRegistryName
Post your code, we're not psychic.
-
What am I supposed to name my texture files?
Change this: new ModelResourceLocation("renewabilitymod:chain_mail#normal"); to new ModelResourceLocation(chainMail.getRegistryName());
-
[1.9.4] Adding a tooltip to an area of a gui
When I did this, I did it with a custom button. https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/industry/client/GuiContainerFilter.java#L56 https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/industry/client/GuiContainerFilter.java#L224-L233 Might not've been the best solution, but it worked.
-
[1.10.2] [SOLVED] Can't set blockstate after block is placed
Lets only do this on the client because the server has control over everything. Why? Raisins.
-
Bug while printing images into GUIs
drawself is being called from public final void draw(int mx, int my) in Pane
-
What am I supposed to name my texture files?
Post your block registration code, in full, along with JSON files.
-
[1.10.2][Solved] Custom block model and collision boxes
http://www.minecraftforge.net/forum/index.php/topic,41630.msg221131.html#msg221131
-
[1.10.2][Solved] Custom block model and collision boxes
That is the proper way. @Deprecated means "do not invoke this" not "this is not used."
-
[1.7.10]spawing entities create ghost entities
Why are you using Minecraft.getMinecraft().theWorld ? This is both client side only and unnecessary as a world object was passed to the method already: onItemRightClick(ItemStack item, World world, EntityPlayer player)
-
[1.10.2] Absolutely noobish Q.: How to properly register new Block?
Unlocalized names are purely for display, so yes, they still exist and don't point back to something else.
IPS spam blocked by CleanTalk.