Everything posted by Draco18s
-
[1.10.2] Distance Between 2 Blocks
http://lmgtfy.com/?q=distance+between+points
-
Model File not Loading
itemRender(magGlass,0,"ItemMagGlass.json"); HEAVY SIGH just use Item#getRegistryName(). It comes pre prefixed with your mod ID. You also don't need the ".json" the resource location class handles that for you already.
-
World.destroyBlock not visible by other players
If there is, I'm not aware of it. The right-click method has always given me a little bit of trouble keeping things synced (dates back to the first time I started using it), so the only way to be absolutely sure is to use packets.
-
Particle rotation.
The particles on an actual entity, like a player originate at the bottom middle of the feet on something like a player using the posX, Y, and Z that I mentioned before. I can statically add to the previous comments, like doing poxY + 0.5F ( to move it up a bit) and posX + 1.0F (to shift it over), but those are static. When a player or skeleton turns around, the particles stay in the same static place. I wanted to see if there is a way to rotate that particle with where the entity (in this case, skeletons) look to keep it centered in the forehead. This post boils down to, "yes, I want them to originate at an offset, and that offset rotates."
-
World.destroyBlock not visible by other players
Ok, if it has if(!world.isRemote), then it should only run on the server and do nothing on the client at all, even if the method this is contained in was client-side-only (in which case, nothing would happen on the server either, because it would be unaware and the if-statement prevents the client from doing anything at all).
-
[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
IPS spam blocked by CleanTalk.