Oraxen
  • Getting started
  • Frequently Asked Questions
  • Usage
    • Commands
    • Default items
    • Recipes
  • Configuration
    • Understanding the basics
    • Plugin settings
    • Items (beginners)
    • Items (advanced)
      • Dyeable Items
    • Custom Armors
      • Component Based (1.21.2+)
      • Trims Based (1.20-1.21.1)
      • Shader Based (1.18-1.19.4)
    • Custom HUD
    • Item Appearance
    • Glyphs
      • Custom Gui
  • Mechanics
    • Introduction
    • All mechanics
      • Custom mechanic
      • clickAction Mechanic
    • Furniture Mechanic
      • Furniture Position
      • Display-Entity Furniture
      • Farming Mechanic
    • NoteBlock mechanic
      • Stripped log Mechanic
      • Directional mechanic
      • Farmblock Mechanic
    • StringBlock Mechanic
      • Sapling Mechanic
  • Compatibility
    • BossShopPro - shop
    • CrateReloaded - crates
    • ModelEngine - custom mobs
    • MythicMobs - custom mobs
    • TrMenu - custom inventories
    • MMoItems
    • MythicCrucible
    • HappyHUD
    • World Generators
      • Iris World Generator
      • EpicWorldGenerator
      • Custom Ore Generator
      • RealisticWorldGenerator
  • Vendors
    • Vendor Guidelines
  • Developers
    • Create your own Mechanic
    • Add Compatibility with a plugin
    • Custom hosting service
    • API
Powered by GitBook
On this page
  • How does it work?
  • Global Configuration
  • How do I create a decoration?
  • Oraxen item and Pack configuration
  • StringBlock Mechanic Configuration
  • BlockLocker
  • How do I create a decoration with my own model?

Was this helpful?

  1. Mechanics

StringBlock Mechanic

only for 1.123.0+

How does it work?

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.

Global Configuration

stringblock:
  tool_types:
    - WOODEN
    - STONE
    - IRON
    - GOLDEN
    - DIAMOND
    - NETHERITE
  enabled: true

How do I create a decoration?

Oraxen item and Pack configuration

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

StringBlock Mechanic Configuration

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 }

BlockLocker

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.

How do I create a decoration with my own model?

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 }
PreviousFarmblock MechanicNextSapling Mechanic

Last updated 1 year ago

Was this helpful?

You can use this to allow protection via Valid protectionTypes are CONTAINER, DOOR, ATTACHABLE

BlockLocker
Page cover image