Everything posted by Mitchellbrine
-
[1.7.10]Biome with large hills
.setHeight(new BiomeGenBase.Height(*root height*, *variation*)); (Next time, I suggest taking a look in Minecraft's code before asking on here) EDIT: I derped. That's correct now.
-
How do i make the top layer of my custom biome red wool
And a point to 1.8! 1.8: 1 1.7.10: Integer.MAX_VALUE jk, but that's pretty convenient in 1.8.
-
[1.7.10] Custom "Machine" Not letting me move items in inventory.
You're opening on Client and Server. Open on Server-only.
-
[1.7.10] Make custom machine use ore dictionary?
You don't have to iterate through the list and add a recipe for each one. That's a bad idea. Try iterating through the list and instead of checking if the item matches, check that it is in an ore dictionary entry.
-
[Solved]bindTexture("") Doesn't work with GUI Overlay[1.7.2]
bindTexture now requires a ResourceLocation. Unless you are using an older version, which if that's the case: UPDATE
-
[1.7.10] [Solved] Textures will not load
Make sure you put in a block name before the texture. Use setBlockName(*name*); though if you are using on of the newer versions of Forge, use: setUnlocalizedName(*name*);
-
How do i make the top layer of my custom biome red wool
That's a bit of a lie. When you set the topBlock, there is also a field you can set to set the topBlock's metadata. I don't know it off the top of my head (it's a field_ field) but I know it is there.
-
[1.7.10] Modify a ToolMaterial after Registration
You're not supplying it with the correct arguments. That's why it's "not applicable for the arguments".
-
[1.7.10]Making My Custom Chat Message Lime
I would suggest using the nice method already given to you. Use ChatComponentTranslation (or ChatComponentText) and add in the ChatStyle set the color to lime. (I'm not going to give you any code because I want you to learn)
-
Universal Tool API / Ore Dictionary tag for wrenches etc. ?
You could always add those items to the ore dictionary. I don't believe there is a RULE for it, but if you can make your mod add in all the wrenches into the ore dictionary. Am I getting the right idea with what I'm saying?
-
[1.7.10][SOLVED] Stone Bricks and Quartz don't have efficient tools
What is your harvest level? Show me code for you setting the harvest level.
-
[1.7.10]How to add PotionEffect(s) to custom armor
Someone please move this to Tutorials or somewhere where it needs to be!
-
Doing something when a player switches dimensions
Make the gamemode, check if the player is in the dimension and if so, check if their game mode is not the certain dimension, and if so, change their gamemode!
-
[1.7.2] Error when trying to make a machine
Um... learn Java...
-
[1.6.4] Trouble With Opacity/Backface Culling
Try using getRenderBlockPass. Taking a look at what glass does (which I highly recommend doing before asking us), I see that that would most likely be what would help.
-
[1.7.10]help onItemUse sending chat message twice [solved]
NO! DO NOT USE @SideOnly! Use if (world.isRemote) { // Do things! }
-
[1.7.10] [SOLVED] My UUID is not my UUID [old title: UUID and Name Problems]
Right, toString()! Forgot about that. What he said is correct, Bektor. Do not use getUniqueID() or getPersistentID() because they are per session (or world, I can't figure it out either).
-
[1.7.10] [SOLVED] My UUID is not my UUID [old title: UUID and Name Problems]
player.getUniqueID() is not what you think it is. Use player.getGameProfile().getId(); That will always stay the same.
-
[1.7.10] [SOLVED] My UUID is not my UUID [old title: UUID and Name Problems]
How about store the UUID and player name when the ownership is given and at some point check to see if the UUID is the same, but username isn't. If the two names are different and UUIDs are the same, then change the name then. And the addInformation is good for this stuff. Just make sure the NBT exists in the ItemStack.
-
[1.7.10]Crafting restriction
I'd check if the player doesn't have permission, and if so, search through the inventory on crafting to see if he has the item and remove it and give back the recipe ingredients. That would be a way of doing it.
-
Walking on water
World.getBlock much?
-
Walking on water
I'd make the player's motionY 0.0 when the block below him is water.
-
Find Block Anywhere in World (or a workaround)
Then it's not being called. (I'd also make it: (int)Math.floor(entity.posX) to avoid rounding issues) Is the method being called at all?
-
Find Block Anywhere in World (or a workaround)
Learn Java. Learn how to cast. Then, it won't be an issue.
-
Find Block Anywhere in World (or a workaround)
You are checking for a block at the chunk coord, not the player's coord. Check at the player's coord. - - - Also, don't close your thread if you think you've figured it out. Keep it there so people can learn from it.
IPS spam blocked by CleanTalk.