Jump to content

Recommended Posts

Posted

I'm currently trying to make a block with the same hardness and resistance as a block of emerald. I am using hardnessAndResistance(5f, 10f) and the hardness works but it seems to be more blast resistant than an emerald block in testing.

 

Posted
8 minutes ago, Umpaz said:

I'm currently trying to make a block with the same hardness and resistance as a block of emerald. I am using hardnessAndResistance(5f, 10f) and the hardness works but it seems to be more blast resistant than an emerald block in testing.

 

The emerald block has a resistance of 6.

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.

Posted (edited)

Also what does the f mean? I'm new to coding and I'm wondering why should I put the f after the values? And why 6? On the wiki it says it's 30.

Edited by Umpaz
Posted
Just now, Umpaz said:

Also what does the f mean? I'm new to coding and I'm wondering why should I put the f after the values?

You should learn how to code and learn Java before you make a mod. This is not a Java forum this is a Forge forum.

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.

Posted
6 minutes ago, Umpaz said:

On the minecraft wiki the value for resistance is shown as 30. I'm wondering how that translates over to 6.

The wiki is wrong/outdated.

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.

  • 2 years later...
  • Guest locked this topic
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.