Making wood block in oraxen

Cold

🐍 JUNGLE

Status

offline

Posts

609

Likes

11,527

Resources

351

Bits Credits

0

LEVEL

10

2,875 XP

Code:
custom_log:
  displayname: <white>Custom Wood
  material: PAPER
  Pack:
    generate_model: true
    parent_model: block/cube_all
    textures:
    - custom/blocks/custom_log
    custom_model_data: 1000
  Mechanics:
    noteblock:
      custom_variation: 1
      model: custom_log
      hardness: 7
      drop:
        silktouch: false
        fortune: false
        minimal_type: WOODEN
        best_tools:
        - AXE
        loots:
        - oraxen_item: custom_log
          probability: 1.0
      block_sounds:
        place_sound: block.wood.place
        break_sound: block.wood.break
        fall_sound: block.wood.fall
        hit_sound: block.wood.hit
        step_sound: block.wood.step
        volume: 0.8
        pitch: 0.8

Here is the config of my custom wood block, how do I make it a complete replica of a normal minecraft oak log for example
If I set minimal_type: WOODEN in the config, it makes it so the block only drops if I mine it with a wooden axe or better axe, if I mine it with my hand it doesn't drop

I want to make it so I can mine the block with my hand and make sure it drops, and if I have a better axe the block will break faster
 

FateKid

DEVIL DID IT

Admin

Status

offline

Posts

15,018

Likes

132,538

Resources

3,400

Bits Credits

530

LEVEL

11

5,910 XP

To make your custom wood block behave like a normal Minecraft oak log, you can modify the "Mechanics" section of your configuration file. Specifically, you need to adjust the "drop" and "hardness" properties.

To allow the block to drop when mined with any tool, including bare hands, you should set the "minimal_type" property to "DEFAULT" instead of "WOODEN". This will make it so the block drops regardless of the tool used.

Additionally, you can adjust the "hardness" property to match the hardness of a normal oak log. The hardness determines how long it takes to break the block. The hardness value for oak logs is 2.

Here's the modified configuration for your custom wood block:

Code:
custom_log:
displayname: <white>Custom Wood
material: PAPER
Pack:
generate_model: true
parent_model: block/cube_all
textures:
- custom/blocks/custom_log
custom_model_data: 1000
Mechanics:
noteblock:
custom_variation: 1
model: custom_log
hardness: 2
drop:
silktouch: false
fortune: false
minimal_type: DEFAULT
best_tools:
- AXE
loots:
- oraxen_item: custom_log
probability: 1.0
block_sounds:
place_sound: block.wood.place
break_sound: block.wood.break
fall_sound: block.wood.fall
hit_sound: block.wood.hit
step_sound: block.wood.step
volume: 0.8
pitch: 0.8

With these changes, your custom wood block should behave like a regular oak log, dropping when mined with any tool, including bare hands, and breaking faster when mined with a better axe.
 
Liked by:

Cold

🐍 JUNGLE

Status

offline

Posts

609

Likes

11,527

Resources

351

Bits Credits

0

LEVEL

10

2,875 XP

To make your custom wood block behave like a normal Minecraft oak log, you can modify the "Mechanics" section of your configuration file. Specifically, you need to adjust the "drop" and "hardness" properties.

To allow the block to drop when mined with any tool, including bare hands, you should set the "minimal_type" property to "DEFAULT" instead of "WOODEN". This will make it so the block drops regardless of the tool used.

Additionally, you can adjust the "hardness" property to match the hardness of a normal oak log. The hardness determines how long it takes to break the block. The hardness value for oak logs is 2.

Here's the modified configuration for your custom wood block:

Code:
custom_log:
displayname: <white>Custom Wood
material: PAPER
Pack:
generate_model: true
parent_model: block/cube_all
textures:
- custom/blocks/custom_log
custom_model_data: 1000
Mechanics:
noteblock:
custom_variation: 1
model: custom_log
hardness: 2
drop:
silktouch: false
fortune: false
minimal_type: DEFAULT
best_tools:
- AXE
loots:
- oraxen_item: custom_log
probability: 1.0
block_sounds:
place_sound: block.wood.place
break_sound: block.wood.break
fall_sound: block.wood.fall
hit_sound: block.wood.hit
step_sound: block.wood.step
volume: 0.8
pitch: 0.8

With these changes, your custom wood block should behave like a regular oak log, dropping when mined with any tool, including bare hands, and breaking faster when mined with a better axe.
Doesn't seem to work, when I mine it with an axe it breaks faster and drops, but when I mine it with fist it doesn't drop
 
