[Unanswered?] changing icon of a block? [1.5_01] [2.11]
5 posters
Page 1 of 1
[Unanswered?] changing icon of a block? [1.5_01] [2.11]
^?
how can you do that whiste holding it? (if i set it to stone, it will be flat stone, and i cant choose my own image)
getting angry now > lol
(ive tried iconindex override but it doesnt work for blocks only items)
how can you do that whiste holding it? (if i set it to stone, it will be flat stone, and i cant choose my own image)
getting angry now > lol
(ive tried iconindex override but it doesnt work for blocks only items)
dsm1891- Crafter
- Posts : 22
Join date : 2011-04-24
Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]
I don't quite understand the question. What Is it you want specifically? A custom texture for your block?
Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]
Ziddia wrote:I don't quite understand the question. What Is it you want specifically? A custom texture for your block?
nooo... when you hold a block's texture and when you place it is diffrent....
say ive replace block x texture with sand.
but when i hold it its a 2d version of what ever the item number is
do u want the code?
dsm1891- Crafter
- Posts : 22
Join date : 2011-04-24
Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]
Ziddia wrote:Yes please, I need your code
- Code:
package net.minecraft.src;
public class mod_redbush extends BaseMod{
public static final Block redberrybush = new Blockredberrybush(97, 1).setHardness(0.0F).setResistance(5.0F).setBlockName("Red Berry Bush");
public static final Item redberryitem = new ItemFood(1,5,false).setItemName("Red Berry");
public static final Item redicecream = new ItemFood(2,7,false).setItemName("Red Bery Ice Cream");
public mod_redbush(){
ModLoader.RegisterBlock(redberrybush);
redberrybush.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/bush/redbush.png");
redberryitem.iconIndex = ModLoader.addOverride("/gui/items.png", "/berries/redberry.png");
ModLoader.AddName(redberrybush, "Red Berry Bush");
ModLoader.AddName(redberryitem, "Red Berry");
ModLoader.AddName(redicecream, "Red Berry Ice Cream");
}
public String Version(){
return ("1.5_01");
}
}
it was working before, now i get an error when i run it
error
- Spoiler:
- java.lang.NoClassDefFoundError: Could not initialize class net.minecraft.src.mod_redbush
dsm1891- Crafter
- Posts : 22
Join date : 2011-04-24
Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]
I dont see the problem why it is showing stone texture in your inventory.
I will think about it.
Offtopic: 1 question: How do you mod for 1.5? Do you use Ziddia's mapping in mcp?
EDIT: Maybe is blockindexintexture wrong. Could you do maybe: blockindexicon?
I am new to modding so this answer may be a bit wrong.
I will think about it.
Offtopic: 1 question: How do you mod for 1.5? Do you use Ziddia's mapping in mcp?
EDIT: Maybe is blockindexintexture wrong. Could you do maybe: blockindexicon?
I am new to modding so this answer may be a bit wrong.
Last edited by HiPPiE on Sun Apr 24, 2011 11:45 am; edited 1 time in total
HiPPiE- Crafter
- Posts : 13
Join date : 2011-04-24
Age : 29
Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]
HiPPiE wrote:I dont see the problem why it is showing stone texture in your inventory.
I will think about it.
Offtopic: 1 question: How do you mod for 1.5? Do you use Ziddia's mapping in mcp?
yea :s
dsm1891- Crafter
- Posts : 22
Join date : 2011-04-24
Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]
dsm1891 wrote:HiPPiE wrote:I dont see the problem why it is showing stone texture in your inventory.
I will think about it.
Offtopic: 1 question: How do you mod for 1.5? Do you use Ziddia's mapping in mcp?
yea :s
Did you get the error after you used ziddia's mapping?
Maybe cuz the modloader mappings arent included in ziddia's mapping.
You can get the modloader mappings here: https://gist.github.com/7c932b48b75bceffd520
HiPPiE- Crafter
- Posts : 13
Join date : 2011-04-24
Age : 29
Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]
maybe lol... im not going to try until something is done correctly
and hippie i thought you had to go already?
hmm...
and hippie i thought you had to go already?
hmm...
madcrazydrumma- ZidMC Coder
- Posts : 61
Join date : 2011-04-22
Age : 28
Location : Dubai
Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]
madcrazydrumma wrote:maybe lol... im not going to try until something is done correctly
and hippie i thought you had to go already?
hmm...
it is correct, i decompiled and then cross refrenced some/
dsm1891- Crafter
- Posts : 22
Join date : 2011-04-24
Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]
madcrazydrumma wrote:maybe lol... im not going to try until something is done correctly
and hippie i thought you had to go already?
hmm...
Yea but i am sometimes quick online. Tomorrowmorning i am going back to my own house with my own pc
HiPPiE- Crafter
- Posts : 13
Join date : 2011-04-24
Age : 29
Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]
HiPPiE wrote:dsm1891 wrote:HiPPiE wrote:I dont see the problem why it is showing stone texture in your inventory.
I will think about it.
Offtopic: 1 question: How do you mod for 1.5? Do you use Ziddia's mapping in mcp?
yea :s
Did you get the error after you used ziddia's mapping?
Maybe cuz the modloader mappings arent included in ziddia's mapping.
You can get the modloader mappings here: https://gist.github.com/7c932b48b75bceffd520
where's the mapping file? i only see random words and Instruction for making Modloader 1.4_01 with MCP 2.11
and here's what inside the texting area
- Code:
These instructions to make ModLoader mods with MCP apply to:
ModLoader 1.4_01
MCP 2.11 for MC Beta 1.4_01
Now that MCP has ModLoader mappings included again, you don't need to add
them yourself anymore. Add the modloader classes to your minecraft.jar.
Decompile as usual (read the readme if unsure). Ignore the HUNK failed message
about RenderBlocks. Use regular test_game to test.
===
(For reference, these were the mappings you had to add in previous versions
of MCP to get ModLoader to work. You don't need them anymore.):
Open your conf/minecraft.rgs, add the following lines at the start:
.class ModLoader protected
.method;private ModLoader/* *
.field;private ModLoader/* *
.class BaseMod protected
.method;private BaseMod/* *
.field;private BaseMod/* *
.class mod_* protected
.method;private mod_*/* *
.field;private mod_*/* *
Will.Ez- Iron Miner
- Posts : 52
Join date : 2011-04-22
Age : 27
Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]
Where it says "add the following lines". Well... You add those lines xD
Similar topics
» [UNANSWERED]Changing texture on ticks
» [Unanswered] [1.5_01] Giving a block a GUI help?
» [UNANSWERED] Torch-Like Block Doesn't Render Right While Held
» [Unanswered] Block wont show up ingame [1.5_01]
» [Unanswered]Change block state depend on neighbor blocks
» [Unanswered] [1.5_01] Giving a block a GUI help?
» [UNANSWERED] Torch-Like Block Doesn't Render Right While Held
» [Unanswered] Block wont show up ingame [1.5_01]
» [Unanswered]Change block state depend on neighbor blocks
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum