This mechanic allows you to place blocks and have them change their texture depending on the direction in which they are placed, like for example logs.
There are 3 types of directional blocks: LOG, FURNACE and DROPPER.
LOG takes up 3 custom block variations, FURNACE takes 4 and DROPPER takes 6.
Every sub-block can have a model property, which Oraxen will use to determine what to display.
If there is no model property on the sub-block, Oraxen will use the model from the parent-block.
Models are also automatically rotated depending on the direction in which the block is placed.
This means you can use the same model, and it will be rotated accordingly.
If the sub-block has a model defined, it will not be rotated, allowing you to use different models for different directions.
Configuration
Parent-Block example:
mainBlock:displayname:"<white>Frozen Mushroom Stem"material:PAPERPack:generate_model:falsemodel:mainBlockModelMechanics:noteblock:model:mainBlockModelcustom_variation:1directional:# Valid values are LOG, FURNACE and DROPPERdirectional_type:LOG# LOGy_block:mainBlockYx_block:mainBlockXz_block:mainBlockZ# FURNACE and DROPPERnorth_block:mainBlockNortheast_block:mainBlockEastsouth_block:mainBlockSouthwest_block:mainBlockWest# DROPPER needs these aswellup_block:mainBlockUpdown_block:mainBlockDownhardness:1drop:minimal_type:WOODbest_tools: - AXEsilktouch:falseloots: - {oraxen_item:mainBlock,probability:1.0}
LOG-type example:
#This doesn't include the parent block from the above examplemainBlockY:excludeFromInventory:true# Makes inventory only contain base-blockmaterial:PAPERMechanics:noteblock:custom_variation:1directional:parent_block:mainBlock#base block which will give dropmainBlockX:excludeFromInventory:true# Makes inventory only contain base-blockmaterial:PAPERMechanics:noteblock:custom_variation:2directional:parent_block:mainBlock#base block which will give dropmainBlockZ:excludeFromInventory:true# Makes inventory only contain base-blockmaterial:PAPERMechanics:noteblock:custom_variation:3directional:parent_block:mainBlock#base block which will give drop
FURNACE-type example:
#This doesn't include the parent block from the above examplemainBlockNorth:excludeFromInventory:true# Makes inventory only contain base-blockmaterial:PAPERMechanics:noteblock:model:mainBlockModelcustom_variation:1directional:parent_block:mainBlock#base block which will give dropmainBlockSouth:excludeFromInventory:true# Makes inventory only contain base-blockmaterial:PAPERMechanics:noteblock:model:mainBlockModelcustom_variation:2directional:parent_block:mainBlock#base block which will give dropmainBlockWest:excludeFromInventory:true# Makes inventory only contain base-blockmaterial:PAPERMechanics:noteblock:model:mainBlockModelcustom_variation:3directional:parent_block:mainBlock#base block which will give dropmainBlockEast:excludeFromInventory:true# Makes inventory only contain base-blockmaterial:PAPERMechanics:noteblock:model:mainBlockModelcustom_variation:4directional:parent_block:mainBlock#base block which will give drop
DROPPER-type example:
#This doesn't include the parent block from the above examplemainBlockNorth:excludeFromInventory:true# Makes inventory only contain base-blockmaterial:PAPERMechanics:noteblock:custom_variation:1directional:parent_block:mainBlock#base block which will give dropmainBlockSouth:excludeFromInventory:true# Makes inventory only contain base-blockmaterial:PAPERMechanics:noteblock:custom_variation:2directional:parent_block:mainBlock#base block which will give dropmainBlockWest:excludeFromInventory:true# Makes inventory only contain base-blockmaterial:PAPERMechanics:noteblock:custom_variation:3directional:parent_block:mainBlock#base block which will give dropmainBlockEast:excludeFromInventory:true# Makes inventory only contain base-blockmaterial:PAPERMechanics:noteblock:custom_variation:4directional:parent_block:mainBlock#base block which will give dropmainBlockUp:excludeFromInventory:true# Makes inventory only contain base-blockmaterial:PAPERMechanics:noteblock:model:mainBlockModel_verticalcustom_variation:5directional:parent_block:mainBlock#base block which will give dropmainBlockDown:excludeFromInventory:true# Makes inventory only contain base-blockmaterial:PAPERMechanics:noteblock:model:mainBlockModel_verticalcustom_variation:6directional:parent_block:mainBlock#base block which will give drop