ZidMC
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Unanswered?] changing icon of a block? [1.5_01] [2.11]

5 posters

Go down

[Unanswered?] changing icon of a block? [1.5_01] [2.11] Empty [Unanswered?] changing icon of a block? [1.5_01] [2.11]

Post by dsm1891 Sun Apr 24, 2011 9:30 am

^?


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 >Neutral lol

(ive tried iconindex override but it doesnt work for blocks only items)

dsm1891
Crafter

Posts : 22
Join date : 2011-04-24

Back to top Go down

[Unanswered?] changing icon of a block? [1.5_01] [2.11] Empty Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]

Post by Ziddia Sun Apr 24, 2011 10:40 am

I don't quite understand the question. What Is it you want specifically? A custom texture for your block?

Ziddia
Admin
Admin

Posts : 168
Join date : 2011-04-22

https://zidmc.forumotion.com

Back to top Go down

[Unanswered?] changing icon of a block? [1.5_01] [2.11] Empty Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]

Post by dsm1891 Sun Apr 24, 2011 11:19 am

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

Back to top Go down

[Unanswered?] changing icon of a block? [1.5_01] [2.11] Empty Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]

Post by Ziddia Sun Apr 24, 2011 11:21 am

Yes please, I need your code

Ziddia
Admin
Admin

Posts : 168
Join date : 2011-04-22

https://zidmc.forumotion.com

Back to top Go down

[Unanswered?] changing icon of a block? [1.5_01] [2.11] Empty Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]

Post by dsm1891 Sun Apr 24, 2011 11:38 am

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");
   }
   }

the problem is when i place it its fine, it looks how i want it too, but when i have it in my inventory its stone(texture)

Neutral it was working before, now i get an error when i run it

error
Spoiler:

dsm1891
Crafter

Posts : 22
Join date : 2011-04-24

Back to top Go down

[Unanswered?] changing icon of a block? [1.5_01] [2.11] Empty Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]

Post by HiPPiE Sun Apr 24, 2011 11:42 am

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.


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

Back to top Go down

[Unanswered?] changing icon of a block? [1.5_01] [2.11] Empty Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]

Post by dsm1891 Sun Apr 24, 2011 11:44 am

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

Back to top Go down

[Unanswered?] changing icon of a block? [1.5_01] [2.11] Empty Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]

Post by HiPPiE Sun Apr 24, 2011 11:48 am

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

Back to top Go down

[Unanswered?] changing icon of a block? [1.5_01] [2.11] Empty Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]

Post by madcrazydrumma Sun Apr 24, 2011 11:51 am

maybe lol... im not going to try until something is done correctly Wink
and hippie i thought you had to go already?
hmm...

madcrazydrumma
ZidMC Coder
ZidMC Coder

Posts : 61
Join date : 2011-04-22
Age : 28
Location : Dubai

Back to top Go down

[Unanswered?] changing icon of a block? [1.5_01] [2.11] Empty Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]

Post by dsm1891 Sun Apr 24, 2011 11:55 am

madcrazydrumma wrote:maybe lol... im not going to try until something is done correctly Wink
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

Back to top Go down

[Unanswered?] changing icon of a block? [1.5_01] [2.11] Empty Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]

Post by HiPPiE Sun Apr 24, 2011 12:48 pm

madcrazydrumma wrote:maybe lol... im not going to try until something is done correctly Wink
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

Back to top Go down

[Unanswered?] changing icon of a block? [1.5_01] [2.11] Empty Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]

Post by Will.Ez Mon Apr 25, 2011 1:21 am

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
Will.Ez
Iron Miner

Posts : 52
Join date : 2011-04-22
Age : 27

Back to top Go down

[Unanswered?] changing icon of a block? [1.5_01] [2.11] Empty Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]

Post by Ziddia Mon Apr 25, 2011 5:18 am

Where it says "add the following lines". Well... You add those lines xD

Ziddia
Admin
Admin

Posts : 168
Join date : 2011-04-22

https://zidmc.forumotion.com

Back to top Go down

[Unanswered?] changing icon of a block? [1.5_01] [2.11] Empty Re: [Unanswered?] changing icon of a block? [1.5_01] [2.11]

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum