Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rainbow Wool #42

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package io.github.protonmc.proton.module.decoration;

import io.github.protonmc.proton.Proton;
import io.github.protonmc.proton.base.handler.ProtonRegisterHandler;
import io.github.protonmc.proton.base.handler.ResourceHandler;
import io.github.protonmc.proton.base.module.ProtonModule;
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.Block;
import net.minecraft.block.Blocks;
import net.minecraft.item.ItemGroup;

/**
* Adds rainbow wool. Don't ask me why
*
* @author YTG1234
*/
public class RainbowWoolModule extends ProtonModule {
public static Block rainbowWoolBlock;

public RainbowWoolModule() {
super(Proton.identifier("rainbow_wool"));
}

/**
* @see ProtonModule#commonInit()
*/
@Override
public void commonInit() {
if (!enabled) return;
rainbowWoolBlock = ProtonRegisterHandler.block("rainbow_wool", new Block(FabricBlockSettings.copyOf(Blocks.WHITE_WOOL)), new FabricItemSettings().group(ItemGroup.DECORATIONS));
}

/**
* @see ProtonModule#registerResources(ResourceHandler)
*/
@Override
public void registerResources(ResourceHandler resourceHandler) {
resourceHandler.generateSimpleBlock("rainbow_wool");
}
}
15 changes: 5 additions & 10 deletions src/main/resources/assets/proton/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,18 @@
"block.proton.bluer_ice": "Bluer Ice",
"block.proton.bluest_ice": "Bluest Ice",
"block.proton.compressed_diamond_block": "Compressed Diamond Block",

"block.proton.bamboo_mat": "Bamboo Mat",

"block.proton.thatch": "Thatch",
"block.proton.thatch_slab": "Thatch Slab",
"block.proton.thatch_stairs": "Thatch Stairs",

"block.proton.magma_bricks": "Magma Bricks",
"block.proton.magma_bricks_slab": "Magma Bricks Slab",
"block.proton.magma_bricks_stairs": "Magma Bricks Stairs",
"block.proton.magma_bricks_wall": "Magma Bricks Wall",

"block.proton.fat_potato": "Fat Potato",
"block.proton.fat_potato_slab": "Fat Potato Slab",
"block.proton.fat_potato_stairs": "Fat Potato Stairs",
"block.proton.fat_potato_wall": "Fat Potato Wall",

"proton.config.category.automation": "Automation",
"proton.config.category.building": "Building",
"proton.config.category.management": "Management",
Expand All @@ -31,7 +26,6 @@
"proton.config.category.oddities": "Oddities",
"proton.config.category.experimental": "Experimental",
"proton.config.category.decoration": "Decoration",

"proton.module.proton.tater": "Taters! :> (Tiny Potato)",
"proton.module.proton.tater.enabled": "Enabled",
"proton.module.proton.variantanimaltextures.enableShinyLlama": "Enable Shiny Llama",
Expand Down Expand Up @@ -67,7 +61,6 @@
"proton.module.proton.variantanimaltextures": "Variantanimaltextures",
"proton.module.proton.compressed_items": "Compressed Items",
"proton.module.proton.turf.enabled": "Enabled",

"block.proton.orange_stained_planks": "Orange Stained Planks",
"block.proton.cyan_stained_planks": "Cyan Stained Planks",
"proton.module.proton.clay.enabled": "Enabled",
Expand All @@ -89,11 +82,13 @@
"block.proton.lime_stained_planks": "Lime Stained Planks",
"block.proton.pink_stained_planks": "Pink Stained Planks",
"block.proton.red_stained_planks": "Red Stained Planks",
"proton.module.proton.tater.enabled": "Enabled",
"block.proton.gray_stained_planks": "Gray Stained Planks",
"proton.config.category.unassigned": "Unassigned",
"proton.module.proton.tater": "Tater",
"block.proton.blue_stained_planks": "Blue Stained Planks",
"block.proton.turf_stairs": "Turf Stairs",
"proton.module.proton.clay": "Clay"
"proton.module.proton.clay": "Clay",

"proton.module.proton.rainbow_wool": "Rainbow Wool",
"proton.module.proton.rainbow_wool.enabled": "Enabled",
"block.proton.rainbow_wool": "Rainbow Wool"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"animation": {
"frametime": 10,
"frames": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
14,
13,
12,
11,
10,
9,
8,
7,
6,
5,
4,
3,
2,
1,
0
]
}
}