Jump to content

krystianwiechec

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by krystianwiechec

  1. 20 minutes ago, DaemonUmbra said:

    Did you set it to require a tool?

    Also I recommend NOT setting things up this way, as it makes things inflexible, set the properties when you invoke the constructor rather than in the constructor itself.

    I set the hardness, resistance, harvest level and harvest tool. I didn't know had to set up that it required a tool. How to set it up?

  2. Hey, I did Ruby Block in my modification:

    public class RubyBlock extends Block {
    	
    	public RubyBlock() {
    		
    		super(Block.Properties.create(Material.IRON)
    			.hardnessAndResistance(5.0f, 6.0f)
    			.sound(SoundType.METAL)
    			.harvestLevel(2)
    			.harvestTool(ToolType.PICKAXE)
    		);
    		
    	}
    
    }

    I found a list of the hardness and resistance of all blocks on the Internet, the hardness of the emerald block is 5, resistance 6, so I set the same in my block. And now the problems:

    • Although the harvest level is set to 2, the block will drop an item even if i destroys it with a wooden or stone pickaxe,
    • When I place my block and emerald block next to each other and destroyed both with a stone and wooden pickaxe, my block breaks faster but iron, diamond and netherite pickaxes both destroy the same amount of time.

    How is it possible? I'm from Polish and I don't know English well, I hope everything is understandable, but if not, I will try to explain what I mean better. I am a beginner, but I know java basics :)

  3. Hi, I want to say at first that if I shouldn't ask this question here, I'm sorry but I don't know where I can ask this question. So my problem is that, I decompiled minecraft 1.14 and now modifies the game code (I change gui etc.) as if I'm creating my client, I wanted to display my graphics with the png extension in the main menu of the game and here is the problem that i don't know how to do it, i am new to java but i know the basics.

×
×
  • Create New...

Important Information

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