Skip to content

Addon for Oraxen plugin that enables custom transparent blocks.

Notifications You must be signed in to change notification settings

playajames419/OraxenTransparentBlocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oraxen Transparent Blocks

This is an addon to the Premium plugin Oraxen. It adds the ability to use custom models that are transparent or don't fill an entire block without render issues.

Native Version: 1.17

With

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You must have Oraxen, WorldEdit, and WorldGuard installed on your server to use this plugin.

Installing

Place the plugin jar file in your servers plugins directory.

Adding Transparent Block Mechanic to Oraxen

Add the following to mechanics.yml in your Oraxen plugin folder

transparent_block:
  enabled: true

Configuring Blocks

Create a custom item/block using Oraxen and give your item/block the transpatent_block mechanic.

Example:

transparent_block:
  displayname: '&7Transparent Block'
  material: DIAMOND
  Pack:
    generate_model: false
    model: transparent_block
  Mechanics:
    transparent_block:
      custom_variation: 25
      armorstand_visible: false
      armorstand_small: false
      block_gravity: false
      break_sound: BLOCK_GLASS_BREAK
      drop:
        loots:
          - {oraxen_item: transparent_block, probability: 1.0, max_amount: 1}

Block Models

When creating custom models to use with this plugin, you will need to modify the armorstand's helmet display settings to your likings. This is how the block will show in-game.

Developers

Although not very extensive, this plugin call's the following custom events for developers to use;

  • OraxenTransparentBlockInteractEvent
  • OraxenTransparentBlockPrePlaceEvent
  • OraxenTransparentBlockPlaceEvent
  • OraxenTransparentBlockPreBreakEvent
  • OraxenTransparentBlockBreakEvent

Add OraxenTransparentBlocks to your plugin

<repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
</repository>
  
<dependency>
    <groupId>com.github.playajames419</groupId>
    <artifactId>OraxenTransparentBlocks</artifactId>
    <version>1.1</version>
</dependency>

License

This project is licensed under the GNU GPLv3 License