Skip to content

Commit

Permalink
tweaks and textures
Browse files Browse the repository at this point in the history
  • Loading branch information
lumiscosity committed Jun 22, 2024
1 parent 2222a5e commit 4272f22
Show file tree
Hide file tree
Showing 14 changed files with 45 additions and 19 deletions.
2 changes: 2 additions & 0 deletions src/client/resources/assets/rounded/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"tag.item.rounded.trough_feed": "Trough Feed",
"tag.item.rounded.treated_planks": "Treated Planks",
"tag.item.c.grain": "Grain",
"tag.item.c.mushrooms": "Mushrooms",
"tag.item.c.mushroom_caps": "Mushroom Caps",

"block.rounded.compat.treated_hevea_brasiliensis_planks": "Treated Hevea Brasiliensis Planks"
}
4 changes: 3 additions & 1 deletion src/client/resources/assets/rounded/lang/pl_pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@
"tag.worldgen.biome.rounded.has_more_lustershrooms": "Ma więcej lśniącogrzybów",
"tag.item.rounded.trough_feed": "Pokarm w korycie",
"tag.item.rounded.treated_planks": "Impregnowane deski",
"tag.item.c.grain": "Zboże"
"tag.item.c.grain": "Zboże",
"tag.item.c.mushrooms": "Grzyby",
"tag.item.c.mushroom_caps": "Kapelusze grzybów"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"textures": {
"particle": "rounded:block/trough_side",
"top": "rounded:block/trough_top",
"bottom": "minecraft:block/smooth_stone",
"bottom": "minecraft:block/stonecutter_bottom",
"side": "rounded:block/trough_side",
"inside": "rounded:block/trough_inside"
},
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 30 additions & 12 deletions src/main/java/com/lumiscosity/rounded/blocks/RegisterBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
import com.lumiscosity.rounded.worldgen.HugeLustershroomFeature;
import net.fabricmc.fabric.api.biome.v1.BiomeModifications;
import net.fabricmc.fabric.api.biome.v1.BiomeSelectors;
import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents;
import net.fabricmc.fabric.api.registry.LandPathNodeTypesRegistry;
import net.minecraft.block.*;
import net.minecraft.block.enums.NoteBlockInstrument;
import net.minecraft.block.piston.PistonBehavior;
import net.minecraft.entity.ai.pathing.PathNodeType;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroups;
import net.minecraft.item.Items;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.registry.RegistryKey;
Expand Down Expand Up @@ -133,23 +136,35 @@ public class RegisterBlocks {
public static final Item TROUGH_ITEM = new BlockItem(TROUGH, new Item.Settings());

public static void initBlocks() {
register_treated_plank("treated_oak_planks", TREATED_OAK_PLANKS, TREATED_OAK_PLANKS_ITEM);
register_treated_plank("treated_spruce_planks", TREATED_SPRUCE_PLANKS, TREATED_SPRUCE_PLANKS_ITEM);
register_treated_plank("treated_birch_planks", TREATED_BIRCH_PLANKS, TREATED_BIRCH_PLANKS_ITEM);
register_treated_plank("treated_jungle_planks", TREATED_JUNGLE_PLANKS, TREATED_JUNGLE_PLANKS_ITEM);
register_treated_plank("treated_acacia_planks", TREATED_ACACIA_PLANKS, TREATED_ACACIA_PLANKS_ITEM);
register_treated_plank("treated_cherry_planks", TREATED_CHERRY_PLANKS, TREATED_CHERRY_PLANKS_ITEM);
register_treated_plank("treated_dark_oak_planks", TREATED_DARK_OAK_PLANKS, TREATED_DARK_OAK_PLANKS_ITEM);
register_treated_plank("treated_mangrove_planks", TREATED_MANGROVE_PLANKS, TREATED_MANGROVE_PLANKS_ITEM);
register_treated_plank("treated_bamboo_planks", TREATED_BAMBOO_PLANKS, TREATED_BAMBOO_PLANKS_ITEM);
register_treated_plank("treated_crimson_planks", TREATED_CRIMSON_PLANKS, TREATED_CRIMSON_PLANKS_ITEM);
register_treated_plank("treated_warped_planks", TREATED_WARPED_PLANKS, TREATED_WARPED_PLANKS_ITEM);
register_treated_plank("treated_oak_planks", TREATED_OAK_PLANKS, TREATED_OAK_PLANKS_ITEM, "minecraft", "oak");
register_treated_plank("treated_spruce_planks", TREATED_SPRUCE_PLANKS, TREATED_SPRUCE_PLANKS_ITEM, "minecraft", "spruce");
register_treated_plank("treated_birch_planks", TREATED_BIRCH_PLANKS, TREATED_BIRCH_PLANKS_ITEM, "minecraft", "birch");
register_treated_plank("treated_jungle_planks", TREATED_JUNGLE_PLANKS, TREATED_JUNGLE_PLANKS_ITEM, "minecraft", "jungle");
register_treated_plank("treated_acacia_planks", TREATED_ACACIA_PLANKS, TREATED_ACACIA_PLANKS_ITEM, "minecraft", "acacia");
register_treated_plank("treated_cherry_planks", TREATED_CHERRY_PLANKS, TREATED_CHERRY_PLANKS_ITEM, "minecraft", "cherry");
register_treated_plank("treated_dark_oak_planks", TREATED_DARK_OAK_PLANKS, TREATED_DARK_OAK_PLANKS_ITEM, "minecraft", "dark_oak");
register_treated_plank("treated_mangrove_planks", TREATED_MANGROVE_PLANKS, TREATED_MANGROVE_PLANKS_ITEM, "minecraft", "mangrove");
register_treated_plank("treated_bamboo_planks", TREATED_BAMBOO_PLANKS, TREATED_BAMBOO_PLANKS_ITEM, "minecraft", "bamboo");
register_treated_plank("treated_crimson_planks", TREATED_CRIMSON_PLANKS, TREATED_CRIMSON_PLANKS_ITEM, "minecraft", "crimson");
register_treated_plank("treated_warped_planks", TREATED_WARPED_PLANKS, TREATED_WARPED_PLANKS_ITEM, "minecraft", "warped");

register_block("lustershroom", LUSTERSHROOM_PLANT, LUSTERSHROON_PLANT_ITEM);
ItemGroupEvents.modifyEntriesEvent(ItemGroups.NATURAL).register(content -> {
content.addAfter(Registries.BLOCK.get(Identifier.of("minecraft", "red_mushroom")), LUSTERSHROON_PLANT_ITEM);
});
register_block("lustershroom_block", LUSTERSHROOM_BLOCK, LUSTERSHROON_BLOCK_ITEM);
ItemGroupEvents.modifyEntriesEvent(ItemGroups.NATURAL).register(content -> {
content.addAfter(Registries.BLOCK.get(Identifier.of("minecraft", "red_mushroom_block")), LUSTERSHROON_BLOCK_ITEM);
});
register_block("luster_cluster", LUSTER_CLUSTER, LUSTER_CLUSTER_ITEM);
ItemGroupEvents.modifyEntriesEvent(ItemGroups.FUNCTIONAL).register(content -> {
content.add(LUSTER_CLUSTER_ITEM);
});

register_block("trough", TROUGH, TROUGH_ITEM);
ItemGroupEvents.modifyEntriesEvent(ItemGroups.FUNCTIONAL).register(content -> {
content.addAfter(Registries.BLOCK.get(Identifier.of("minecraft", "composter")), TROUGH_ITEM);
});

BiomeModifications.addFeature(
BiomeSelectors.tag(TagKey.of(RegistryKeys.BIOME, Identifier.of(MOD_ID, "has_lustershrooms"))),
Expand All @@ -163,9 +178,12 @@ public static void initBlocks() {
);
}

public static void register_treated_plank(String name, Block block, Item item) {
public static void register_treated_plank(String name, Block block, Item item, String source_mod, String plank_type) {
register_block(name, block, item);
LandPathNodeTypesRegistry.register(block, PathNodeType.DAMAGE_OTHER, PathNodeType.DAMAGE_OTHER);
ItemGroupEvents.modifyEntriesEvent(ItemGroups.BUILDING_BLOCKS).register(content -> {
content.addAfter(Registries.BLOCK.get(Identifier.of(source_mod, plank_type + "_planks")), item);
});
}

private static void register_block(String name, Block block, Item item) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class ExtravaganzaCompat {
public static final Item TREATED_HEVEA_BRASILIENSIS_PLANKS_ITEM = new BlockItem(TREATED_HEVEA_BRASILIENSIS_PLANKS, new Item.Settings());

public static void register() {
register_treated_plank("compat/treated_hevea_brasiliensis_planks", TREATED_HEVEA_BRASILIENSIS_PLANKS, TREATED_HEVEA_BRASILIENSIS_PLANKS_ITEM);
register_treated_plank("compat/treated_hevea_brasiliensis_planks", TREATED_HEVEA_BRASILIENSIS_PLANKS, TREATED_HEVEA_BRASILIENSIS_PLANKS_ITEM, "extravaganza", "hevea_brasiliensis");

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"conditions": {
"items": [
{
"items": "minecraft:lapis_block"
"items": "minecraft:lapis_lazuli"
}
]
},
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/data/rounded/recipe/luster_cluster.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"item": "rounded:lustershroom_block"
},
"X": {
"item": "minecraft:lapis_block"
"item": "minecraft:lapis_lazuli"
}
},
"pattern": [
"X#X",
"###",
"#X#",
"###"
"X#X"
],
"result": {
"count": 1,
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/data/rounded/recipe/trough.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@
},
"O": {
"item": "minecraft:smooth_stone"
},
"X": {
"item": "minecraft:smooth_stone_slab"
}
},
"pattern": [
"X X",,
"# #",
"OOO"
],
Expand Down

0 comments on commit 4272f22

Please sign in to comment.