Skip to content

Commit

Permalink
Fix #2 & Bump Version
Browse files Browse the repository at this point in the history
  • Loading branch information
FirstMegaGame4 committed Jun 23, 2024
1 parent c10a9a2 commit 8bd7dd4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=1.21+build.1
loader_version=0.15.11

# Mod Properties
mod_version=0.1.1-beta
mod_version=0.1.2-beta
maven_group=com.mmodding.extravaganza
archives_base_name=extravaganza

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected List<ItemStack> getDroppedStacks(BlockState state, LootContextParamete

public static final Block HEVEA_BRASILIENSIS_LEAVES = Blocks.createLeavesBlock(BlockSoundGroup.AZALEA_LEAVES);

public static final Block HEVEA_BRASILIENSIS_SAPLING = new SaplingBlock(new SaplingGenerator("hevea_brasiliensis", Optional.empty(), Optional.of(ExtravaganzaWorldGeneration.HEVEA_BRASILIENSIS), Optional.empty()), AbstractBlock.Settings.create().sounds(BlockSoundGroup.AZALEA_LEAVES));
public static final Block HEVEA_BRASILIENSIS_SAPLING = new SaplingBlock(new SaplingGenerator("hevea_brasiliensis", Optional.empty(), Optional.of(ExtravaganzaWorldGeneration.HEVEA_BRASILIENSIS), Optional.empty()), AbstractBlock.Settings.create().ticksRandomly().breakInstantly().sounds(BlockSoundGroup.AZALEA_LEAVES));

public static final Block BALL_POOL_REGISTRATION_TABLE = new BallPoolRegistrationTableBlock(AbstractBlock.Settings.create().nonOpaque().strength(2.0f).sounds(BlockSoundGroup.WOOD));
public static final Block BALL_POOL_CONTENT = new BallPoolContentBlock(AbstractBlock.Settings.create().noCollision().sounds(BlockSoundGroup.SLIME));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import net.minecraft.registry.Registry;
import net.minecraft.text.Text;

import java.util.stream.Stream;

public class ExtravaganzaItems {

public static final Item WRENCH_AGANZA = new WrenchAganzaItem(new Item.Settings().maxCount(1));
Expand Down Expand Up @@ -65,15 +63,13 @@ public static void register() {
Registry.register(Registries.ITEM, Extravaganza.createId("bat"), ExtravaganzaItems.BAT);
Registry.register(Registries.ITEM, Extravaganza.createId("merry_go_round"), ExtravaganzaItems.MERRY_GO_ROUND);

Stream<Item> stream = Extravaganza.extractFromRegistry(Registries.ITEM);

Registry.register(
Registries.ITEM_GROUP,
Extravaganza.createId("main"),
FabricItemGroup.builder()
.displayName(Text.translatable("itemGroup.extravaganza.main"))
.icon(ExtravaganzaItems.WRENCH_AGANZA::getDefaultStack)
.entries((displayContext, entries) -> stream.forEach(entries::add))
.entries((displayContext, entries) -> Extravaganza.extractFromRegistry(Registries.ITEM).forEach(entries::add))
.build()
);
}
Expand Down

0 comments on commit 8bd7dd4

Please sign in to comment.