Jump to content

Jurassicash

Members
  • Posts

    5
  • Joined

  • Last visited

Jurassicash's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Alright! Thank you for the answer, I was just curious how it worked.
  2. Hey there, I set up my ore generation file and the first ore I've made seems to be spawning a bit above the maximum height I set. I've been thinking in terms of the world coordinates when setting these numbers, with bedrock as 0 and everything else going up from there. public class OreGeneration { //the actual individual ores public static void generateOres(final BiomeLoadingEvent event) { if(!(event.getCategory().equals(Biome.Category.NETHER) || event.getCategory().equals(Biome.Category.THEEND))) { generateOre(event.getGeneration(), OreFeatureConfig.FillerBlockType.NATURAL_STONE, BlockInit.EGG_ORE.get().defaultBlockState(), 4, 15, 31, 15); } } //can be called at any time to make an ore private static void generateOre(BiomeGenerationSettingsBuilder settings, RuleTest fillerType, BlockState state, int veinSize, int minHeight, int maxHeight, int maxPerChunk) { settings.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.configured(new OreFeatureConfig(fillerType, state, veinSize)) .decorated(Placement.RANGE.configured(new TopSolidRangeConfig(minHeight, 0, maxHeight))) .squared().count(maxPerChunk)); } } here's a picture of the ore, about 10 blocks above the number I set. https://imgur.com/a/8jflRKz Is minecraft using a different set of numbers than the world coordinates? Or is the range just looser than I'm expecting it to be. Thank yall for help with this.
  3. Thank you both so much for your help!! I figured out I missed a crucial step in setting up my build.gradle and other associated files so when I cleared the cache, did the command prompts, and reloaded the whole project in eclipse everything worked like a charm.
  4. Mappings Channel says its using original, with version 1.16.5
  5. Hey there, I've been searching everywhere for someone who's had a similar problem and decided I'll just ask. I've tried two different ways to get my registered item into the creative menu but neither have worked. For the first one I tried to add the item to an existing creative tab here: public class ItemInit { public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, FlightRising.MOD_ID); public static final RegistryObject<Item> EARTH_EGG = ITEMS.register("unhatched_earth_egg", () -> new Item(new Item.Properties().tab(ItemGroup.TAB_MISC))); } and I got this error log when I did so crash-2021-03-29_10.46.29-fml.txt Secondly I tried making a set of custom creative tabs, copying the format from the ItemGroup class and making an abstract extending it for my own tabs. public static abstract class FRItemGroup extends ItemGroup { public static FRItemGroup[] FR_TABS = new FRItemGroup[3]; public static final FRItemGroup FR_ITEM_TAB = new FRItemGroup(0, "fritemtab") { @OnlyIn(Dist.CLIENT) public ItemStack makeIcon() { return ItemInit.EARTH_EGG.get().getDefaultInstance(); } }; public static final FRItemGroup FR_BLOCK_TAB = new FRItemGroup(1, "frblocktab") { @OnlyIn(Dist.CLIENT) public ItemStack makeIcon() { return new ItemStack(Blocks.IRON_ORE); } }; public static final FRItemGroup FR_MOB_TAB = new FRItemGroup(2, "frmobtab") { @OnlyIn(Dist.CLIENT) public ItemStack makeIcon() { return new ItemStack(Items.DRAGON_EGG); } }; public FRItemGroup(int i, String label) { super(label); } @OnlyIn(Dist.CLIENT) public abstract ItemStack makeIcon(); } } which rewarded me with this crash-2021-03-29_19.39.00-fml.txt The above is only one of several methods I've used to make creative tabs, both following tutorials and trying to go at it on my own. If anyone can figure out where I've messed up I'd greatly appreciate it.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.