I'm thinking of doing generation, multi-textured blocks or custom mobs.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
*pester about fixing stairs tutorial* :wink.gif: (actually no rush, I know that you will get to it eventually)
But more to the point: I am trying to make a block that is climbable, like a ladder, so I copied the ladder.java file unfortunately the block doesn't actually work like a ladder, it looks like one and acts like one (in the way that I can't place it on all blocks, and if I harvest the block that it is on it breaks) but I can't climb it, also the block shows up fine when I place it but it looks like a flat piece of gravel when I am holding it. So if you could help me that would be great. Also: do you know make an item give a potion effect on it being right clicked? Because I would need something like this:
public boolean onItemUse(ItemStack itemstack, EntityPlayer entityplayer, World world, int i, int j, int k, int l)
and then I would need something to the effect of this:
givePotionEffect(Potion.hunger.id, 30, 0, 0.8F)
but not exactly like that, as that won't work.
-Thank You-
TechGuy do you know how i can make a config file to turn my mob on and off i all ready have a config file for block id's but it comes out like this any idea how to make it not show the top part? and only show the bit underneath the date it was generated?
Um, I think that XTremity has a tutorial on that.
Also @ TechGuy: have I asked you for a potions tutorial yet? If not, could you do a custom potions tutorial? (NOT a custom potion effect, but a custom potion)
*pester about fixing stairs tutorial* :wink.gif: (actually no rush, I know that you will get to it eventually)
But more to the point: I am trying to make a block that is climbable, like a ladder, so I copied the ladder.java file unfortunately the block doesn't actually work like a ladder, it looks like one and acts like one (in the way that I can't place it on all blocks, and if I harvest the block that it is on it breaks) but I can't climb it, also the block shows up fine when I place it but it looks like a flat piece of gravel when I am holding it. So if you could help me that would be great. Also: do you know make an item give a potion effect on it being right clicked? Because I would need something like this:
public boolean onItemUse(ItemStack itemstack, EntityPlayer entityplayer, World world, int i, int j, int k, int l)
and then I would need something to the effect of this:
givePotionEffect(Potion.hunger.id, 30, 0, 0.8F)
but not exactly like that, as that won't work.
-Thank You-
I still can't figure out the stairs, they are exactly the same as normal stairs, so I don't see what is causing the problem. The ladder works because there is a piece of code in EntityPlayer that checks the collision of the player with a ladder block. Not sure if there is a way to do it without editing that. I'm not sure about the potion effect either.
TechGuy do you know how i can make a config file to turn my mob on and off i all ready have a config file for block id's but it comes out like this any idea how to make it not show the top part? and only show the bit underneath the date it was generated?
Make sure you are using the right version of minecraft's jar with the right version of MCP.
MCP56 with Minecraft 1.1
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Hey, Im sorry for annoying you or anything, But when you make the tutorial on how to make custom mobs, Could you maybe have a mac tutorial? Since mac modelers are terrible. Just terrible. FMCModeler is bad, and MCModeler is outdated ):.
Could you maybe give the mac users (and I know there are a few out there) some modelCodes? Since we can't do it ? ):.
Or maybe you know how to.. So.. Sorry, Didnt mean to bother you. Just putting it out there :biggrin.gif:.
Hey, Im sorry for annoying you or anything, But when you make the tutorial on how to make custom mobs, Could you maybe have a mac tutorial? Since mac modelers are terrible. Just terrible. FMCModeler is bad, and MCModeler is outdated ):.
Could you maybe give the mac users (and I know there are a few out there) some modelCodes? Since we can't do it ? ):.
Or maybe you know how to.. So.. Sorry, Didnt mean to bother you. Just putting it out there :biggrin.gif:.
I don't have a mac. You just have to manually code the model file. Using Techne on windows just makes it easier for beginners. You should be able to get the gist of how a model file works once I upload the tutorial. Even just looking at one in the game already could help you.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I don't have a mac. You just have to manually code the model file. Using Techne on windows just makes it easier for beginners. You should be able to get the gist of how a model file works once I upload the tutorial. Even just looking at one in the game already could help you.
Alright, cool. Just, i don't wanna sound Like a bratty pest, but.. Could you maybe make some models to give to us? with the textures? Cause I really wanted to make a mob without having to go through the trouble. Also, I don't even know how to start the model thing, even if it was in a tutorial.
Just 1 more thing, Could you.. Maybe open this code in techne? Some guy gave it to me, but He didnt give me the texutre ): Could you maybe open it in techen and get the texture out? please? Thank you! :biggrin.gif:
Alright, cool. Just, i don't wanna sound Like a bratty pest, but.. Could you maybe make some models to give to us? with the textures? Cause I really wanted to make a mob without having to go through the trouble. Also, I don't even know how to start the model thing, even if it was in a tutorial.
Just 1 more thing, Could you.. Maybe open this code in techne? Some guy gave it to me, but He didnt give me the texutre ): Could you maybe open it in techen and get the texture out? please? Thank you! :biggrin.gif:
I'll try and open that code again tomorrow, the import menu on my techne isn't working for some reason.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I still can't figure out the stairs, they are exactly the same as normal stairs, so I don't see what is causing the problem. The ladder works because there is a piece of code in EntityPlayer that checks the collision of the player with a ladder block. Not sure if there is a way to do it without editing that. I'm not sure about the potion effect either.
Yeh, you have. I just didn't add it to the list.
Ok, well thanks anyway, and sorry to bug you about it.
Edit: TechGuy! I found out what is wrong with your stairs, you needed to add this line to the block file:
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, int i, int j, int k)
{
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
}
So that it would look like this:
import java.util.Random;
public class BlockNameStairs extends Block
{
public BlockNameStairs(int i, int j)
{
super(i, j, Material.wood);
}
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, int i, int j, int k)
{
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
}
With the rest below it. I tested it and it has worked! both in the fact that I can walk over it and in the way that I can hit it were ever and actually harvest it! So thanks for the tutorial but you may want to add this :biggrin.gif:
Ok, well thanks anyway, and sorry to bug you about it.
Edit: TechGuy! I found out what is wrong with your stairs, you needed to add this line to the block file:
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, int i, int j, int k)
{
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
}
So that it would look like this:
import java.util.Random;
public class BlockNameStairs extends Block
{
public BlockNameStairs(int i, int j)
{
super(i, j, Material.wood);
}
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, int i, int j, int k)
{
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
}
With the rest below it. I tested it and it has worked! both in the fact that I can walk over it and in the way that I can hit it were ever and actually harvest it! So thanks for the tutorial but you may want to add this :biggrin.gif:
Thanks! :biggrin.gif: I didn't realize I didn't have that. I got parts of the stair class one by one. Must have missed that bit.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Thanks, I appreciate it :smile.gif: Not quite sure what you mean with your request though.
sorry I got back late. What I mean is if you want to make a block like stairs (or a slab, or a redstone power block etc.), how to go into the base classes of minecraft and figure out how to initialize all of the things like Block.RestonePowerIsReceiving (i don't know if that's actually it), and make other things occur. Also, I know that that this is out of the blue but an entity tutorial would be appreciated.
together they are powerful beyond imagination."
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumBut more to the point: I am trying to make a block that is climbable, like a ladder, so I copied the ladder.java file unfortunately the block doesn't actually work like a ladder, it looks like one and acts like one (in the way that I can't place it on all blocks, and if I harvest the block that it is on it breaks) but I can't climb it, also the block shows up fine when I place it but it looks like a flat piece of gravel when I am holding it. So if you could help me that would be great. Also: do you know make an item give a potion effect on it being right clicked? Because I would need something like this: and then I would need something to the effect of this: but not exactly like that, as that won't work.
-Thank You-
I don't know where to put the code ): I tried modelTehMob (I picked any name for the model)
But it had too many errors, Please please please pelase please please please help me?
Link: http://www.minecraftforum.net/topic/1048241-mob-model-code-where-do-i-put-it-and-use-it/page__gopid__12997461#entry12997461
Thanks
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumWere did you find out how to make the config file? Because, I would love to know and I can't find it myself.
Um, I think that XTremity has a tutorial on that.
Also @ TechGuy: have I asked you for a potions tutorial yet? If not, could you do a custom potions tutorial? (NOT a custom potion effect, but a custom potion)
That fixed the problem thanks!
that's just it-I'm using a fresh jar.
I like to play FTB with some additions. Also custom modsets are awesome!
I still can't figure out the stairs, they are exactly the same as normal stairs, so I don't see what is causing the problem. The ladder works because there is a piece of code in EntityPlayer that checks the collision of the player with a ladder block. Not sure if there is a way to do it without editing that. I'm not sure about the potion effect either.
I don't think you can. That is just the way it works. Depends how you wrote the config file writer code though I suppose.
Yeh, you have. I just didn't add it to the list.
I don't know sorry.
Make sure you are using the right version of minecraft's jar with the right version of MCP.
MCP56 with Minecraft 1.1
together they are powerful beyond imagination."
Could you maybe give the mac users (and I know there are a few out there) some modelCodes? Since we can't do it ? ):.
Or maybe you know how to.. So.. Sorry, Didnt mean to bother you. Just putting it out there :biggrin.gif:.
I don't have a mac. You just have to manually code the model file. Using Techne on windows just makes it easier for beginners. You should be able to get the gist of how a model file works once I upload the tutorial. Even just looking at one in the game already could help you.
together they are powerful beyond imagination."
Alright, cool. Just, i don't wanna sound Like a bratty pest, but.. Could you maybe make some models to give to us? with the textures? Cause I really wanted to make a mob without having to go through the trouble. Also, I don't even know how to start the model thing, even if it was in a tutorial.
Just 1 more thing, Could you.. Maybe open this code in techne? Some guy gave it to me, but He didnt give me the texutre ): Could you maybe open it in techen and get the texture out? please? Thank you! :biggrin.gif:
EDIT: Forgot to give you the code *DERP*
package net.minecraft.src; public class ModelChocoSlime extends ModelBase { public ModelChocoSlime() { float scale = 0F; face = new ModelRenderer(this, 0, 0); face.addBox(0F, -4F, 0F, 8, 18, 16, scale); arm1 = new ModelRenderer(this, 0, 34); arm1.addBox(0F, -2F, 16F, 8, 18, 8, scale); arm2 = new ModelRenderer(this, 32, 34); arm2.addBox(0F, -2F, -8F, 8, 18, 8, scale); leg1 = new ModelRenderer(this, 80, 0); leg1.addBox(0F, 14F, 0F, 8, 10, 8, scale); leg2 = new ModelRenderer(this, 48, 0); leg2.addBox(0F, 14F, 8F, 8, 10, 8, scale); } public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); face.render(f5); arm1.render(f5); arm2.render(f5); leg1.render(f5); leg2.render(f5); } public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5) { super.setRotationAngles(f, f1, f2, f3, f4, f5); } ModelRenderer face; ModelRenderer arm1; ModelRenderer arm2; ModelRenderer leg1; ModelRenderer leg2; }Thank you!
What kind of models?
I'll try and open that code again tomorrow, the import menu on my techne isn't working for some reason.
together they are powerful beyond imagination."
Alright thank you soo much! If only I could +1 100 times! You know what? Ill +1 each reply you made !! :biggrin.gif:
*Rating your profile now*
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumOk, well thanks anyway, and sorry to bug you about it.
Edit: TechGuy! I found out what is wrong with your stairs, you needed to add this line to the block file:
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, int i, int j, int k) { setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F); }So that it would look like this:
import java.util.Random; public class BlockNameStairs extends Block { public BlockNameStairs(int i, int j) { super(i, j, Material.wood); } public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, int i, int j, int k) { setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F); }With the rest below it. I tested it and it has worked! both in the fact that I can walk over it and in the way that I can hit it were ever and actually harvest it! So thanks for the tutorial but you may want to add this :biggrin.gif:
you should decompile your mcp with this steps:
1.Open Terminal.
2.Then paste: cd and drag the mcp folder and press enter.
3.Then paste: bash decompile.sh
Then you will decompile mcp in the right way. :biggrin.gif:
Thanks! :biggrin.gif: I didn't realize I didn't have that. I got parts of the stair class one by one. Must have missed that bit.
together they are powerful beyond imagination."
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumNo problem, just glad that I could get it to work. This way the tutorial should be usable to everyone.
sorry I got back late. What I mean is if you want to make a block like stairs (or a slab, or a redstone power block etc.), how to go into the base classes of minecraft and figure out how to initialize all of the things like Block.RestonePowerIsReceiving (i don't know if that's actually it), and make other things occur. Also, I know that that this is out of the blue but an entity tutorial would be appreciated.
== MCP 5.6 (data: 5.6, client: 1.1, server: 1.1) == > Recompiling client... '"C:\Program Files\Java\jdk1.6.0_31\bin\javac.exe" -g -source 1.6 -target 1.6 -c lasspath "lib;lib\*;jars\bin\minecraft.jar;jars\bin\jinput.jar;jars\bin\lwjgl.ja r;jars\bin\lwjgl_util.jar" -sourcepath src\minecraft -d bin\minecraft src\minecr aft\net\minecraft\client\*.java src\minecraft\net\minecraft\isom\*.java src\mine craft\net\minecraft\src\*.java conf\patches\ga.java conf\patches\Start.java' fai led : 1 == ERRORS FOUND == src\minecraft\net\minecraft\src\mod_cupcake.java:5: cannot find symbol symbol : class item location: class net.minecraft.src.mod_cupcake public static final item cupcake = new itemfood (2000, 4, 1F, true). setItemName("cupcake"); ^ src\minecraft\net\minecraft\src\mod_cupcake.java:5: cannot find symbol symbol : class itemfood location: class net.minecraft.src.mod_cupcake public static final item cupcake = new itemfood (2000, 4, 1F, true). setItemName("cupcake"); ^ src\minecraft\net\minecraft\src\mod_cupcake.java:9: cannot find symbol symbol : variable Modloader location: class net.minecraft.src.mod_cupcake cupcake.iconIndex = Modloader.addOverride("/gui/ items.png", "/bin/Pcupcake.png"); ^ src\minecraft\net\minecraft\src\mod_cupcake.java:10: cannot find symbol symbol : variable Modloader location: class net.minecraft.src.mod_cupcake Modloader.AddName(cupcake, "Plain Cupcak e"); ^ src\minecraft\net\minecraft\src\mod_cupcake.java:11: cannot find symbol symbol : variable Modloader location: class net.minecraft.src.mod_cupcake Modloader.AddRecipe(new ItemStack(cupcak e, 1), new Object [] {"*", Character.valueOf('*'), Block.dirt}); ^ 5 errors ================== FATAL ERROR Traceback (most recent call last): File "runtime\recompile.py", line 31, in recompile commands.recompile(CLIENT) File "C:\Users\bobby\Desktop\Modding files\Mcp\Cupcake v.1.0 (for 1.1)\runtime \commands.py", line 736, in recompile self.runcmd(forkcmd) File "C:\Users\bobby\Desktop\Modding files\Mcp\Cupcake v.1.0 (for 1.1)\runtime \commands.py", line 779, in runcmd raise CalledProcessError(returncode, forkcmd, output) CalledProcessError: Command '"C:\Program Files\Java\jdk1.6.0_31\bin\javac.exe" - g -source 1.6 -target 1.6 -classpath "lib;lib\*;jars\bin\minecraft.jar;jars\bin\ jinput.jar;jars\bin\lwjgl.jar;jars\bin\lwjgl_util.jar" -sourcepath src\minecraft -d bin\minecraft src\minecraft\net\minecraft\client\*.java src\minecraft\net\mi necraft\isom\*.java src\minecraft\net\minecraft\src\*.java conf\patches\ga.java conf\patches\Start.java' returned non-zero exit status 1 Press any key to continue . . .I have even posted a topic on this and diddn't get much help ):
(Hey techguy your from QLD Same rock on dude. :biggrin.gif:)