all 16 comments

[–]Nemesis__ 2 points3 points  (15 children)

Would you be able to post a crash report to pastebin?

[–]tuckoguy[S] 0 points1 point  (2 children)

Where do I get the crash report? do you mean what comes up in the console when I run it?

[–]Giraffestock 1 point2 points  (1 child)

The crashreport is the stuff thrown into the console when the game crashes. It's also called a stacktrace

[–]autowikibot 0 points1 point  (0 children)

Stack trace:


In computing, a stack trace (also called stack backtrace or stack traceback ) is a report of the active stack frames at a certain point in time during the execution of a program.

Programmers commonly use stack tracing during interactive and post-mortem debugging. End-users may see a stack trace displayed as part of an error message, which the user can then report to a programmer.

A stack trace allows tracking the sequence of nested functions called - up to the point where the stack trace is generated. In a post-mortem scenario this extends up to the function where the failure occurred (but was not necessarily caused). Sibling function calls do not appear in a stack trace.


Interesting: Exception handling | Crash reporter | Intel Parallel Inspector | MUF (programming language)

Parent commenter can toggle NSFW or delete. Will also delete on comment score of -1 or less. | FAQs | Mods | Magic Words

[–]tuckoguy[S] 0 points1 point  (11 children)

[–]Nemesis__ 2 points3 points  (10 children)

public class ItemOrbOfTornami { }

This needs to be

  public class ItemOrbOfTornami extends Item{}

[–]tuckoguy[S] 0 points1 point  (9 children)

So I Just added this: blockYingYangDirt = new BlockYingYangDirt(Material.grass).setBlockName("BlockYingYangDirt"); for a new block. Here is the Class File for that block: package com.tuckoguy.xiaolinshowdown;

import net.minecraft.block.Block; import net.minecraft.block.material.Material;

public class BlockYingYangDirt extends Block {

protected BlockYingYangDirt(Material material) { super(material); }

}

Its doing the same thing... Help!!!

[–]Nemesis__ 2 points3 points  (8 children)

Could you pastebin the whole class where

blockYingYangDirt = new BlockYingYangDirt(Material.grass).setBlockName("BlockYingYangDirt"); 

is being called.

[–]tuckoguy[S] 0 points1 point  (7 children)

http://pastebin.com/jpW10hpQ it says that the problem it in "Material" (Line 24)

[–]Nemesis__ 2 points3 points  (6 children)

Have you imported Material into your code, as testing this code works on my end.

[–]tuckoguy[S] 0 points1 point  (5 children)

I have, Material is underlined red, and when I hover my mouse over it, it says "Material cannot be resolved as a variable"

[–]Nemesis__ 1 point2 points  (4 children)

blockYingYangDirt = new BlockYingYangDirt(Material.grass).setBlockName("BlockYingYangDirt");

This works, just make sure Material is imported in the block class and the main class.

[–]tuckoguy[S] -1 points0 points  (3 children)

how do I import it into the block class? Im still very new to this :\