-
How to localise an item in code?
Thanks! What I want to do is have a few localisations such as metal.tin and metal.copper, and match them with component.plate and component.powder, so I can combine them to make Tin Plate, Tin Powder, Copper Plate, Copper Powder, etc.
-
How to localise an item in code?
So how would I localise an item's name in code, as opposed to a language file?
-
[1.7.10] Replacing certain areas of a texture with parts from another texture?
This is somewhat difficult to explain. Basically, I want to dynamically assign textures to a few items. I have it all done, however I do not know how to do this one bit: Let me show you an image first, then I will explain. Let's say I have texture A, and I want to replace the green part with texture C. What I want to happen, is it to replace the green part, and replace that part with the exact spot from texture c. Same thing for textures B and C. How would I go about doing this? (Note: these are simply demonstrative images, not the actual textures I wish to use. Also, sorry if this is an awful explanation.) Also, while I know this is possible in 1.7, is this even a thing that you can do in 1.8? Haven't messed with the model files much, but wouldn't you need a model file for each item? That would mean it couldn't be dynamic... To clarify, I want to do this on 1.7.10, but I am curious about the possibility of doing this on 1.8.8 as well.
-
Returning true/false depending on if a block has an ore dictionary entry.
Ah, thanks for that. Nice example
-
Returning true/false depending on if a block has an ore dictionary entry.
So I was wondering how I would check if a block is registered under a certain ore dictionary entry. I assume there's a simple answer? EDIT: There's a really good example below, for future googlers!
-
[1.7.10] Any reason this code is not opening the GUI
I don't get why this isn't working! public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_) { if (!world.isRemote) { player.displayGUIWorkbench(x, y, z); } return true; }
-
Can you modify the icons next to servers via resource pack?
The icons I am referring to: http://i.imgur.com/mghuSE1.png
-
[1.7.10] Removing items from Ore Dictionary
How do you remove items from the ore dictionary? Specifically, I want to remove dustRedstone from redstone dust.
-
[1.7.10] Removing/Replacing item methods
I am interested in replacing an item's onItemUse method, in this particular case, I want to prevent redstone dust from placing redstone.
-
[1.7.10] How to allow seeds to be placed on more than one block?
Right now, I am registering my seeds with ItemSeeds and I enter the two parameters crop block and soil block. The soil block can only use one block (as far as I know) and I would like these seeds to be able to be planted on dirt, grass, farmland, podzol, etc. How would I go about this?
-
[1.7.10] Tile Entity ceases to work after world reload
Nevermind I am a failure and apparently forgot to call my tile entity registry class in my main mod class
-
[1.7.10] Tile Entity ceases to work after world reload
That's the only method in my class, but whatever, here's the full one https://gist.github.com/TheDoctorSoda/64ae68d20da74981e5db Tile Entity is registered and works perfectly fine until I relog, and it doesn't work until I replace the block.
-
[1.7.10] Tile Entity ceases to work after world reload
Here's the code for my tile entity class. I honestly don't see why it wouldn't work https://gist.github.com/TheDoctorSoda/927b3943b458270447d2
-
[1.7.10] Tile Entity ceases to work after world reload
I have a tile entity that constantly is checking if a certain block is above it, and if so, it breaks it. The block however no longer does this after the world is closed, and reopened, and you must break and replace the block to make it function again. Am I stupid?
-
[1.7.10] How to allow an item to get an enchantment?
Hmm. Should I add a new enchantment called the same thing, and does the same thing that only works on my item, or is that bad?
IPS spam blocked by CleanTalk.