Everything posted by Draco18s
-
pre block model render call?
Question: are you making your own plant block that you want to sway in the wind? or are you trying to make all plant blocks sway in the wind?
-
I cant decompile Forge 1.9
http://lmgtfy.com/?q=set+JAVA_HOME
-
(1.7.10)Rotating block and changing blocks (tied together)
There's a way to get the direction the player is looking (EntityPlayer#getLookVec) that you can use to create an offset for which blocks to change.
-
[1.9] Custom models not texturing properly?
You need to add +0.5 to your X and Z transform offsets.
-
[1.8.9] [SOLVED] Custom log somehow gets wrong metadata
OTOH, TileEntities are more expensive than regular blocks, which is why Vanilla has two logs and two leaves rather than a TE.
-
[1.8.9] Changing Vanilla Armor Values
In order for full diamond armor to have 8/10 protection, you would need to alter each piece of armor to have less overall protection. The bar is literally a sum of all the pieces worn.
-
[1.9.4] Fruit tree
Define "fruit tree." What does this object look like? How does it behave?
-
[1.8.9] Show message and consume item on item right-click
Namely because it is unable to do so. The ItemStack doesn't have a reference to the inventory it is in, and is thereby unable to make itself null.
-
[1.8] Give custom written book to player?
Well, you'd need to do the NBT data on the ItemStack correctly. Unfortunately I cannot locate the documentation regarding this, but it would be available by looking at the WrittenBook item class.
-
Introduction and New Server for Forums!
I think it is. I just read a few threads in Modder Support, and when one of them got a new reply, every thread showed the "new" label. When I read the new reply, went back to Modder Support and refreshed the page, the "new" markers dissappeared. EDIT: If you click the "new" button on a post without a new reply, it goes to another thread which does have a new reply. This is annoying the fuck out of me. As soon as I noticed it my immediate thought was, "What'd we do downgrade our forum software?" But Larsgerrits is correct, the new button doesn't even apply to the thread it's next to:
-
[1.9] Forcing block-break events
SSP is SMP only running its own copy of the server and with only a single player connected.
-
1.7 Block wont rotate when placed. UNSOLVED
Your block gives no shits about metadata other than 0 and 1, which it uses to supply two different TileEntities.
-
[1.8.9] Drop Handler
Two random numbers like that would result in less than a 50% I think, but I'm not in a place to so the math. However, that two-numbers thing does get you a different result if you are returning a float (as compared to a uniform random), the Wald Distribution (Inverse Gaussian) uses that method.
-
[1.9] Apply redstone in a remote location
There's a reason there's not a BlockUpdateEvent fired when any block runs its update tick method: the sheer number of calls that would be made to the event bus. Reducing this to only redstone powered objects wouldn't really do much. Afterall: do you expect every dot of redstone dust to fire this event?
-
[1.8.9] Drop Handler
Make sure to check null. Not all DamageSources have a source entity.
-
[1.9.4][SOLVED] Levitate entity.
Stop using static variables any class-level variables at all inside your item class.
-
[1.9] Apply redstone in a remote location
Yeah no, you're not going to be able to do that because power-able blocks check their neighbors for power. If none of their neighbors have power, they turn off. Creating a "virtual" connection like that would require replacing a block with the Redstone Block (or equivalent).
-
[1.7.10] Removing RF from storage as item is receiving energy
Presumably the method returns a value, that value being the amount inserted.
-
[1.8] Add recipes from custom furnaces to nei
Making a recipe handler takes having an existent sample to work from, as the documentation is very limited. In that, have a working one-input-one-output NEI handler https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/ores/recipes/nei/ProcessorNEI.java
-
[1.8.9] Tool Tips (Information)
Or use the passed ItemStack to differentiate.
-
[1.9] [Solved] How do I make custom potions?
There's an entire BrewingRecipe class now. Take a look at it.
-
What tells Minecraft to clip blocks like this?
Note that you cannot set the near clip plane to 0. Well, you probably can, I wouldn't expect things to work right though. You can, however, set it very very small. Like 0.001 small. http://answers.unity3d.com/questions/129030/why-is-near-clip-plane-necessary.html As for how to actually do that in MC, I have no idea.
-
[1.7.10] higher terrain generation (for deeper world)
I misread, I read "to 100 blocks" to "by 100 blocks"
-
elytra function code?
Does it use == or instance of? If the former: not easily (you will have to use events and basically duplicate all that code) If the latter: just extend ItemElytra
-
1.7.10 crash report
Support and bug reports. But long story short is you're using the wrong mod version for the version of Minecraft you are running.
IPS spam blocked by CleanTalk.