Everything posted by Abastro
-
[1.8][SOLVED] Attribute Modifier Help
=/ =; @NovaViper So did you check if the dog's owner is not null?
-
[1.8][SOLVED] Attribute Modifier Help
This is wrong. System.out.println("hello" + null); // prints "hellonull" So it was not clear; I'm blind. Sorry for that.
-
[1.7.10] Get a block to drop an ore dict block
Drop your own block registered with the oreDict, the translation to any other basalt is what the ore dict DOES. He might not want to add his own basalt block. Yes dropping another mods oredict item is not appropriate, but anyway he could want that. @fallingkitten Anyway, as @Draco18 said creating your own Bassalt block and registering it to the OreDict is better way.
-
[1.8][SOLVED] Attribute Modifier Help
There is nothing wrong with your logic, you should only take care of exceptions. You should initialize tamedString to valid String, not null. (Show it as 'Not Tamed', etc.)
-
[1.8][SOLVED] Attribute Modifier Help
But it is clear that the line this.fontRendererObj.drawString("Tamed: " + tamedString, topX + 190, topY - 140, 0xFFFFFF); can throw the NPE with tamedString. See the code in GuiDogInfo#drawScreen(int xMouse, int yMouse, float partialTickTime). tamedString is local variable in the method, it is initialized as null, and it is only substituted with valid value only if the dog is tamed. So it throws NPE otherwise.
-
[1.8][SOLVED] Attribute Modifier Help
It is null when the dog is not tamed. See the code, all substitutions to tamedString is in if(this.dog.isTamed())
-
[1.8][SOLVED] Attribute Modifier Help
No. The tamedString is null. I already said: When the dog entity is not tamed, tamedString remains null and makes crash. You should initialize it to something other like "Not Tamed" instead of null.
-
[1.7.10] Get a block to drop an ore dict block
1. You should understand basic java for modding. 2. OreDictionary#getOres(String name) gives List of Itemstack registered with the oredict id. You could use first entry of it. (ofc you should check if the list is empty before that)
-
[1.7.10]Checking if itemstack is block/item
ItemStack#getItem() gives the item of the ItemStack.
-
[1.7.10][SOLVED]Changing model at runtime
You can just make the model render different via any data of the entity...
-
[1.8][SOLVED] Attribute Modifier Help
When the dog entity is not tamed, tamedString remains null and makes crash. You should initialize it to something other like "Not Tamed" instead of null.
-
[1.8] Issues with village crop spawning!
Screenshot of the generated crops would be needed to diagnose this issue.
-
[UNSOLVED][1.7.10] Rendering custom entity texture
As unchangeable EntityPainting.EnumArt plays important role on the render class, you should get rid of that. + Do not copy paste the code unless you understand what it does.
-
Opening a player's inventory on another player's screen
Let the server send the container contents.
-
[1.7.10] [Solved] Structures won't generate in custom dimension...
What.. Why are you checking equals with biomeName and Biome itself? It cannot be same. As they are singletons to the biome, checking biomegenbase == BiomeGenBase.plains would be just okay.
-
[1.7.10] How to save config into the server before world is loaded?
I just want some more explanations and solutions..
-
[1.7.10] Need my item to get the players display name
No, I'm sure that something is making NBT to null. So it is needed to confirm that and identify this symptom.
-
[1.7.10] Need my item to get the players display name
Try enchanting the item with Unbreaking. (Any damageable item would be able to have Unbreaking enchantment)
-
[1.7.10] Need my item to get the players display name
So it doesn't also contain the enchantment tag? It's impossible. Are the enchantments of the item visible?
-
[1.7.10] Need my item to get the players display name
It's very strange behavior.. Can your item be stacked?
-
[minecraft 1.8] block breaking events
Do not call event handler methods yourself. and, HarvestDropsEvent should be used to change drops, since you cannot change drops with BreakEvent.
-
[1.7.10]Setting enchantment to a certain item
;I had mistaken GameRegistry#registerCustomItemStack with Item#getSubItems. It is for mods who want to find some Item with findItemStack.
-
[minecraft 1.8] block breaking events
Post your current code.
-
How many blocks per tick max is recommended for custom structure generation?
Yes, It's due to the light update. I think changing flag parameter of the setBlock would make the light update not done during placing blocks..
-
[1.7.10] Changing a dropped item when it comes in contact with a fluid?
There seems to be no event for that. You should use EntityItem#onUpdate(). EDIT: You should spawn custom EntityItem when the item is dropped. @Draco18s: Oh. I didn't know that;
IPS spam blocked by CleanTalk.