Everything posted by Draco18s
-
[1.10.2] Different code formatting?
http://www.avajava.com/tutorials/lessons/how-do-i-share-my-code-formatting-settings-with-another-user.html?page=2
-
In this mod why won't my ItemBlock models register?
A bit? It's been the wrong way for over two and a half years. It was added in Build 1.8 - 11.14.0.1292 (latest is 1.12.2 - 14.23.0.2512) which was released on Jan 29, 2015.
-
[1.12.2] Harvest Level On MetaData
That's a method in the Block class.
-
[1.12.2] Unlock recipes in RecipeBook
Technically that's an option that is disabled by default. doLimitedCrafting Whether players should only be able to craft recipes that they've unlocked first false
-
[1.12.2] Harvest Level On MetaData
override canHarvestBlock
-
modpack
1) This forum is for developers to get help developing a mod. You want General Discussion. 2) 1.7.10 is no longer supported here anyway.
-
[1.12] Modify the 'player list'
java.lang.NoSuchFieldException: field_175196_v You need to pass in both names.
-
[1.12.2] Unlock recipes in RecipeBook
Probably because you're still doing it client side.
-
[1.12] Modify the 'player list'
Use the ReflectionHelper class instead of doing it yourself. When built and released, the field will not be called "overlayPlayerList" but something like field_89034_b
-
[1.12] List of key in textures section of model json file?
Open up the model json file(s) from the Referenced Libraries -> ForgeSrc[version] -> assets.minecraft.models.block There are 8 template cube_xxx models that are easily located. For other blocks, as long as you know the name of a vanilla block that uses it, you can find its parent name from that model.
-
[1.12] List of key in textures section of model json file?
You're using cube_all as the parent model, which defines that all six sides use the texture key "#all". You want cube_bottom_top instead, which uses #top, #bottom, and #side.
-
[1.11.2] Make large biomes the default
event.getGui() is returning a GuiScreen that may be GuiCreateWorld (as GuiCreateWorld extends GuiScreen). If it is of the correct type, that's the screen you want to modify, so you get it, pass it to reflection helper, and voila. If the method doesn't like it that's what casts are for.
-
[1.11.2] Make large biomes the default
T is a superclass of T. It's basically just preventing you from putting in Foo.class and passing in an object of Type Bar, which doesn't extend Foo.
-
[1.10.2] Event that fires when a player attempts to fly (hit space bar twice?)
Note: this is client side only.
-
[1.10.2] [UNSOLVABLE] Make the player light like a torch?
It's client side only, AFAIK. And because of that, it can be more efficient, as lighting (as a mechanic) requires altering data values that are used to validate spawn locations for mobs.
-
[1.10.2] [UNSOLVABLE] Make the player light like a torch?
Moving the block isn't the lag inducing part, its the lighting update.
-
[1.12.2] Capability Won't Load/Update in Custom HUD Element
writeNBT/readNBT is for the server so that the data can be saved and loaded from the hard drive. That's it.
-
[1.12.2] Capability Won't Load/Update in Custom HUD Element
You need to sync your capability data from server to client.
-
(SOLVED) [1.11.2] player.getHeldItem(hand) always returning Air
itemstack != null Items can't be null, use .isEmpty() instead.
-
[1.10.2] [UNSOLVABLE] Make the player light like a torch?
I've also done it. And I limited lighting updates to only move the light emitting block only once the player was a sufficient distance away from it (in my case 3 or 4 blocks).
-
[1.10.2] Event that fires when a player attempts to fly (hit space bar twice?)
Please stop saying things like this and calling replies "suggestions." The only place we *can* reply to is below and this adds nothing to your request for help. Calling what we post to help a "suggestion" or "ideas" makes you sound like a YouTuber begging for people to click the like button, that what we're doing is just offering an opinion, not giving needed aid. I might be invoking a Stack Overflow-ism here, but it's noisy and gets in the way.
-
[1.10.2] [UNSOLVABLE] Make the player light like a torch?
No. The best way to go about this is creating a block that is for all intents and purposes, air, but emits light. And then placing/removing them as the player moves. And it will lag like a mofo.
-
[1.12] Entity AI not working
There's probably a mutex or priority problem here.
-
[1.10.2] [SOLVED] Different ways to cancel fall damage?
You have "Entityplayer" there, it should be "EntityPlayer" You're also missing a ) at the end of that same line. I put this code into a mod of my own, changed the reference to use vanilla's Leather Boots instead, booted up a server and two clients, equipped one with leather boots, left the other without. Used a command to teleport both players 100 blocks into the air.
-
[1.10.2] [SOLVED] Different ways to cancel fall damage?
The event fires for all players, yes. Use some if-then magic to figure out which player needs to have it cancelled.
IPS spam blocked by CleanTalk.