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
  • QWERTY 52 38

QWERTY 52 38

Members
 View Profile  See their activity
  • Content Count

    7
  • Joined

    November 22, 2020
  • Last visited

    January 20

 Content Type 

  • All Activity

Profiles

  • Status Updates
  • Status Replies

Forums

  • Topics
  • Posts

Calendar

  • Events

Everything posted by QWERTY 52 38

  1. QWERTY 52 38

    [1.16.4]NullPointerException when using registered custom features

    QWERTY 52 38 replied to QWERTY 52 38's topic in Modder Support

    Generate feature mcbbswiki:feature_lucky_block in Mcbbs Wiki Normal Biome
    • January 20
    • 6 replies
  2. QWERTY 52 38

    [1.16.4]NullPointerException when using registered custom features

    QWERTY 52 38 replied to QWERTY 52 38's topic in Modder Support

    So, how can I do that?
    • January 20
    • 6 replies
  3. QWERTY 52 38

    [1.16.4]NullPointerException when using registered custom features

    QWERTY 52 38 replied to QWERTY 52 38's topic in Modder Support

    Attention:This is a method, not a class. public static Biome makeMcbbsWikiNormalBiome(){ MobSpawnInfo.Builder mobSpawnInfo = new MobSpawnInfo.Builder(); mobSpawnInfo.isValidSpawnBiomeForPlayer(); DefaultBiomeFeatures.withPassiveMobs(mobSpawnInfo); mobSpawnInfo.withSpawner(EntityClassification.CREATURE, new MobSpawnInfo.Spawners(EntityRegistry.entity_small_mcbbswiki_monster.get(), 10, 5, 7)); mobSpawnInfo.withSpawner(EntityClassification.CREATURE, new MobSpawnInfo.Spawners(EntityRegistry.entity_middle_mcbbswiki_monster.get(), 7, 3, 5)); mobSpawnInfo.withSpawner(EntityClassification.CREATURE, new MobSpawnInfo.Spawners(EntityRegistry.entity_large_mcbbswiki_monster.get(), 4, 1, 3)); mobSpawnInfo.withSpawner(EntityClassification.CREATURE, new MobSpawnInfo.Spawners(EntityType.LLAMA, 5, 4, 6)); BiomeGenerationSettings.Builder biomeGeneSettings = (new BiomeGenerationSettings.Builder()).withSurfaceBuilder(ConfiguredSurfaceBuilders.field_244181_m); DefaultBiomeFeatures.withStrongholdAndMineshaft(biomeGeneSettings); biomeGeneSettings.withStructure(StructureFeatures.RUINED_PORTAL); biomeGeneSettings.withFeature(GenerationStage.Decoration.VEGETAL_DECORATION, FeatureRegistry.feature_lucky_block.get().withConfiguration(IFeatureConfig.NO_FEATURE_CONFIG)); DefaultBiomeFeatures.withCavesAndCanyons(biomeGeneSettings); DefaultBiomeFeatures.withLavaAndWaterLakes(biomeGeneSettings); DefaultBiomeFeatures.withMonsterRoom(biomeGeneSettings); DefaultBiomeFeatures.withCommonOverworldBlocks(biomeGeneSettings); DefaultBiomeFeatures.withOverworldOres(biomeGeneSettings); DefaultBiomeFeatures.withDisks(biomeGeneSettings); DefaultBiomeFeatures.withMountainTrees(biomeGeneSettings); DefaultBiomeFeatures.withDefaultFlowers(biomeGeneSettings); DefaultBiomeFeatures.withBadlandsGrass(biomeGeneSettings); DefaultBiomeFeatures.withNormalMushroomGeneration(biomeGeneSettings); DefaultBiomeFeatures.withSugarCaneAndPumpkins(biomeGeneSettings); DefaultBiomeFeatures.withLavaAndWaterSprings(biomeGeneSettings); DefaultBiomeFeatures.withEmeraldOre(biomeGeneSettings); DefaultBiomeFeatures.withInfestedStone(biomeGeneSettings); DefaultBiomeFeatures.withFrozenTopLayer(biomeGeneSettings); return (new Biome.Builder()) .precipitation(Biome.RainType.RAIN) .category(Biome.Category.EXTREME_HILLS) .depth(-0.5F) .scale(1.3F) .temperature(0.7F) .downfall(0.3F) .setEffects((new BiomeAmbience.Builder()) .setWaterColor(0x3f76e4) .setWaterFogColor(0x050533) .setFogColor(0xc0d8ff) .withSkyColor(getSkyColorWithTemperatureModifier(0.7F)) .setMoodSound(MoodSoundAmbience.DEFAULT_CAVE).build()) .withMobSpawnSettings(mobSpawnInfo.copy()) .withGenerationSettings(biomeGeneSettings.build()) .build(); } See https://github.com/QWERTY770/MCBBS-Wiki-Mod/tree/main/src/main/java/cn/mcbbswiki/qwerty5238/world
    • January 20
    • 6 replies
  4. QWERTY 52 38

    [1.16.4]NullPointerException when using registered custom features

    QWERTY 52 38 posted a topic in Modder Support

    Code repository: Here I registered my custom feature in FeatureRegistry.java and McbbsWiki.java. FeatureRegistry.java: public static final DeferredRegister<Feature<?>> FEATURES = DeferredRegister.create(ForgeRegistries.FEATURES, "mcbbswiki"); public static RegistryObject<McbbsWikiLuckyBlockFeature> feature_lucky_block = FEATURES.register("feature_lucky_block", () -> new McbbsWikiLuckyBlockFeature(NoFeatureConfig.field_236558_a_)); McbbsWiki.java (the main class of this mod): FeatureRegistry.FEATURES.register( FMLJavaModLoadingContext.get().getModEventBus() ); But, when I used FeatureRegistry.feature_lucky_block.get() to get the object (in world.biome.McbbsWikiBiomeMaker.java:37), the game throwed a NullPointerException and crashed. I found out "FeatureRegistry.feature_lucky_block.isPresent()" returned false and "FeatureRegistry.feature_lucky_block.value" is null, but do not know how to solve the problem. The full logs are shown below.Please help me. latest.log crash-2021-01-20_15.04.42-fml.txt
    • January 20
    • 6 replies
  5. QWERTY 52 38

    (1.16.4) Forge Installer not starting at all, only creates a log file

    QWERTY 52 38 replied to Juniikuma's topic in Support & Bug Reports

    You may delete Gradle(and rebuild it)
    • December 13, 2020
    • 14 replies
  6. QWERTY 52 38

    [1.16.4]How to generate ores

    QWERTY 52 38 posted a topic in Modder Support

    I am trying to make my own mod and I want to add ores at overworld. A tutorial said I should use biome.addFeature like this: @Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD) public class OreGen { @SubscribeEvent public static void onSetUpEvent(FMLCommonSetupEvent event) { for (Biome biome : ForgeRegistries.BIOMES) { biome.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration( new OreFeatureConfig(OreFeatureConfig.FillerBlockType.BASE_STONE_OVERWORLD, BlockRegistry.block_mcbbswiki.get().getDefaultState(), 3) ).withPlacement(Placement.DEPTH_AVERAGE.configure(new DepthAverageConfig(20, 5))) ); } } } However, in minecraft 1.16.4, there's no biome.addFeature method. So, How do I use OreGen?
    • December 12, 2020
    • 1 reply
  7. QWERTY 52 38

    Missing License Information in file Mod File

    QWERTY 52 38 posted a topic in Modder Support

    I'm learning about Minecraft Mods.I made a simple mod (named "mcbbswiki") and tries to run it but the game crashed in a few minutes.It shows Failure message: Missing License Information in file Mod File: D:\forge-1.16.4-35.1.0-mdk\build\resources\main More information: ---- Minecraft Crash Report ---- // Why did you do that? Time: 20-11-22 下午8:53 Description: Mod loading error has occurred java.lang.Exception: Mod Loading has failed at net.minecraftforge.fml.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:85) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at net.minecraftforge.fml.client.ClientModLoader.completeModLoading(ClientModLoader.java:188) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.lambda$null$1(Minecraft.java:513) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.util.Util.acceptOrElse(Util.java:323) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at net.minecraft.client.Minecraft.lambda$new$2(Minecraft.java:509) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.gui.ResourceLoadProgressGui.render(ResourceLoadProgressGui.java:113) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.GameRenderer.updateCameraAndRender(GameRenderer.java:492) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1002) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.run(Minecraft.java:612) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(Main.java:184) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_261] {} at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_261] {} at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_261] {} at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_261] {} at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.6.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.6.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.6.jar:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.6.jar:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.6.jar:?] {} at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Stacktrace: at net.minecraftforge.fml.CrashReportExtender.lambda$dumpModLoadingCrashReport$7(CrashReportExtender.java:88) ~[forge:?] {re:classloading} -- NO MOD INFO AVAILABLE -- Details: Mod File: NO FILE INFO Failure message: Missing License Information in file Mod File: D:\forge-1.16.4-35.1.0-mdk\build\resources\main Mod Version: NO MOD INFO AVAILABLE Mod Issue URL: NOT PROVIDED Exception message: MISSING EXCEPTION MESSAGE Stacktrace: at net.minecraftforge.fml.CrashReportExtender.lambda$dumpModLoadingCrashReport$7(CrashReportExtender.java:88) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at java.util.ArrayList.forEach(ArrayList.java:1259) ~[?:1.8.0_261] {} at net.minecraftforge.fml.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:86) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at net.minecraftforge.fml.client.ClientModLoader.completeModLoading(ClientModLoader.java:188) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.lambda$null$1(Minecraft.java:513) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.util.Util.acceptOrElse(Util.java:323) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at net.minecraft.client.Minecraft.lambda$new$2(Minecraft.java:509) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.gui.ResourceLoadProgressGui.render(ResourceLoadProgressGui.java:113) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.GameRenderer.updateCameraAndRender(GameRenderer.java:492) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1002) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.run(Minecraft.java:612) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(Main.java:184) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_261] {} at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_261] {} at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_261] {} at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_261] {} at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.6.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.6.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.6.jar:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.6.jar:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.6.jar:?] {} at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {} -- System Details -- Details: Minecraft Version: 1.16.4 Minecraft Version ID: 1.16.4 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_261, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 693732952 bytes (661 MB) / 1027080192 bytes (979 MB) up to 1888485376 bytes (1801 MB) CPUs: 8 JVM Flags: 1 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump ModLauncher: 8.0.6+85+master.325de55 ModLauncher launch target: fmluserdevclient ModLauncher naming: mcp ModLauncher services: /mixin-0.8.2.jar mixin PLUGINSERVICE /eventbus-3.0.5-service.jar eventbus PLUGINSERVICE /forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-launcher.jar object_holder_definalize PLUGINSERVICE /forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-launcher.jar runtime_enum_extender PLUGINSERVICE /accesstransformers-2.2.0-shadowed.jar accesstransformer PLUGINSERVICE /forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-launcher.jar capability_inject_definalize PLUGINSERVICE /forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-launcher.jar runtimedistcleaner PLUGINSERVICE /mixin-0.8.2.jar mixin TRANSFORMATIONSERVICE /forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.3-launcher.jar fml TRANSFORMATIONSERVICE FML: 35.1 Forge: net.minecraftforge:35.1.0 FML Language Providers: javafml@35.1 minecraft@1 Mod List: client-extra.jar |Minecraft |minecraft |1.16.4 |NONE |a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f forge-1.16.4-35.1.0_mapped_snapshot_20201028-1.16.|Forge |forge |35.1.0 |NONE |NOSIGNATURE main |MCBBS Wiki |mcbbswiki |0.0.1 |NONE |NOSIGNATURE[20:57:38] [Render thread/INFO] [minecraft/Minecraft]: Stopping! Disconnected from the target VM, address: '127.0.0.1:64051', transport: 'socket' I really wonder where I should put the license information.
    • November 22, 2020
    • 1 reply
  • All Activity
  • Home
  • QWERTY 52 38
  • Theme

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