Skip to content

Craft Tweaker (Mine Tweaker) Support

Bruno Marques Caroba edited this page Mar 31, 2024 · 7 revisions

Craft Tweaker (Mine Tweaker)

With the customize method, you can add a BossBar customization filter.

When the client is going to render a boss, and it is of the filtered type, it will use the defined style instead of the default one, so you can change the bars for certain types of mobs, different from the default pink one.

Method

import necrotempus.crafttweaker.BossBar;
BossBar.customize("entity.boss.class.name", "flat | notched_6 | notched_10 | notched_12 | notched_20 | none", int_rgb_color);

Examples

BossBar.customize("twilightforest.entity.boss.EntityTFNaga", "notched_6", 39244);

image

BossBar.customize("twilightforest.entity.boss.EntityTFUrGhast", "notched_10", 16764108);

image

BossBar.customize("twilightforest.entity.boss.EntityTFHydra", "notched_12", 19609);

image

Glyph System

import necrotempus.crafttweaker.Glyph;
Glyph.register(<char>, <resource location>, <horizontal padding>, <vertical padding>, <width>, <height>);
Glyph.register(<char>, <resource location>, <horizontal padding>, <vertical padding>, <width>, <height>, ["NONE | VERTICALLY | CONTAINS"]);
Glyph.register(<char>, <resource location>, <horizontal padding>, <vertical padding>, <width>, <height>, ["NONE | VERTICALLY | CONTAINS"], [Char Width]);
Glyph.unregister(<char>);

Example

import necrotempus.crafttweaker.Glyph;

Glyph.register('\u2150', "minecraft:textures/items/apple.png", 20, 72, 64, 64);
Glyph.register('\u2151', "minecraft:textures/items/boat.png", 20, 72, 64, 64, "NONE");
Glyph.register('\u2152', "necrotempus:glyphs/assets/trade.png", 8, 12, 256, 256, "NONE", 0);
Glyph.unregister('\u1f7f');

image image image