Oraxen
Search…
Furniture Mechanic
How to add non cubic blocs to the game

How does it work?

Oraxen uses invisible item frames to add non cubic blocks to the game. This avoids some lags causes by armorstands You can then activate a transparent block (barrier) on top to act as a hitbox.
Example furniture

Global configuration

This global configuration has to be used in order to define the hierarchy of between your multiple tool_types. You can put the normal types + new types you just invented.
1
furniture:
2
tool_types:
3
- WOODEN
4
- STONE
5
- IRON
6
- GOLDEN
7
- DIAMOND
8
- NETHERITE
9
enabled: true
Copied!

Example configuration per item

1
table:
2
displayname: "<gray>Table"
3
material: DIAMOND
4
Pack:
5
generate_model: false
6
model: default/table
7
Mechanics:
8
furniture:
9
rotation: NONE
10
facing: UP
11
barrier: true
12
drop: # useless if you are not using a barrier
13
silktouch: false
14
loots:
15
- { oraxen_item: table, probability: 1.0 }
Copied!

Barriers

Barriers are invisible blocks placed with your furniture so that it has a realistic hitbox. You can place a single one or a list relative to the position of the player who places them.

Single barrier:

1
barrier: true
Copied!

Multiple barriers:

1
barriers:
2
- { x: 0, y: 0, z: 0 }
3
- { x: 0, y: 0, z: 1 }
4
- { x: 0, y: 0, z: 2 }
5
- { x: 1, y: 0, z: 0 }
6
- { x: 1, y: 0, z: 1 }
7
- { x: 1, y: 0, z: 2 }
Copied!

Light

You can configure your furniture so it produces light. To do so you need to install this plugin: Light API (fork)
This allows you to use a new option: light. This option corresponds to light intensity and must be between 1 and 15.
1
Mechanics:
2
furniture:
3
facing: UP
4
barrier: true
5
light: 5
6
drop: # useless if you are not using a barrier
7
silktouch: false
8
loots:
9
- { oraxen_item: table, probability: 1.0 }
Copied!
Last modified 2mo ago