Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Throwable Dye

Throwable Dye

This mod allows you to throw dyes!

1,750
8
Decoration
Game Mechanics
Utility

Compatibility

Minecraft: Java Edition

1.20–1.20.2
1.19.x

Platforms

Fabric

Supported environments

Client and server

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source

Creators

lamaprogramer
lamaprogramer Owner

Details

Licensed MIT
Published 2 years ago
Updated 2 years ago
DescriptionGalleryChangelogVersions

Overview

This is a mod that allows you to throw dyes!

Throwing it at a block with a colored variant (eg. concrete) will dye the block the color of the dye you threw. This should work with every vanilla block.

This will also work with modded blocks, however, there are some exceptions which will need to be added to the config manually.

Config

Technical Overview

The way this mod works is when the thrown dye hits a block, it will get the block's id.

Then it will check if the block id starts or ends with a dye color. If it does, it will replace the color in the block id, with the thrown dye color.

If a color is not found in the block id, the it will try appending the thrown dye color to the beginning of the block id.

Finally, if that fails, it will fall back to the config file, and check if there is a colored block variant mapped to the default block.

Adding to the config

On the event that a some blocks do not work, you can add it into the config.

The config is called throwabledye.json. The syntax is as follows:

"somemod:block_id": "{color}_block_id"

A working example of this would be:

"minecraft:glass": "{color}_stained_glass"

Some blocks have a base, or un-dyed, variant, such as glass or terracotta. Unlike terracotta, dyed glass does not keep the same color + blockid format, it has an extra word, "stained", which is not referenced in the base variant, so the base variant needs to be mapped to the colored variant.

This is done by making the base block id the key. Then taking the colored block id, putting {color} where the color name would be, and making it the value. Then the mod can replace {color} with the thrown dye color.

Modrinth is open source.

main@16c5a5a

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.