Jump to content

Recommended Posts

Posted
  On 5/14/2019 at 8:28 AM, IndonesianMinecraftModder said:

it always show an error

Expand  

Post the error.

Some tips:

  Reveal hidden contents

 

Posted (edited)

1. Stop using static initializers. Read the common issues and recommendations for more details.

2. Stop using IHasModel. Read the common issues and recommendations for more details.

3. There is already a BlockTrapDoor. Extend that instead of copying all the code from that class.

Edited by DavidM

Some tips:

  Reveal hidden contents

 

Posted

That is a compile time error.

You should know how to fix it if you know basic Java (again, don't just copy the entire BlockTrapDoor class).

Some tips:

  Reveal hidden contents

 

Posted

Override BlockTrapDoor#neighborChanged and leave it empty.

Some tips:

  Reveal hidden contents

 

Posted

Yes pretty much. Make sure you have the correct parameters.

 

  On 5/14/2019 at 9:02 AM, IndonesianMinecraftModder said:

(i'm sorry if im just bad...)

Expand  

If you don't know Java, then you need to learn it before making Minecraft mods. Knowledge of Java is required for modding.

Some tips:

  Reveal hidden contents

 

Posted

:compileJavaF:\test\2\NNN-M4\build\sources\main\java\de\Mari_023\diorite_trapdoors\blocks\TestTrapDoor.java:85: error: cannot find symbol
    public void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos) {
                                                                                ^
  symbol:   class Block
  location: class TestTrapDoor
1 error
 FAILED

 

can you at least tell me about the valid parameter in this......

Posted
  On 5/14/2019 at 9:18 AM, IndonesianMinecraftModder said:

can you at least tell me about the valid parameter in this......

Expand  

You should learn to figure that out by yourself with your IDE (hint: look in the parent class you are extending).

 

That error is a compile time error. Your IDE should tell you what is wrong (syntax error is underlined in red in most IDEs).

Some tips:

  Reveal hidden contents

 

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.