![]() Go to the Package Explorer on the left side of Eclipse and right click on the com. We need to create a new java class that we will use to register our sword into Minecraft. The CreativeTab can be changed to the tab you want the sword to appear in. Once the constructor is added in, change it to remove the Material reference in the parentheses and then fill in our ExampleMod. We are defining specific rules for how our sword will be created. Think of it as how blueprints are used when creating buildings. ![]() Now what we need to do is add a constructor for our class. ![]() This lets us swing it and damage creatures as well as pick it up and drop it and any small interaction a sword will have in the code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |