Jump to content

Recommended Posts

Posted

Hello, everybody.

I'm making a lot of tools for my mod and these tools includes 50 different types of axe.

But all of my axe have the same attack damage.

package com.H_SerhatY.mstm.objects.tools;

import com.H_SerhatY.mstm.Main;
import com.H_SerhatY.mstm.init.ItemInit;
import com.H_SerhatY.mstm.util.IHasModel;

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemAxe;
import net.minecraft.item.Item.ToolMaterial;

public class ToolAxe extends ItemAxe implements IHasModel {
	
	public ToolAxe(String name, ToolMaterial material) {
		super(material, 6.0F, -3.2F);
		setUnlocalizedName(name);
		setRegistryName(name);
		setCreativeTab(CreativeTabs.TOOLS);
		ItemInit.ITEMS.add(this);
	}

	@Override
	public void registerModels() {
		Main.proxy.RegisterItemRenderer(this, 0, "inventory");
	}
}

I have this code for my axe. What should I do?

(I don't have any coding experience, only I follow the tutorials in YouTube. Therefore, please specify in a way that I can understand.)

My Mods:

More Strenghtened Tools Mod:

https://www.curseforge.com/minecraft/mc-mods/mstm

Posted
3 hours ago, H_SerhatY said:

super(material, 6.0F, -3.2F);

Huh, I wonder what these numbers do.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
5 hours ago, H_SerhatY said:

I don't have any coding experience, only I follow the tutorials in YouTube. Therefore, please specify in a way that I can understand.

First you'll probably want to get some experience in coding. Making a mod is not that easy. Second don't use IHasModel sure it works, and it was in the tutorial, but all Items have models. Why would you need an interface that says I have a model.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.