libFirework

⭐ — (3 endorsements) 📥 255 downloads 📌 v1.0.0 📅 12/14/2022
⚪ Last updated 2022

By 2000slash · fabric

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 12/14/2022 📅 Created: 12/14/2022
⚠️ Install Order · 2 steps
1🛠️ Forge — Minecraft Forge (mod loader) Download ↗
2🛠️ Fabric — Fabric Loader Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 Analysis

  • 🏆 #667 of 909 fabric mods in this game by downloads

📋 About This Mod

<p align="center"> <img src="https://cdn.modrinth.com/data/KxPzx0b9/2d2a22e25bc399c598b78e94a0b4438ea4effc33.png" alt="libFirework" width="200px" /> </p> <span align="center"> # libFirework </span> A Minecraft library to create custom fireworks. What used to be a simple shitpost about amogus in minecraft evolved into this. ## How to use To use the library, just add it as a gradle dependency ```groovy repositories { exclusiveContent { forRepository { maven { name = "Modrinth" url = "https://api.modrinth.com/maven" } } filter { includeGroup "maven.modrinth" } } } dependencies { ... modImplementation 'maven.modrinth:libfirework:1.0.0' } ``` Then you can register `CustomRocketTypes` using `com.github.libfirework.LibFirework.registerCustomRocketType()`. If you don't want to implement a `CustomRocketTypes` all by yourself you should really use `com.github.libfirework.types.simple.CustomRocketTypeBuilder`. You can use it like this ```java @Override public void onInitialize() { LibFirework.registerCustomRocketType(new CustomRocketTypeBuilder(new Identifier("libfirework", "triangle"), Items.NETHERITE_INGOT).drawLines(new double{{0.0, 1.0}, {1.0, 0.0}, {-1.0, 0.0}, {0.0, 1.0}}, 50).build()); LibFirework.registerCustomRocketType(new CustomRocketTypeBuilder(new Identifier("libfirework", "ball"), Items.SNOWBALL).fillBall(5, 1).build()); LibFirework.registerCustomRocketType(new CustomRocketTypeBuilder(new Identifier("libfirework", "burst"), Items.FIRE_CHARGE).burst(100).build()); LibFirework.registerCustomRocketType(new CustomRocketTypeBuilder(new Identifier("libfirework", "amogus"), Items.REDSTONE).explodeSvg(TestLibfirework.class.getClassLoader().getResourceAsStream("amogus.svg"), "amogus.svg", 5.f, 1/500.f, new float{-0.8f, 1.f}).build()); } ``` These examples are used straight from (src/test/java/com/github/libfirework/TestLibfirework.java) ## Custom svgs <p> <img src="https://user-images.githubusercontent.com/10107972/206926741-c21c1d75-67f9-4b74-91ca-2cf6ee802c7a.png" alt="drawing" width="500"/> </p> If you want to use custom svgs, you can use the CustomRocketTypeBuilder.explodeSvg(). To do this, you have to supply it with an input stream of the svg. The svg should only contain one path and it should be the first child of the root. You also have to supply pointDistance, scale, and origin. The pointDistance regulate the number of particles that are generated. The scale and origin define how big the svg is drawn and what direction it moves to.

libFirework

# libFirework A Minecraft library to create custom fireworks. What used to be a simple shitpost about amogus in minecraft evolved into this.

## How to use

To use the library, just add it as a gradle dependency ```groovy repositories { exclusiveContent { forRepository { maven { name = "Modrinth" url = "https://api.modrinth.com/maven" } } filter { includeGroup "maven.modrinth" } } }

dependencies { ... modImplementation 'maven.modrinth:libfirework:1. 0. 0' }

Then you can register `CustomRocketTypes` using `com.github.libfirework. LibFirework.registerCustomRocketType()`. If you don't want to implement a `CustomRocketTypes` all by yourself you should really use `com.github.libfirework.types.simple. CustomRocketTypeBuilder`. You can use it like this

```java @Override public void onInitialize() { LibFirework.registerCustomRocketType(new CustomRocketTypeBuilder(new Identifier("libfirework", "triangle"), Items. NETHERITE_INGOT).drawLines(new double[][]{{0. 0, 1. 0}, {1. 0, 0. 0}, {-1. 0, 0. 0}, {0. 0, 1. 0}}, 50).build()); LibFirework.registerCustomRocketType(new CustomRocketTypeBuilder(new Identifier("libfirework", "ball"), Items. SNOWBALL).fillBall(5, 1).build()); LibFirework.registerCustomRocketType(new CustomRocketTypeBuilder(new Identifier("libfirework", "burst"), Items. FIRE_CHARGE).burst(100).build()); LibFirework.registerCustomRocketType(new CustomRocketTypeBuilder(new Identifier("libfirework", "amogus"), Items. REDSTONE).explodeSvg(TestLibfirework.class.getClassLoader().getResourceAsStream("amogus.svg"), "amogus.svg", 5.f, 1/500.f, new float[]{-0. 8f, 1.f}).build()); } ```

These examples are used straight from (src/test/java/com/github/libfirework/TestLibfirework.java)

## Custom svgs

drawing

If you want to use custom svgs, you can use the CustomRocketTypeBuilder.explodeSvg(). To do this, you have to supply it with an input stream of the svg. The svg should only contain one path and it should be the first child of the root. You also have to supply pointDistance, scale, and origin. The pointDistance regulate the number of particles that are generated. The scale and origin define how big the svg is drawn and what direction it moves to.

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Mods
Author
2000slash
Version
1.0.0
Downloads
255
Endorsements
3
Category
fabric
Created
12/14/2022
Updated
12/14/2022
Game Versions
1.19, 1.19.1, 1.19.2, 1.19.3
Tags
library, utility

🔧 How to Install Minecraft Mods Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Mods →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Mods versions does libFirework support?

The author lists 1.19, 1.19.1, 1.19.2, 1.19.3. Other versions may work but are untested by the author.

What is the latest version of libFirework?

Version 1.0.0, published 2022-12-14 with 255 downloads recorded at the source.

Keep browsing — more Minecraft Mods mods await

📋 All Minecraft Mods Mods 🏆 Top 25 📂 More fabric 👤 More by 2000slash 🔎 Similar Mods 🌐 Best fabric (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods