Jump to content

Recommended Posts

Posted

So, I started learning Forge. And I have a problem:

How could I get an item like command block, barrier, etc.
I cannot find them when trying "Items..itemname".

Any help ?

Posted

1) Items starts with a capital letter.

2) You need to import net.minecraft.init.Items before you can use it.

3) The blocks' and items' fields are named in ALL CAPS.

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

No they aren't.

 

Don't have a dev environment set up, but this is from the MCPbot exports:

barrier.PNG

command.PNG

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 minute ago, VytskaLT said:

I am using 1.8.9. Maybe that's the problem?

Anything below 1.9 is no longer supported on this forum due to its age, please update to receive support. 

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.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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