Make Stone Fence's block class extend the original fence class and only override what you need to. That way it can gain any changes to wooden fences, like my FencesUnleashed mod.
Thanks to the tip, I updated it.
Actually, come to think of it, you don't even need a block class. You can just create a new object for the fence block that uses the texture of cobble instead of planks, is broken down with a pickaxe, and is a little tougher. All doable within the mod_ class.
Actually, come to think of it, you don't even need a block class. You can just create a new object for the fence block that uses the texture of cobble instead of planks, is broken down with a pickaxe, and is a little tougher. All doable within the mod_ class.
Actually, to do that, I would have to modify the fence block (if not, then I don't know enough), since it takes no parameters. (It's just "new BlockFence()")
Actually, to do that, I would have to modify the fence block (if not, then I don't know enough), since it takes no parameters. (It's just "new BlockFence()")
You said it yourself. :wink.gif: All you have to do is make a new BlockFence that uses the texture of cobblestone. Default fences are set as:
new BlockFence(85, 4).setHardness(2.0F).setResistance(5F).setStepSound(soundWoodFootstep).func_20012_a("fence");
as in ID 85, texture index 4. To make cobble fences, try this:
new BlockFence(<Unique ID>, 16).setHardness(2.0F).setResistance(10F).setStepSound(soundStoneFootstep).func_20012_a("Stone Fence");
Then also add a ToolUtils line (where the AddName and RegisterBlock methods are called) to have them harvested with a pickaxe.
ToolUtils.registerBlocks(ToolUtils.Type.PICKAXE, new Block[] { <Block Name> });
Actually, to do that, I would have to modify the fence block (if not, then I don't know enough), since it takes no parameters. (It's just "new BlockFence()")
You said it yourself. :wink.gif: All you have to do is make a new BlockFence that uses the texture of cobblestone. Default fences are set as:
new BlockFence(85, 4).setHardness(2.0F).setResistance(5F).setStepSound(soundWoodFootstep).func_20012_a("fence");
as in ID 85, texture index 4. To make cobble fences, try this:
new BlockFence(<Unique ID>, 16).setHardness(2.0F).setResistance(10F).setStepSound(soundStoneFootstep).func_20012_a("Stone Fence");
Then also add a ToolUtils line (where the AddName and RegisterBlock methods are called) to have them harvested with a pickaxe.
ToolUtils.registerBlocks(ToolUtils.Type.PICKAXE, new Block[] { <Block Name> });
Actually, I changed it to use BlockFence, but it still counts as a wooden object (I can't change that).
And thanks for the ToolUtils thing, I'll do that. EDIT: ???? Can't find a ToolUtils.
Quote from Freakeh7 »
I guess that since Wildgrass now features lillypads that are created by putting a flower on water that your Flower mod would clash with it right?
EDit: Yep both use the qg.class, ah well the idea is great but I would like to keep my lillypads!
Actually, I changed it to use BlockFence, but it still counts as a wooden object (I can't change that).
And thanks for the ToolUtils thing, I'll do that. EDIT: ???? Can't find a ToolUtils.
Try adding material.rock into the block's parameters.
new BlockFence(<Unique ID>, 16, Material.rock).setHardness(2.0F).setResistance(10F).setStepSound(Block.soundStoneFootstep).func_20012_a("Stone Fence");
Even though it's defined in the the BlockFence class instead of Block, it just might work. If not then I guess you have no choice but to run with the dummy class that extends BlockFence. Which is acutally pretty stupid that you'd have to but that's the way Notch did it so that's the way you have to abide to. :tongue.gif:
A 2x2 square of sugar. Sorry, I should post the recipes.
EDIT: And yes, I'm going to make marshmallows. I've just been busy.
Quote from Roundaround »
Try adding material.rock into the block's parameters.
new BlockFence(<Unique ID>, 16, Material.rock).setHardness(2.0F).setResistance(10F).setStepSound(Block.soundStoneFootstep).func_20012_a("Stone Fence");
Even though it's defined in the the BlockFence class instead of Block, it just might work. If not then I guess you have no choice but to run with the dummy class that extends BlockFence. Which is acutally pretty stupid that you'd have to but that's the way Notch did it so that's the way you have to abide to. :tongue.gif:
A 2x2 square of sugar. Sorry, I should post the recipes.
Quote from Roundaround »
Try adding material.rock into the block's parameters.
new BlockFence(<Unique ID>, 16, Material.rock).setHardness(2.0F).setResistance(10F).setStepSound(Block.soundStoneFootstep).func_20012_a("Stone Fence");
Even though it's defined in the the BlockFence class instead of Block, it just might work. If not then I guess you have no choice but to run with the dummy class that extends BlockFence. Which is acutally pretty stupid that you'd have to but that's the way Notch did it so that's the way you have to abide to. :tongue.gif:
Hey, do you mind making a setting file, one that opens with notepad, where we can change the Ids so we can work around conflicts with other mods? Thanks
Sorry, my computer's broken (again!).
I'll continue modding once it's fixed.
Quote from Tanuki_Shiro »
Hey, do you mind making a setting file, one that opens with notepad, where we can change the Ids so we can work around conflicts with other mods? Thanks
I'll try to learn how to do that once I can use my computer again.
I love your Sugarcraft mod but I was kinda hoping for a semi-transparent caramel and not a dark opaque caramel block. Is there anyway you could try and do that? Anyway other than that I love your mod, here have some diamonds:
I love your Sugarcraft mod but I was kinda hoping for a semi-transparent caramel and not a dark opaque caramel block. Is there anyway you could try and do that? Anyway other than that I love your mod, here have some diamonds:
Haha. That's what I wanted to see, too. Kinda like honey. Then we can use it as the roof of the sugar house. ;p
Actually, come to think of it, you don't even need a block class. You can just create a new object for the fence block that uses the texture of cobble instead of planks, is broken down with a pickaxe, and is a little tougher. All doable within the mod_ class.
https://modrinth.com/user/Roundaround
Actually, to do that, I would have to modify the fence block (if not, then I don't know enough), since it takes no parameters. (It's just "new BlockFence()")
You said it yourself. :wink.gif: All you have to do is make a new BlockFence that uses the texture of cobblestone. Default fences are set as:
as in ID 85, texture index 4. To make cobble fences, try this:
Then also add a ToolUtils line (where the AddName and RegisterBlock methods are called) to have them harvested with a pickaxe.
https://modrinth.com/user/Roundaround
EDit: Yep both use the qg.class, ah well the idea is great but I would like to keep my lillypads!
Actually, I changed it to use BlockFence, but it still counts as a wooden object (I can't change that).
And thanks for the ToolUtils thing, I'll do that. EDIT: ???? Can't find a ToolUtils.
Sorry, I don't know how to change that. D:
Also how do you craft sugercubes
Try adding material.rock into the block's parameters.
Even though it's defined in the the BlockFence class instead of Block, it just might work. If not then I guess you have no choice but to run with the dummy class that extends BlockFence. Which is acutally pretty stupid that you'd have to but that's the way Notch did it so that's the way you have to abide to. :tongue.gif:
And the ToolUtils thread can be found here.
To use ToolUtils with MCP, you're going to need an edited deobfuscated source.
Here you go. :smile.gif:
https://modrinth.com/user/Roundaround
A 2x2 square of sugar. Sorry, I should post the recipes.
EDIT: And yes, I'm going to make marshmallows. I've just been busy.
Nope, can't change material that way. But I'll make it use the ToolUtils thing. Thanks!
Poop that means it conflicts with mo creatures
Xie's Mods: Cooking Mod, Farming, Mod Hunger Mod and Food Stacking Mod(Bv1.3, MLv5)
I'll continue modding once it's fixed.
I'll try to learn how to do that once I can use my computer again.
Haha. That's what I wanted to see, too. Kinda like honey. Then we can use it as the roof of the sugar house. ;p
Xie's Mods: Cooking Mod, Farming, Mod Hunger Mod and Food Stacking Mod(Bv1.3, MLv5)
Yus, exactly
And all of the function names in the other classes are different:
Is this normal with MCP 2.9?
I completely agree. I mostly make escapecraft-esque maps, and your sugar glass mod is irreplaceable. It allows for simply awesome engineering projects