Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Pickle_Face5

Pickle_Face5

Members
 View Profile  See their activity
  • Content Count

    49
  • Joined

    July 26, 2020
  • Last visited

    12 hours ago

Community Reputation

1 Neutral

About Pickle_Face5

  • Rank
    Tree Puncher
  • Birthday 11/20/2006

Converted

  • Gender
    Male
  • URL
    https://www.curseforge.com/members/pickle_face5/
  • Personal Text
    =]

Recent Profile Visitors

747 profile views
  • Maxi07

    Maxi07

    August 31, 2020

  • diesieben07

    diesieben07

    August 12, 2020

  • Beethoven92

    Beethoven92

    July 30, 2020

  • vemerion

    vemerion

    July 29, 2020

  1. Pickle_Face5 started following [1.16.1] How to get Player Helmet for event?, Friend can't join server, "ParticleData cannot be cast to RedstoneParticleData" and and 7 others February 14
  2. Pickle_Face5

    Friend can't join server

    Pickle_Face5 replied to Mayday_Zero's topic in Support & Bug Reports

    Make sure he has all the mods and the configs needed that he needs on his side of Minecraft.
    • February 14
    • 3 replies
  3. Pickle_Face5

    "ParticleData cannot be cast to RedstoneParticleData"

    Pickle_Face5 posted a topic in Modder Support

    Alright, so I decided to add particles to my Rube Ore (basically Redstone Ore but 24 /7) and while testing the particle data, I get these errors (same as title) about it being cast to RedstoneParticleData, even though I don't see it anywhere. It says the errors in the Ore Block itself, so heres the code for that: package com.pickleface.ruby.blocks; import com.pickleface.ruby.particles.RubyParticleData; import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecraft.block.OreBlock; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.util.Direction; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IWorldReader; import net.minecraft.world.World; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; import net.minecraftforge.common.ToolType; import java.util.Random; public class RubyOre extends OreBlock { public RubyOre() { super(Block.Properties.create(Material.ROCK) .hardnessAndResistance(3.0f, 3.5f) .sound(SoundType.STONE) .harvestLevel(2) .harvestTool(ToolType.PICKAXE) .setRequiresTool() ); } @Override public int getExpDrop(BlockState state, IWorldReader reader, BlockPos pos, int fortune, int silktouch) { return 1; } public boolean ticksRandomly(BlockState state) { return true; } @OnlyIn(Dist.CLIENT) public void animateTick(BlockState stateIn, World worldIn, BlockPos pos, Random rand) { spawnParticles(worldIn, pos); } private static void spawnParticles(World world, BlockPos worldIn) { Random random = world.rand; for(Direction direction : Direction.values()) { BlockPos blockpos = worldIn.offset(direction); if (!world.getBlockState(blockpos).isOpaqueCube(world, blockpos)) { Direction.Axis direction$axis = direction.getAxis(); double d1 = direction$axis == Direction.Axis.X ? 0.5D + 0.5625D * (double)direction.getXOffset() : (double)random.nextFloat(); double d2 = direction$axis == Direction.Axis.Y ? 0.5D + 0.5625D * (double)direction.getYOffset() : (double)random.nextFloat(); double d3 = direction$axis == Direction.Axis.Z ? 0.5D + 0.5625D * (double)direction.getZOffset() : (double)random.nextFloat(); world.addParticle(new RubyParticleData(1.0F, 0F, 0F, 1.0F), (double)worldIn.getX() + d1, (double)worldIn.getY() + d2, (double)worldIn.getZ() + d3, 0.0D, 0.0D, 0.0D); } } } } and if its needed, heres the particle data: package com.pickleface.ruby.particles; import com.mojang.brigadier.StringReader; import com.mojang.brigadier.exceptions.CommandSyntaxException; import com.mojang.serialization.Codec; import com.mojang.serialization.codecs.RecordCodecBuilder; import java.util.Locale; import net.minecraft.network.PacketBuffer; import net.minecraft.particles.*; import net.minecraft.util.math.MathHelper; import net.minecraft.util.registry.Registry; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; public class RubyParticleData implements IParticleData { public static final Codec<RubyParticleData> field_239802_b_ = RecordCodecBuilder.create((p_239803_0_) -> { return p_239803_0_.group(Codec.FLOAT.fieldOf("r").forGetter((p_239807_0_) -> { return p_239807_0_.red; }), Codec.FLOAT.fieldOf("g").forGetter((p_239806_0_) -> { return p_239806_0_.green; }), Codec.FLOAT.fieldOf("b").forGetter((p_239805_0_) -> { return p_239805_0_.blue; }), Codec.FLOAT.fieldOf("scale").forGetter((p_239804_0_) -> { return p_239804_0_.alpha; })).apply(p_239803_0_, RubyParticleData::new); }); private final float red; private final float green; private final float blue; private final float alpha; public RubyParticleData(float red, float green, float blue, float alpha) { this.red = red; this.green = green; this.blue = blue; this.alpha = MathHelper.clamp(alpha, 0.01F, 4.0F); } public void write(PacketBuffer buffer) { buffer.writeFloat(this.red); buffer.writeFloat(this.green); buffer.writeFloat(this.blue); buffer.writeFloat(this.alpha); } public String getParameters() { return String.format(Locale.ROOT, "%s %.2f %.2f %.2f %.2f", Registry.PARTICLE_TYPE.getKey(this.getType()), this.red, this.green, this.blue, this.alpha); } public ParticleType<RedstoneParticleData> getType() { return ParticleTypes.DUST; } } Any help is appreciated, thanks.
    • February 14
  4. Pickle_Face5

    [1.16.3] Registry Object Not Found

    Pickle_Face5 posted a topic in Modder Support

    Idk what this means. heres the latest.log though. Here's the registry: package com.pickleface.ruby.util; import com.pickleface.ruby.Ruby; import com.pickleface.ruby.armor.ModArmorMaterial; import com.pickleface.ruby.blocks.*; import com.pickleface.ruby.items.*; import com.pickleface.ruby.tools.ModItemTier; import net.minecraft.block.Block; import net.minecraft.block.OreBlock; import net.minecraft.inventory.EquipmentSlotType; import net.minecraft.item.*; import net.minecraft.particles.BasicParticleType; import net.minecraft.particles.ParticleType; import net.minecraft.util.ResourceLocation; import net.minecraft.util.SoundEvent; import net.minecraft.util.SoundEvents; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.fml.RegistryObject; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; public class RegistryHandler { public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, Ruby.MOD_ID); public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, Ruby.MOD_ID); public static final DeferredRegister<SoundEvent> SOUNDS = DeferredRegister.create(ForgeRegistries.SOUND_EVENTS, Ruby.MOD_ID); public static final DeferredRegister<ParticleType<?>> PARTICLES = DeferredRegister.create(ForgeRegistries.PARTICLE_TYPES, Ruby.MOD_ID); public static void init() { IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus(); ITEMS.register(modEventBus); BLOCKS.register(modEventBus); SOUNDS.register(modEventBus); PARTICLES.register(modEventBus); } // Items public static final RegistryObject<Item> RUBY = ITEMS.register("ruby", RubyItem::new); public static final RegistryObject<RubyApple> RUBY_APPLE = ITEMS.register("ruby_apple", RubyApple::new); public static final RegistryObject<MusicDiscItem> MUSIC_DISC_P_A_T = ITEMS.register("music_disc_peace_and_tranquility", RubyMusicDisc::new); // Tools public static final RegistryObject<SwordItem> RUBY_SWORD = ITEMS.register("ruby_sword", () -> new SwordItem(ModItemTier.RUBY, 7, -2.4F, new Item.Properties().group(ItemGroup.COMBAT))); public static final RegistryObject<AxeItem> RUBY_AXE = ITEMS.register("ruby_axe", () -> new AxeItem(ModItemTier.RUBY, 8, -3.0F, new Item.Properties().group(ItemGroup.TOOLS))); public static final RegistryObject<PickaxeItem> RUBY_PICKAXE = ITEMS.register("ruby_pickaxe", () -> new PickaxeItem(ModItemTier.RUBY, 4, -2.8F, new Item.Properties().group(ItemGroup.TOOLS))); public static final RegistryObject<ShovelItem> RUBY_SHOVEL = ITEMS.register("ruby_shovel", () -> new ShovelItem(ModItemTier.RUBY, 6, -3.0F, new Item.Properties().group(ItemGroup.TOOLS))); public static final RegistryObject<HoeItem> RUBY_HOE = ITEMS.register("ruby_hoe", () -> new HoeItem(ModItemTier.RUBY, 0, 0, new Item.Properties().group(ItemGroup.TOOLS))); // Armor public static final RegistryObject<ArmorItem> RUBY_HELMET = ITEMS.register("ruby_helmet", () -> new ArmorItem(ModArmorMaterial.RUBY, EquipmentSlotType.HEAD, new Item.Properties().group(ItemGroup.COMBAT))); public static final RegistryObject<ArmorItem> RUBY_CHESTPLATE = ITEMS.register("ruby_chestplate", () -> new ArmorItem(ModArmorMaterial.RUBY, EquipmentSlotType.CHEST, new Item.Properties().group(ItemGroup.COMBAT))); public static final RegistryObject<ArmorItem> RUBY_LEGGINGS = ITEMS.register("ruby_leggings", () -> new ArmorItem(ModArmorMaterial.RUBY, EquipmentSlotType.LEGS, new Item.Properties().group(ItemGroup.COMBAT))); public static final RegistryObject<ArmorItem> RUBY_BOOTS = ITEMS.register("ruby_boots", () -> new ArmorItem(ModArmorMaterial.RUBY, EquipmentSlotType.FEET, new Item.Properties().group(ItemGroup.COMBAT))); public static final RegistryObject<HorseArmorItem> RUBY_HORSE_ARMOR = ITEMS.register("ruby_horse_armor", () -> new HorseArmorItem(15, new ResourceLocation(Ruby.MOD_ID + ":textures/entity/horse/armor/horse_armor_ruby.png"), new Item.Properties().group(ItemGroup.COMBAT))); // Blocks public static final RegistryObject<Block> BLOCK_OF_RUBY = BLOCKS.register("ruby_block", RubyBlock::new); public static final RegistryObject<OreBlock> RUBY_ORE = BLOCKS.register("ruby_ore", RubyOre::new); // Block Items public static final RegistryObject<Item> BLOCK_OF_RUBY_ITEM = ITEMS.register("ruby_block", () -> new BlockItemBase(BLOCK_OF_RUBY.get())); public static final RegistryObject<Item> RUBY_ORE_ITEM = ITEMS.register("ruby_ore", () -> new BlockItemBase(RUBY_ORE.get())); // Sound Events public static final RegistryObject<SoundEvent> MUSIC_DISC_PEACE_AND_TRANQUILITY = SOUNDS.register("music_disc.peace_and_tranquility", () -> new SoundEvent(new ResourceLocation("ruby", "music_disc.peace_and_tranquility"))); // Particles public static final RegistryObject<ParticleType<BasicParticleType>> RUBY_SHINE = PARTICLES.register("ruby_shine", () -> new BasicParticleType(false)); } Any help is appreciated. latest.log
    • January 6
    • 3 replies
  5. Pickle_Face5

    [1.16.3] Custom Plant No longer Generating.

    Pickle_Face5 posted a topic in Modder Support

    I'm trying to make a berry bush that generates in forests and plains (more common in forests), and now it doesn't generate at all. Here's the code: package com.pickleface.lifecraft.world.gen; import com.google.common.collect.ImmutableSet; import com.pickleface.lifecraft.LifeCraft; import com.pickleface.lifecraft.blocks.BlueberryBush; import com.pickleface.lifecraft.util.Registry; import net.minecraft.block.Blocks; import net.minecraft.world.biome.Biome; import net.minecraft.world.gen.GenerationStage; import net.minecraft.world.gen.blockplacer.SimpleBlockPlacer; import net.minecraft.world.gen.blockstateprovider.SimpleBlockStateProvider; import net.minecraft.world.gen.feature.*; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.event.world.BiomeLoadingEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; @Mod.EventBusSubscriber(modid = LifeCraft.MOD_ID, bus = Mod.EventBusSubscriber.Bus.FORGE, value = Dist.CLIENT) public class VeganGen { @SubscribeEvent public static void generateBushes(BiomeLoadingEvent event) { BlockClusterFeatureConfig BLUEBERRY_BUSH_PATCH_CONFIG = (new BlockClusterFeatureConfig.Builder(new SimpleBlockStateProvider(Registry.BLUEBERRY_BUSH.get().getDefaultState().with(BlueberryBush.AGE, 3)), SimpleBlockPlacer.PLACER)).tries(64).whitelist(ImmutableSet.of(Blocks.GRASS_BLOCK.getDefaultState().getBlock())).func_227317_b_().build(); ConfiguredFeature<?, ?> PATCH_BLUEBERRY_BUSH = Feature.RANDOM_PATCH.withConfiguration(BLUEBERRY_BUSH_PATCH_CONFIG); ConfiguredFeature<?, ?> PATCH_BLUEBERRY_DECORATED = PATCH_BLUEBERRY_BUSH.withPlacement(Features.Placements.PATCH_PLACEMENT).chance(24); if (event.getCategory().getString().equals("forest")) { event.getGeneration().withFeature(GenerationStage.Decoration.VEGETAL_DECORATION, PATCH_BLUEBERRY_DECORATED); } else if (event.getCategory().getString().equals("plains")) { event.getGeneration().withFeature(GenerationStage.Decoration.VEGETAL_DECORATION, PATCH_BLUEBERRY_BUSH); } } } Any help is appreciated.
    • January 3
  6. Pickle_Face5

    [1.16.3] How to find Biome in BiomeLoadingEvent.

    Pickle_Face5 posted a topic in Modder Support

    I'm trying to make a bush block spawn in a certain biome, but how would I do that with BiomeLoadingEvent?
    • January 2
    • 1 reply
  7. Pickle_Face5

    [1.16.3] Custom Particle Registry Object not Present.

    Pickle_Face5 posted a topic in Modder Support

    I'm making a custom particle to ake the game more "alive", but I've never done particles, so this is fun. Anyway, heres the code for the part where I register the factory: @Mod.EventBusSubscriber(modid = WildCraft.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT) public class ParticleUtil { @SubscribeEvent() public static void registerParticles(ParticleFactoryRegisterEvent event) { Minecraft.getInstance().particles.registerFactory(Registry.SPIDER_PARTICLE.get(), SpiderParticle.Factory::new); } } I'm assuming there something wrong with the particle class itself also, so I'll put its code here also: @OnlyIn(Dist.CLIENT) public class SpiderParticle extends SpriteTexturedParticle { public SpiderParticle(ClientWorld world, double x, double y, double z, double motionX, double motionY, double motionZ) { super(world, x, y, z, motionX, motionY, motionZ); float f = this.rand.nextFloat() * 1.0F; this.particleRed = f; this.particleGreen = f; this.particleBlue = f; this.setSize(0.02F, 0.02F); this.particleScale *= this.rand.nextFloat() * 1.1F; this.motionX *= (double)0.02F; this.motionY *= (double)0.02F; this.motionZ *= (double)0.02F; this.maxAge = (int)(20.0D / (Math.random() * 1.0D)); } @Override public IParticleRenderType getRenderType() { return IParticleRenderType.PARTICLE_SHEET_OPAQUE; } @Override public void tick() { this.prevPosX = this.posX; this.prevPosY = this.posY; this.prevPosZ = this.posZ; if(this.maxAge-- <= 0) { this.setExpired(); } else { this.move(this.motionX, this.motionY, this.motionZ); this.motionX *= 1.0D; this.motionY *= 1.0D; this.motionZ *= 1.0D; } } @OnlyIn(Dist.CLIENT) public static class Factory implements IParticleFactory<BasicParticleType> { private final IAnimatedSprite spriteSet; public Factory(IAnimatedSprite sprite) { this.spriteSet = sprite; } @Override public Particle makeParticle(BasicParticleType typeIn, ClientWorld worldIn, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed) { SpiderParticle spiderParticle = new SpiderParticle(worldIn, x, y, z, xSpeed, ySpeed, zSpeed); spiderParticle.setColor(1.0F, 1.0F, 1.0F); spiderParticle.selectSpriteRandomly(spriteSet); return spiderParticle; } } } Any help is appreciated, thanks.
    • December 18, 2020
    • 1 reply
  8. Pickle_Face5

    [1.16.3] Sorting Creative Tab causing Crash

    Pickle_Face5 replied to Pickle_Face5's topic in Modder Support

    Ah, thank you!
    • October 29, 2020
    • 2 replies
  9. Pickle_Face5

    [1.16.3] How to Use Ore Gen

    Pickle_Face5 replied to myounge's topic in Modder Support

    1.16.2 ore generation is broken, and is very difficult to do ore generation in that version. In 1.16.3, there's a new event called BiomeLoadingEvent. Use that event, and inside the event make a ConfiguredFeature for your ore you want to generate (to see how to do this, look how Minecraft does it in minecraft\world\gen\feature\Features). Then in your event, do .getGeneration().withFeature(GenerationStage.Decoration.UNDERGROUND_ORES, <Configured Feature Name Here> Heres an Example from one of my mods: public static void generateOres(BiomeLoadingEvent event) { ConfiguredFeature<?, ?> ORE_SAPPHIRE = Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.field_241882_a, Registry.SAPPHIRE_ORE.get().getDefaultState(), 6)).withPlacement(Placement.field_242910_o.configure(new DepthAverageConfig(15, 16))).func_242728_a(); event.getGeneration().withFeature(GenerationStage.Decoration.UNDERGROUND_ORES, ORE_SAPPHIRE); }
    • October 29, 2020
    • 4 replies
  10. Pickle_Face5

    [1.16.3] Sorting Creative Tab causing Crash

    Pickle_Face5 posted a topic in Modder Support

    I finished setting up my creative inventory tab, but now it's crashing. Heres the minecraft crash log: https://pastebin.com/NBuWDnhV Heres where I'm making my itemGroup (it's also my main mod class): https://pastebin.com/8mjmgLPs I probably made a dumb mistake, but I'm not sure where. Any help is appreciated.
    • October 29, 2020
    • 2 replies
  11. Pickle_Face5

    [1.16.1] How to power redstone wire?

    Pickle_Face5 replied to Pickle_Face5's topic in Modder Support

    Oh, okay, I thought there was an override I could do to set it to full power.
    • September 6, 2020
    • 2 replies
  12. Pickle_Face5

    [1.16.1] How to power redstone wire?

    Pickle_Face5 posted a topic in Modder Support

    Hello. I'm making an enchantment that when walking over redstone, It fully powers it, but I can't find anything for powering a wire. Here's my code: package com.pickleface.redstone.enchants; import com.pickleface.redstone.Redstone; import net.minecraft.block.Blocks; import net.minecraft.block.RedstoneWireBlock; import net.minecraft.enchantment.Enchantment; import net.minecraft.enchantment.EnchantmentType; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.inventory.EquipmentSlotType; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; public class Energy extends Enchantment { protected Energy() { super(Rarity.RARE, EnchantmentType.ARMOR_FEET, new EquipmentSlotType[] {EquipmentSlotType.FEET}); } @Mod.EventBusSubscriber(modid = Redstone.MOD_ID, bus = Mod.EventBusSubscriber.Bus.FORGE, value = Dist.CLIENT) public static class Event { @SubscribeEvent public static void onBootsEquipped(TickEvent.PlayerTickEvent event) { PlayerEntity player = event.player; if (player.getBlockState() == Blocks.REDSTONE_WIRE.getDefaultState()) { player.getBlockState().(power redstone wire here, cant find anything) } } } } Any help is appreciated.
    • September 6, 2020
    • 2 replies
  13. Pickle_Face5

    [1.16.1] How to get Player Helmet for event?

    Pickle_Face5 posted a topic in Modder Support

    Title says it all. I cant find a way. Sad :< Any help is appreciated. Tanks.
    • September 3, 2020
    • 3 replies
  14. Pickle_Face5

    [1.16.1] Flower Generation crashing on start

    Pickle_Face5 replied to Pickle_Face5's topic in Modder Support

    Thank you! I’ll add this to my code. Also, can I declare the config(commented out right now) as local variables too?
    • August 12, 2020
    • 7 replies
  15. Pickle_Face5

    [1.16.1] Flower Generation crashing on start

    Pickle_Face5 replied to Pickle_Face5's topic in Modder Support

    Works now. Here's my code: package com.pickleface.survival.world.gen; import com.google.common.collect.ImmutableSet; import com.pickleface.survival.Registry; import com.pickleface.survival.Survival; import com.pickleface.survival.blocks.BlueberryBush; import com.pickleface.survival.blocks.RaspberryBush; import net.minecraft.block.Blocks; import net.minecraft.world.biome.Biome; import net.minecraft.world.biome.Biomes; import net.minecraft.world.gen.GenerationStage; import net.minecraft.world.gen.blockplacer.SimpleBlockPlacer; import net.minecraft.world.gen.blockstateprovider.SimpleBlockStateProvider; import net.minecraft.world.gen.feature.BlockClusterFeatureConfig; import net.minecraft.world.gen.feature.Feature; import net.minecraft.world.gen.placement.ChanceConfig; import net.minecraft.world.gen.placement.FrequencyConfig; import net.minecraft.world.gen.placement.Placement; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent; import net.minecraftforge.registries.ForgeRegistries; @Mod.EventBusSubscriber(modid = Survival.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) public class DecorationGen { // Get Stuff to Generate //private static final BlockState BLUEBERRY_BUSH = Registry.BLUEBERRY_BUSH.get().getDefaultState().with(BlueberryBush.AGE, 3); //private static final BlockState RASPBERRY_BUSH = Registry.RASPBERRY_BUSH.get().getDefaultState().with(RaspberryBush.AGE, 3); // Make Config With Stuff //public static final BlockClusterFeatureConfig BLUEBERRY_BUSH_CONFIG = (new BlockClusterFeatureConfig.Builder(new SimpleBlockStateProvider(Registry.BLUEBERRY_BUSH.get().getDefaultState().with(BlueberryBush.AGE, 3)), SimpleBlockPlacer.field_236447_c_)).tries(64).whitelist(ImmutableSet.of(Blocks.GRASS_BLOCK.getBlock())).func_227317_b_().build(); //public static final BlockClusterFeatureConfig RASPBERRY_BUSH_CONFIG = (new BlockClusterFeatureConfig.Builder(new SimpleBlockStateProvider(RASPBERRY_BUSH), SimpleBlockPlacer.field_236447_c_)).tries(64).whitelist(ImmutableSet.of(Blocks.GRASS_BLOCK.getBlock())).func_227317_b_().build(); @SubscribeEvent public static void generateDecorations(final FMLCommonSetupEvent event) { for (Biome biome : ForgeRegistries.BIOMES) { if (biome == Biomes.PLAINS) { biome.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration((new BlockClusterFeatureConfig.Builder(new SimpleBlockStateProvider(Registry.BLUEBERRY_BUSH.get().getDefaultState().with(BlueberryBush.AGE, 3)), SimpleBlockPlacer.field_236447_c_)).tries(64).whitelist(ImmutableSet.of(Blocks.GRASS_BLOCK.getBlock())).func_227317_b_().build()).withPlacement(Placement.COUNT_HEIGHTMAP_DOUBLE.configure(new FrequencyConfig(1)))); } if (biome == Biomes.SUNFLOWER_PLAINS) { biome.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration((new BlockClusterFeatureConfig.Builder(new SimpleBlockStateProvider(Registry.BLUEBERRY_BUSH.get().getDefaultState().with(BlueberryBush.AGE, 3)), SimpleBlockPlacer.field_236447_c_)).tries(64).whitelist(ImmutableSet.of(Blocks.GRASS_BLOCK.getBlock())).func_227317_b_().build()).withPlacement(Placement.COUNT_HEIGHTMAP_DOUBLE.configure(new FrequencyConfig(1)))); } if (biome == Biomes.FOREST) { biome.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration((new BlockClusterFeatureConfig.Builder(new SimpleBlockStateProvider(Registry.RASPBERRY_BUSH.get().getDefaultState().with(RaspberryBush.AGE, 3)), SimpleBlockPlacer.field_236447_c_)).tries(64).whitelist(ImmutableSet.of(Blocks.GRASS_BLOCK.getBlock())).func_227317_b_().build()).withPlacement(Placement.CHANCE_HEIGHTMAP_DOUBLE.configure(new ChanceConfig(12)))); } if (biome == Biomes.BIRCH_FOREST) { biome.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration((new BlockClusterFeatureConfig.Builder(new SimpleBlockStateProvider(Registry.RASPBERRY_BUSH.get().getDefaultState().with(RaspberryBush.AGE, 3)), SimpleBlockPlacer.field_236447_c_)).tries(64).whitelist(ImmutableSet.of(Blocks.GRASS_BLOCK.getBlock())).func_227317_b_().build()).withPlacement(Placement.CHANCE_HEIGHTMAP_DOUBLE.configure(new ChanceConfig(12)))); } if (biome == Biomes.FLOWER_FOREST) { biome.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration((new BlockClusterFeatureConfig.Builder(new SimpleBlockStateProvider(Registry.RASPBERRY_BUSH.get().getDefaultState().with(RaspberryBush.AGE, 3)), SimpleBlockPlacer.field_236447_c_)).tries(64).whitelist(ImmutableSet.of(Blocks.GRASS_BLOCK.getBlock())).func_227317_b_().build()).withPlacement(Placement.CHANCE_HEIGHTMAP_DOUBLE.configure(new ChanceConfig(12)))); } if (biome == Biomes.DARK_FOREST) { biome.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration((new BlockClusterFeatureConfig.Builder(new SimpleBlockStateProvider(Registry.RASPBERRY_BUSH.get().getDefaultState().with(RaspberryBush.AGE, 3)), SimpleBlockPlacer.field_236447_c_)).tries(64).whitelist(ImmutableSet.of(Blocks.GRASS_BLOCK.getBlock())).func_227317_b_().build()).withPlacement(Placement.CHANCE_HEIGHTMAP_DOUBLE.configure(new ChanceConfig(12)))); } if (biome == Biomes.JUNGLE_EDGE) { biome.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration((new BlockClusterFeatureConfig.Builder(new SimpleBlockStateProvider(Registry.BLUEBERRY_BUSH.get().getDefaultState().with(BlueberryBush.AGE, 3)), SimpleBlockPlacer.field_236447_c_)).tries(64).whitelist(ImmutableSet.of(Blocks.GRASS_BLOCK.getBlock())).func_227317_b_().build()).withPlacement(Placement.COUNT_HEIGHTMAP_DOUBLE.configure(new FrequencyConfig(1)))); biome.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration((new BlockClusterFeatureConfig.Builder(new SimpleBlockStateProvider(Registry.RASPBERRY_BUSH.get().getDefaultState().with(RaspberryBush.AGE, 3)), SimpleBlockPlacer.field_236447_c_)).tries(64).whitelist(ImmutableSet.of(Blocks.GRASS_BLOCK.getBlock())).func_227317_b_().build()).withPlacement(Placement.CHANCE_HEIGHTMAP_DOUBLE.configure(new ChanceConfig(12)))); } if (biome == Biomes.JUNGLE) { biome.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration((new BlockClusterFeatureConfig.Builder(new SimpleBlockStateProvider(Registry.BLUEBERRY_BUSH.get().getDefaultState().with(BlueberryBush.AGE, 3)), SimpleBlockPlacer.field_236447_c_)).tries(64).whitelist(ImmutableSet.of(Blocks.GRASS_BLOCK.getBlock())).func_227317_b_().build()).withPlacement(Placement.COUNT_HEIGHTMAP_DOUBLE.configure(new FrequencyConfig(1)))); biome.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration((new BlockClusterFeatureConfig.Builder(new SimpleBlockStateProvider(Registry.RASPBERRY_BUSH.get().getDefaultState().with(RaspberryBush.AGE, 3)), SimpleBlockPlacer.field_236447_c_)).tries(64).whitelist(ImmutableSet.of(Blocks.GRASS_BLOCK.getBlock())).func_227317_b_().build()).withPlacement(Placement.CHANCE_HEIGHTMAP_DOUBLE.configure(new ChanceConfig(12)))); } if (biome == Biomes.MODIFIED_JUNGLE) { biome.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration((new BlockClusterFeatureConfig.Builder(new SimpleBlockStateProvider(Registry.BLUEBERRY_BUSH.get().getDefaultState().with(BlueberryBush.AGE, 3)), SimpleBlockPlacer.field_236447_c_)).tries(64).whitelist(ImmutableSet.of(Blocks.GRASS_BLOCK.getBlock())).func_227317_b_().build()).withPlacement(Placement.COUNT_HEIGHTMAP_DOUBLE.configure(new FrequencyConfig(1)))); biome.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration((new BlockClusterFeatureConfig.Builder(new SimpleBlockStateProvider(Registry.RASPBERRY_BUSH.get().getDefaultState().with(RaspberryBush.AGE, 3)), SimpleBlockPlacer.field_236447_c_)).tries(64).whitelist(ImmutableSet.of(Blocks.GRASS_BLOCK.getBlock())).func_227317_b_().build()).withPlacement(Placement.CHANCE_HEIGHTMAP_DOUBLE.configure(new ChanceConfig(12)))); } } } }
    • August 12, 2020
    • 7 replies
  16. Pickle_Face5

    [1.16.1] Flower Generation crashing on start

    Pickle_Face5 replied to Pickle_Face5's topic in Modder Support

    Thanks for the tip! Can you give the updated piece of code though? I'm pretty bad a following tips Also, that explais the 'null' values. When I go ingame, it says null.
    • August 12, 2020
    • 7 replies
  • All Activity
  • Home
  • Pickle_Face5
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community