Last edited:
Liked by:

FateKid

DEVIL DID IT

Admin

Status

offline

Posts

15,018

Likes

132,538

Resources

3,400

Bits Credits

530

LEVEL

11

5,910 XP

Doesn't seem to work, when I mine it with an axe it breaks faster and drops, but when I mine it with fist it doesn't drop
Hmm, I'll take a look again and see what could be going wrong.
Post automatically merged:

Cold Try removing the minimal_type and leave the rest the same.

This property restricts the block from dropping if not mined with a wooden axe or better. Removing it will allow the block to drop when mined with any tool, including your hand.
 

Cold

🐍 JUNGLE

Status

offline

Posts

609

Likes

11,527

Resources

351

Bits Credits

0

LEVEL

10

2,875 XP

Hmm, I'll take a look again and see what could be going wrong.
Post automatically merged:

Cold Try removing the minimal_type and leave the rest the same.

This property restricts the block from dropping if not mined with a wooden axe or better. Removing it will allow the block to drop when mined with any tool, including your hand.
I've tried before, it makes it so it drops the item when I mine it with a fist or an axe, but if I use an axe it doesn't make breaking the block any faster
 

FateKid

DEVIL DID IT

Admin

Status

offline

Posts

15,018

Likes

132,538

Resources

3,400

Bits Credits

530

LEVEL

11

5,910 XP

To make the block break faster when using a better axe, you need to modify the "hardness" property and add the "best_tools" property to your configuration.

Code:
custom_log:
  displayname: <white>Custom Wood
  material: PAPER
  Pack:
    generate_model: true
    parent_model: block/cube_all
    textures:
    - custom/blocks/custom_log
    custom_model_data: 1000
  Mechanics:
    noteblock:
      custom_variation: 1
      model: custom_log
      hardness: 2.0
      drop:
        silktouch: false
        fortune: false
        loots:
        - oraxen_item: custom_log
          probability: 1.0
      block_sounds:
        place_sound: block.wood.place
        break_sound: block.wood.break
        fall_sound: block.wood.fall
        hit_sound: block.wood.hit
        step_sound: block.wood.step
        volume: 0.8
        pitch: 0.8
      best_tools:
        - AXE

By setting the "hardness" property to 2.0, it matches the hardness of a normal Minecraft oak log. Additionally, the "best_tools" property is added under the "noteblock" section, specifying that axes are the best tools to use for breaking the block faster.

With these changes, your custom wood block will drop when mined with any tool or even with your hand. However, if you use an axe (specifically the best tool for the block), it will break the block faster compared to using other tools or your hand.

-- I'm using GPT for most of this, I'm sure it can help you out.
 
Liked by:

Cold

🐍 JUNGLE

Status

offline

Posts

609

Likes

11,527

Resources

351

Bits Credits

0

LEVEL

10

2,875 XP

To make the block break faster when using a better axe, you need to modify the "hardness" property and add the "best_tools" property to your configuration.

Code:
custom_log:
  displayname: <white>Custom Wood
  material: PAPER
  Pack:
    generate_model: true
    parent_model: block/cube_all
    textures:
    - custom/blocks/custom_log
    custom_model_data: 1000
  Mechanics:
    noteblock:
      custom_variation: 1
      model: custom_log
      hardness: 2.0
      drop:
        silktouch: false
        fortune: false
        loots:
        - oraxen_item: custom_log
          probability: 1.0
      block_sounds:
        place_sound: block.wood.place
        break_sound: block.wood.break
        fall_sound: block.wood.fall
        hit_sound: block.wood.hit
        step_sound: block.wood.step
        volume: 0.8
        pitch: 0.8
      best_tools:
        - AXE

By setting the "hardness" property to 2.0, it matches the hardness of a normal Minecraft oak log. Additionally, the "best_tools" property is added under the "noteblock" section, specifying that axes are the best tools to use for breaking the block faster.

With these changes, your custom wood block will drop when mined with any tool or even with your hand. However, if you use an axe (specifically the best tool for the block), it will break the block faster compared to using other tools or your hand.

-- I'm using GPT for most of this, I'm sure it can help you out.
The hardness doesn't match oak log ones, but when I set the hardness to really low like 2, when I break the block with a fist it drops the block, but when I break it with an axe its faster and also drops, but if I make the hardness higher it's not the same case
 
Liked by:

Latest threads

Forum statistics

Threads
60,363
Messages
91,883
Members
57,323
Latest member
dzole
Top Bottom