- Disabled Creative Menu (Needs rework for 1.19.4)
- Disabled WorldGen (Even more broken in 1.19.4)
This commit is contained in:
nelle 2023-03-19 15:02:10 -06:00
parent 8054e2cec6
commit 33b5b616da
3 changed files with 6 additions and 5 deletions

View file

@ -3,7 +3,7 @@ org.gradle.jvmargs = -Xmx1G
org.gradle.parallel = true org.gradle.parallel = true
# Mod Properties # Mod Properties
version = 2.3.0-SNAPSHOT-1 version = 2.3.0-SNAPSHOT-2
maven_group = xyz.limepot maven_group = xyz.limepot
archives_base_name = roses_mod archives_base_name = roses_mod

View file

@ -59,6 +59,7 @@ public class RosesMod implements ModInitializer {
Registry.register(Registries.ITEM, new Identifier(MOD_ID, "cyan_rose_bush"), new BlockItem(CYAN_ROSE_BUSH, new QuiltItemSettings())); Registry.register(Registries.ITEM, new Identifier(MOD_ID, "cyan_rose_bush"), new BlockItem(CYAN_ROSE_BUSH, new QuiltItemSettings()));
//CREATIVE TABS //CREATIVE TABS
/*
ItemGroupEvents.modifyEntriesEvent(ItemGroups.NATURAL).register(content -> { ItemGroupEvents.modifyEntriesEvent(ItemGroups.NATURAL).register(content -> {
content.addAfter(Items.POPPY, ROSE_FLOWER); content.addAfter(Items.POPPY, ROSE_FLOWER);
}); });
@ -67,7 +68,7 @@ public class RosesMod implements ModInitializer {
}); });
ItemGroupEvents.modifyEntriesEvent(ItemGroups.NATURAL).register(content -> { ItemGroupEvents.modifyEntriesEvent(ItemGroups.NATURAL).register(content -> {
content.addAfter(Items.ROSE_BUSH, CYAN_ROSE_BUSH); content.addAfter(Items.ROSE_BUSH, CYAN_ROSE_BUSH);
}); });*/
//LOOT TABLES //LOOT TABLES

View file

@ -4,7 +4,7 @@ package xyz.limepot.roses_mod.world.gen;
import net.minecraft.registry.RegistryKey; import net.minecraft.registry.RegistryKey;
import net.minecraft.registry.RegistryKeys; import net.minecraft.registry.RegistryKeys;
import net.minecraft.util.Identifier; import net.minecraft.util.Identifier;
import net.minecraft.world.biome.BiomeKeys; //import net.minecraft.world.biome.BiomeKeys;
import net.minecraft.world.gen.GenerationStep; import net.minecraft.world.gen.GenerationStep;
import net.minecraft.world.gen.feature.ConfiguredFeature; import net.minecraft.world.gen.feature.ConfiguredFeature;
import net.minecraft.world.gen.feature.PlacedFeature; import net.minecraft.world.gen.feature.PlacedFeature;
@ -29,10 +29,10 @@ public class ModFlowerGeneration {
} }
*/ */
public static void generateFlowers() { public static void generateFlowers() {
RegistryKey<ConfiguredFeature<?, ?>> cyanRoseBushTag = RegistryKey.of(RegistryKeys.CONFIGURED_FEATURE, new Identifier(MOD_ID, "cyan_rose_bush")); /*RegistryKey<ConfiguredFeature<?, ?>> cyanRoseBushTag = RegistryKey.of(RegistryKeys.CONFIGURED_FEATURE, new Identifier(MOD_ID, "cyan_rose_bush"));
RegistryKey<PlacedFeature> cyanRoseBushTagKey = RegistryKey.of(RegistryKeys.PLACED_FEATURE, new Identifier(MOD_ID, "cyan_rose_bushes")); RegistryKey<PlacedFeature> cyanRoseBushTagKey = RegistryKey.of(RegistryKeys.PLACED_FEATURE, new Identifier(MOD_ID, "cyan_rose_bushes"));
BiomeModifications.addFeature(BiomeSelectors.includeByKey(BiomeKeys.FOREST), BiomeModifications.addFeature(BiomeSelectors.includeByKey(BiomeKeys.FOREST),
GenerationStep.Feature.VEGETAL_DECORATION, GenerationStep.Feature.VEGETAL_DECORATION,
RegistryKey.of(RegistryKeys.PLACED_FEATURE, new Identifier(MOD_ID, "cyan_rose_bush"))); RegistryKey.of(RegistryKeys.PLACED_FEATURE, new Identifier(MOD_ID, "cyan_rose_bush")));*/
} }
} }