I'm making a server plugin where when it's night time, you take damage because a "fog" appears at that time and "suffocates" you. The only way to keep from "suffocating" is to wear a specific "mask" which can be set in the properties file. Here's the problem, I am new to modding, and I don't know how to set this up. All I know how to do is set up a basic plugin, for like single commands.
I'm trying to create a recipe for some blocks and I am really confused about it. I'm trying to get this new kind of wood that i added called Netherwood to output some Netherplanks kinda how regular wood does it. But, I can't figure out what the method line is. I have a few of the blocks finished, I just need to know how to write the method... I am new to modding so I'm really confused.
public staticfinal Block yourBlock = (new BlockYourBlock(2200, 1)).setHardness(0.5F).setResistance(10.0F).setBlockName("yourBlock");
"yourBlock" stands for how your block is "named" in the code (not in the game).
"BlockYourBlock" stands for the type of block you want it to be. You can replace it for example with "BlockStone", if you want it to be/behave like a stone block. If you want it to behave special, you'll have to create a class file named " Block*** " (*** stands for the name of your block type, just as the "Stone" in "BlockStone"). In this file you can define what your block should drop, what it behaves like, etc.
I got that part, but it's the recipe I'm having trouble with... I am confused on how to like, set it up, and how to make it not have errors. I'm fairly new to modding so It's really confusing.
big question how would i make a block that can only be mined by a stone pickaxe or higher
You change the block hardness at the line
".setHardness(3F)" where the 3F is how much or how long it will take to mine it. A wood pickaxe wouldn't mine through a block with 2f or higher. I think it is 2F, but Diamond has a Hardness level of 3F which a stone or wooden would not be able to mine. so mess around with it, I would also try Harvest level also.
I appreciate the tutorial! It is helping me lots! But I have one problem.
I get an error on the line below for the = new BlockNameHere and it says that it's not a file type. What do I do on this part? I don't understand on the BlockNameHere part. Do I add the Block name or do I leave it as is? I tried putting my block name and it still did the same thing.
On this line "publicstaticfinal Block nameHere =new BlockNameHere"
Any mods branched off of this will be considered Plagiarism unless given credit to DragsZombies and Electrickshock99 for the idea. Any posts made without proper credit will be reported.
so, I have an Idea for a mod but I didn't come up with it, well I came up with half, but the other goes to Electricshock99 on PlanetMinecraft since he had a brilliant idea for having Nether Villages and possibly Nether kings, so I thought, Why not Nether Kingdoms, and have basically a whole new world outside of what we know already. We are still currently coming up with more idea's and I've just started the progress of making this happen. I just also wanted to post that this belongs to Me(DragsZombies) and Electrickshock99 and if this idea is stolen, it will be reported and possibly put as plagiarism. So, This idea is not for any other use, I do like any idea's that could help with this. this is also my first mod, so I'm taking a lot on my shoulders. Thanks!
0
0
What Method should I use to allow all this?
Thanks!
DragsZombies
0
0
Thanks,
DragsZombies
0
I got that part, but it's the recipe I'm having trouble with... I am confused on how to like, set it up, and how to make it not have errors. I'm fairly new to modding so It's really confusing.
0
0
".setHardness(3F)" where the 3F is how much or how long it will take to mine it. A wood pickaxe wouldn't mine through a block with 2f or higher. I think it is 2F, but Diamond has a Hardness level of 3F which a stone or wooden would not be able to mine. so mess around with it, I would also try Harvest level also.
0
0
I get an error on the line below for the = new BlockNameHere and it says that it's not a file type. What do I do on this part? I don't understand on the BlockNameHere part. Do I add the Block name or do I leave it as is? I tried putting my block name and it still did the same thing.
On this line "publicstaticfinal Block nameHere =new BlockNameHere"
Thanks for the tutorial!
0
0
0
0
Awesome! I will be sure to try some out!
0
0