Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

lucky block mod has failed to load correctly

Recommended Posts

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Where is this constructor called? Why are you registering random event listeners in this constructor?
    • public class FeatrueInit { public static void addOres(final BiomeLoadingEvent event) { addOre(event, OreFeatureConfig.FillerBlockType.NATURAL_STONE, LegendBlock.getLegendBlock.defaultBlockState(), 4, 0, 60, 20); } public static void addOre(final BiomeLoadingEvent event, RuleTest rule, BlockState state, int veinSize, int minHeight, int maxHeight, int amount) { event.getGeneration().addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.configured(new OreFeatureConfig(rule, state, veinSize)) .decorated(Placement.RANGE.configured(new TopSolidRangeConfig(minHeight, 0, maxHeight))) .squared().count(amount)); } } @Mod.EventBusSubscriber(modid = Utils.MOD_ID,bus = Mod.EventBusSubscriber.Bus.MOD) public class Registry { @SubscribeEvent public static void onPotionRegistration(RegistryEvent.Register<Effect> event) { event.getRegistry().registerAll(BLInstinct.getBLInstinct().addAttributeModifier(Attributes.MAX_HEALTH,"7107DE5E-7CE8-4030-940E-514C1F1608901",-4.0f, AttributeModifier.Operation.ADDITION) .addAttributeModifier(Attributes.ATTACK_DAMAGE,"7107DE5E-7CE8-4030-940E-514C1F1608901",5.0f, AttributeModifier.Operation.ADDITION) .setRegistryName(Utils.MOD_ID, "bl_instinct")); } @SubscribeEvent public static void onBlockRegistration(RegistryEvent.Register<Block> event){ event.getRegistry().registerAll(LegendBlock.getLegendBlock.setRegistryName(Utils.MOD_ID, "legend_block")); } @SubscribeEvent public static void onItemRegistration(RegistryEvent.Register<Item> event){ event.getRegistry().registerAll(new BlockItem(LegendBlock.getLegendBlock,new Item.Properties().tab(ModGroup.legendGroup)).setRegistryName(Utils.MOD_ID, "legend_block")); } public Registry() { IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus(); MinecraftForge.EVENT_BUS.addListener(EventPriority.HIGH, FeatrueInit::addOres); MinecraftForge.EVENT_BUS.register(this); } }  
    • Thank you! I did notice AbstractContainerMenu#getCarried and was able use that. Sorry, I am maintaining my mods in 1.16.5, 1.17.1 and 1.18 right now, and I just noticed that PlayerInventory#getItemStack does indeed exist in 1.16.5 but not 1.17.1 which doesn't have PlayerInventory at all, just Inventory which does not have getItemStack. My title should have said 1.17.1+. Sorry for the confusion.
    • I find in both BlockBed and BlockDoor  ,  i only find one method in commen that use SetBlock()   (which i assme? is how you set a block) setPlacedBy() when i override setPlacedBy() in my custom_block,  it never gets called.  the custom_block does extend three  classes(that don't have  setPlacedBy() ) before Block class, but that wasn't a problem in 1.16     I hope im making sense  
    • Okay, the problem is I'm old and forgetful.  It  runs fine.  I thought I did a fresh install but didn't do it right, so the problem is with GDLauncher.  This explains the different exit code.  I'll go bother them about it. Thanks for the fresh eyes to poke me back to reality
  • Topics

  • Who's Online (See full list)

  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.