Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Custom Tool Problem 1.5.1
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 0
fajanser

Custom Tool Problem 1.5.1

By fajanser, April 4, 2013 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

fajanser    1

fajanser

fajanser    1

  • Tree Puncher
  • fajanser
  • Members
  • 1
  • 7 posts
Posted April 4, 2013

Hi, I've been working on my first mod and occured a problem, I'll paste the errored lines only, becouse my code is a mess, if someone could help me, i would be pleased, thanks :)

 

public static final EnumToolMaterial TOPAZM=EnumHelper.addToolMaterial("TOPAZ", 2, 2025, 5.0F, 5, ;

 

public static int topazPickaxeID=5006

 

The error is marked here:

topazPickaxe = new TopazPickaxe(topazPickaxeID, TOPAZM).setUnlocalizedName("topazPickaxe");

 

and the pickaxe class:

package mods.mohsminerals.common.items;

import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.ItemPickaxe;

public class TopazPickaxe extends ItemPickaxe {

public TopazPickaxe(int par1, EnumToolMaterial par2EnumToolMaterial) {
	super(par1, par2EnumToolMaterial);
}

}

 

  • Quote

Share this post


Link to post
Share on other sites

elantzb    11

elantzb

elantzb    11

  • Tree Puncher
  • elantzb
  • Members
  • 11
  • 25 posts
Posted April 4, 2013

check to see if TOPAZM is null when your tool is created.

 

Also, give us console output.

 

Might be the problem that I mentioned in this post:http://www.minecraftforge.net/forum/index.php/topic,7317.0.html

  • Quote

Share this post


Link to post
Share on other sites

fajanser    1

fajanser

fajanser    1

  • Tree Puncher
  • fajanser
  • Members
  • 1
  • 7 posts
Posted April 4, 2013

Thanks a lot :), Your quickfix worked. You have my gratitude, Sir :)

 

The error log was similar to the one on Your topic, but i don't think it will be needed anymore ;)

  • Quote

Share this post


Link to post
Share on other sites

elantzb    11

elantzb

elantzb    11

  • Tree Puncher
  • elantzb
  • Members
  • 11
  • 25 posts
Posted April 4, 2013
;) Glad to have helped, hope that my thread gets more attention.
  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • DragonITA
      How create a custom mob / entity in 1.14 and above

      By DragonITA · Posted 39 minutes ago

      Why you resolved it.
    • DragonITA
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By DragonITA · Posted 45 minutes ago

      I want add a screenshoot.
    • DragonITA
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By DragonITA · Posted 48 minutes ago

      Ok, i have tried with making something, and the Unicorn spawn, but without a texture. The model is just like a white Brick it dosent have a texture.
    • diesieben07
      [1.12.2] Register EntityEntry

      By diesieben07 · Posted 1 hour ago

      Coremods are not officially supported on this forum, but that would be a way to change it, yes.
    • diesieben07
      Game crashing when the block is activated

      By diesieben07 · Posted 1 hour ago

      You don't own this domain. This makes no sense. One tile entity class registered as two tile entity types? What are you trying to achieve? You did not register this tile entity class.
  • Topics

    • Bantix
      9
      How create a custom mob / entity in 1.14 and above

      By Bantix
      Started September 2

    • DragonITA
      50
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By DragonITA
      Started December 9

    • 56zt45z4th
      3
      [1.12.2] Register EntityEntry

      By 56zt45z4th
      Started Friday at 06:34 PM

    • jun2040
      10
      Game crashing when the block is activated

      By jun2040
      Started Thursday at 04:51 PM

    • daylite
      3
      server tick loop

      By daylite
      Started 10 hours ago

  • Who's Online (See full list)

    • nachillodr
    • SamLikeHam
    • matt1999rd
    • GDavid
    • reyenderman_MC
    • hohserg
    • dylandmrl
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Custom Tool Problem 1.5.1
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community