cover | coverY |
---|---|
0 |
{% hint style="info" %} only for 1.123.0+ {% endhint %}
This is a variable of the custom blocks, but now you have to have a thread-based hitbox that allows you to make small decorative objects that can be traversed and are more optimized than furniture and the custom_variation is different from that of the blocks.
stringblock:
tool_types:
- WOODEN
- STONE
- IRON
- GOLDEN
- DIAMOND
- NETHERITE
enabled: true
jasmine_flower:
displayname: "<white>Jasmine Flower"
material: PAPER
Pack:
generate_model: true
parent_model: "block/cross"
textures:
- custom/flowers/jasmine_flower.png # .png extension is not mandatory
To use this mechanic you need to tell oraxen which model to use (to use the generated one, just put the id name of your item). Then you need to use custom_variation that is not already used by another decoration (since by default 1 is used by brunnera, you can for example use 2). This example of drop settings allows you to get the drop when you mine it with a stone pickaxe.
Mechanics:
stringblock:
custom_variation: 2
model: jasmine_flower
hardness: 2
drop:
silktouch: false
loots:
- { oraxen_item: jasmine_flower, probability: 1.0 }
You can use this to allow protection via BlockLocker Valid protectionTypes are CONTAINER, DOOR, ATTACHABLE
Mechanics:
furniture:
blocklocker:
can_protect: true
protection_type: CONTAINER
The other mechanics are almost the same as the custom blocks, please read their category for more information and not all of them should work correctly, just use the ones on this page.
oak_log_mini:
displayname: "<white>oak_log_mini"
material: PAPER
Pack:
generate_model: false
model: custom/furniture/oak_log_mini
Mechanics:
stringblock:
custom_variation: 3
model: custom/furniture/oak_log_mini
hardness: 2
drop:
silktouch: false
loots:
- { oraxen_item: oak_log_mini, probability: 1.0 }