Jump to content

Recommended Posts

Posted (edited)

after getting this error me had to go out so cant remember 100% word for word what the error is when im back home ill post the crash log im making the thread now incase it slips my mind when me do get home
 

 

im trying to make a bunch of bananas that grow on a jungle tree like how cocoa pods do after 2 days or trial ive finerly got eclips to stop giving me errors but now the testMC crashes with a something about blockstate contaner and AGE 0 1 2

 

crashlog
https://pastebin.com/2CVjRLzD

 

my code

https://github.com/monkeybee11/monkeysmod/blob/master/src/main/java/com/monkeybee11/monkeysmod/block/bananabunch.java

ive really got no clue whats wrong my blockstate.json looks the same as the cocoa (apart from north east south west but thats bc this is ment to be under the leaves not next to the log)

 

Edited by monkeybee
Posted
15 minutes ago, monkeybee said:

when im back home ill post the crash log

Yeah, do that.

 

16 minutes ago, monkeybee said:

something about blockstate contaner

Your block does not override createBlockState() and yet it tries to have properties.

  • Like 1

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
55 minutes ago, Draco18s said:

Yeah, do that.

 

Your block does not override createBlockState() and yet it tries to have properties.

ive posted my crashlog and update my github (forgot to do it befor being rushed out the house >.< )

Posted
2 hours ago, Draco18s said:

Your block does not override createBlockState() and yet it tries to have properties.

 

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
3 minutes ago, Draco18s said:

 

sry im a durp uploaded the right file this time XD
good news no more crashing
the block isnot in game tho must of messed something up in registering it (me know its not listed in the lang files im gonna do that after ive got it working) 

Posted (edited)

Please observe java conventions. (Packages must be lowercase, classes must be CamelCase) I.E. Entities->entity and bananabunch -> BlockBananaBunch

You should remove your SoundType parameter from your bananabunch block, you never use, pass it in as null & it will also crash a dedicated server as (I think) SoundTypes don’t exist there.

Your not registering an ItemBlock for your bananabunch block

your registry names should be in snake_case format (bananabunch->banana_bunch & rainbowwater->rainbow_water)

 

Well done for using @ObjectHolder and registry events!!

 

Edited by Cadiboo

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted (edited)
8 hours ago, Cadiboo said:

Please observe java conventions. (Packages must be lowercase, classes must be CamelCase) I.E. Entities->entity and bananabunch -> BlockBananaBunch

You should remove your SoundType parameter from your bananabunch block, you never use, pass it in as null & it will also crash a dedicated server as (I think) SoundTypes don’t exist there.

Your not registering an ItemBlock for your bananabunch block

your registry names should be in snake_case format (bananabunch->banana_bunch & rainbowwater->rainbow_water)

 

Well done for using @ObjectHolder and registry events!!

 

ignore rainbowwater thats nolonger in my eclips for now ive scrapted it and gonna have a nother try at adding fluids at some other point ¬.¬ (no idea how to delete it off github) 

 

but if me removed soundtype from the bananabunch it gives me 

Duplicate method BlockBananaBunch(Material, String, String) in type BlockBananaBunch

 

Edited by monkeybee
forgot something
Posted
1 hour ago, monkeybee said:

ignore rainbowwater thats nolonger in my eclips for now ive scrapted it and gonna have a nother try at adding fluids at some other point ¬.¬ (no idea how to delete it off github) 

You delete the file in your local repository, push a commit, and sync.

1 hour ago, monkeybee said:

but if me removed soundtype from the bananabunch it gives me 

Duplicate method BlockBananaBunch(Material, String, String) in type BlockBananaBunch

So remove the method you don't need. If they're identical, you don't need one of them.

 

This is like having a shopping list that says:
Milk

Bread

Milk

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
1 hour ago, monkeybee said:

oh really

ok there both in Cubicoder's modding tutorial so just assumed both of them was needed 

Functions aren't magic. They do things.

There's plenty of reasons to have more than one constructor, but they're not required.

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
7 hours ago, monkeybee said:

no idea how to delete it off github

Install a git client (Eclipse has one, but from memory it’s not straightforward to use), GitHub Desktop (easy to use, the official client from GitHub, it lacks a lot of functionality though) if you must. This solves everything for you. It makes sure you have a constant backup of everything with version control.

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

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.