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

[ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12]

5 posters

Go down

[ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12] Empty [ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12]

Post by _1Greg1_ Tue Apr 26, 2011 8:39 pm

I'm working on making a mod in which it heavily depends on what kind of wood you have.
I can not figure out a way to make Birch logs make Birch planks, Oak logs make Oak planks, etc.

Is there any way to do this?


Last edited by _1Greg1_ on Fri Apr 29, 2011 9:09 pm; edited 2 times in total
_1Greg1_
_1Greg1_
Gold Miner

Posts : 82
Join date : 2011-04-26
Age : 27

Back to top Go down

[ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12] Empty Re: [ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12]

Post by ringingraptor Tue Apr 26, 2011 9:52 pm

Well I can't find where the different birch and oak logs are in the code, but I suppose you could create a class with each different log, but set the textures to those of oak/birch. Not sure if it would work, but it might.

ringingraptor
Crafter

Posts : 22
Join date : 2011-04-23

Back to top Go down

[ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12] Empty Re: [ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12]

Post by _1Greg1_ Tue Apr 26, 2011 10:34 pm

How would one go about doing that?
_1Greg1_
_1Greg1_
Gold Miner

Posts : 82
Join date : 2011-04-26
Age : 27

Back to top Go down

[ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12] Empty Re: [ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12]

Post by dsm1891 Wed Apr 27, 2011 6:03 am

_1Greg1_ wrote:I'm working on making a mod in which it heavily depends on what kind of wood you have.
I can not figure out a way to make Birch logs make Birch planks, Oak logs make Oak planks, etc.

Is there any way to do this?


impossable / lenghty ....
wood blocks have diffrent damages, this depends on which bark they have (say wood is block id 12, berch is 12:1 oak is 12:2 and norm is 12:3)
you either need to add an if statment somthing like:
if (blockid == 12:2){
...?
}

or change ur recipe to "x", charictor X, 12:2 (or what ever the line is)


but the most likely is to change what the tree block trops, if there is a oak tree (i know there is a tall tree) then open it and change the idblockdropped on destroyed by player (or somthing simular) to your own block, that looks the same as it, with the same quolities

dsm1891
Crafter

Posts : 22
Join date : 2011-04-24

Back to top Go down

[ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12] Empty Re: [ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12]

Post by _1Greg1_ Wed Apr 27, 2011 5:03 pm

dsm1891 wrote:
_1Greg1_ wrote:I'm working on making a mod in which it heavily depends on what kind of wood you have.
I can not figure out a way to make Birch logs make Birch planks, Oak logs make Oak planks, etc.

Is there any way to do this?


impossable / lenghty ....
wood blocks have diffrent damages, this depends on which bark they have (say wood is block id 12, berch is 12:1 oak is 12:2 and norm is 12:3)
you either need to add an if statment somthing like:
if (blockid == 12:2){
...?
}

or change ur recipe to "x", charictor X, 12:2 (or what ever the line is)


but the most likely is to change what the tree block trops, if there is a oak tree (i know there is a tall tree) then open it and change the idblockdropped on destroyed by player (or somthing simular) to your own block, that looks the same as it, with the same quolities

That wouldn't work.

Minecraft doesn't use block ID's.
It uses stuff like Block.wood
I have no idea how to tweak the amount of damage the block has...

I'll look through the code and see if I can figure it out.
_1Greg1_
_1Greg1_
Gold Miner

Posts : 82
Join date : 2011-04-26
Age : 27

Back to top Go down

[ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12] Empty Re: [ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12]

Post by _1Greg1_ Wed Apr 27, 2011 5:21 pm

Just figured this out:

Block.wood.blockID, 0 is regular
Block.wood.blockID, 1 is spruce
Block.wood.blockID, 2 is birch
_1Greg1_
_1Greg1_
Gold Miner

Posts : 82
Join date : 2011-04-26
Age : 27

Back to top Go down

[ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12] Empty Re: [ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12]

Post by Will.Ez Thu Apr 28, 2011 12:15 am

that means you put the code like
Code:
Character.valueOf('#'), Block.wood.blockID, 2
instead of
Code:
Character.valueOf('#'), Block.wood
right?
Will.Ez
Will.Ez
Iron Miner

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

Back to top Go down

[ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12] Empty Re: [ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12]

Post by _1Greg1_ Thu Apr 28, 2011 7:27 am

Will.Ez wrote:that means you put the code like
Code:
Character.valueOf('#'), Block.wood.blockID, 2
instead of
Code:
Character.valueOf('#'), Block.wood
right?

I think...
_1Greg1_
_1Greg1_
Gold Miner

Posts : 82
Join date : 2011-04-26
Age : 27

Back to top Go down

[ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12] Empty Re: [ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12]

Post by Ziddia Thu Apr 28, 2011 3:20 pm

That should work. Sorry about the late reply.

Ziddia
Admin
Admin

Posts : 168
Join date : 2011-04-22

https://zidmc.forumotion.com

Back to top Go down

[ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12] Empty Re: [ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12]

Post by _1Greg1_ Thu Apr 28, 2011 3:35 pm

Ziddia wrote:That should work. Sorry about the late reply.

No prob.


Does anyone care to make me some GFX for my mod?

PM me for details...
Don't want to give my idea out...
_1Greg1_
_1Greg1_
Gold Miner

Posts : 82
Join date : 2011-04-26
Age : 27

Back to top Go down

[ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12] Empty Re: [ANSWERED AS IT GETS] Question About Planks and Crafting Them [1.5_01] [ 2.12]

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