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

QWERTY 52 38

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by QWERTY 52 38

  1. Mowzie's Mob mod supports 1.16.5. Maybe you downloaded the wrong version of the mod. Find a right version here
  2. Thanks! By the way, could you tell me what's wrong with this custom advancement JSON? { "display": { "icon": { "item": "mcbbswiki:item_mcbbswiki_chestplate_level1" }, "title": { "translate": "advancements.mcbbswiki.armor_level1.title" }, "description": { "translate": "advancements.mcbbswiki.armor_level1.description" }, "frame": "goal" }, "parent": "mcbbswiki:ingot", "criteria": { "armor_level1_1": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ { "item": "mcbbswiki:item_mcbbswiki_helmet_level1" } ] } }, "armor_level1_2": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ { "item": "mcbbswiki:item_mcbbswiki_chestplate_level1" } ] } }, "armor_level1_3": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ { "item": "mcbbswiki:item_mcbbswiki_leggings_level1" } ] } }, "armor_level1_4": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ { "item": "mcbbswiki:item_mcbbswiki_boots_level1" } ] } } }, "requirements": [ ["armor_level1_1"], ["armor_level1_2"], ["armor_level1_3"], ["armor_level1_4"] ], "rewards": { "loot": [ "mcbbswiki:advancements/tools_level1" ], "experience": 100 } } I expect the advancement could be made if I get all the four armors. But actually, when I get any items, I will make the advancement. That's too strange. Could you help me?
  3. Code of the block: public class BlockMcbbsWiki extends Block { public BlockMcbbsWiki(){ super((Properties.of(Material.STONE) .strength(2.5F, 10.0F) .requiresCorrectToolForDrops())); } } and the loot table (in src/main/resources/data/mcbbswiki/loot_tables/blocks): { "type": "minecraft:block", "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:item", "name": "mcbbswiki:block_mcbbswiki" } ] } ] } I want to make BlockMcbbsWiki drops itself if I use pickaxes leveled at least level 3(diamond), or nothing if the tool is not right. But now, it drops nothing with any tools. And there isn't a method that can set a harvest level limit in Blocks class. Please help me. Mod code: https://github.com/QWERTY770/MCBBS-Wiki-Mod
  4. I am trying to updating my code in 1.16 to 1.17, but I have some problems. public class SmallMcbbsWikiMonsterModel extends EntityModel<SmallMcbbsWikiMonsterEntity> { private final ModelPart body; public SmallMcbbsWikiMonsterModel() { textureWidth = 64; textureHeight = 64; body = new ModelRenderer(this, 0, 0); body.addBox(-16.0F, -8.0F, 0.0F, 16.0F, 8.0F, 16.0F); } @Override @ParametersAreNonnullByDefault public void setupAnim(SmallMcbbsWikiMonsterEntity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) { } @Override @ParametersAreNonnullByDefault public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha) { body.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn); } } These four things: textureWidth, textureHeight, ModelRenderer and ModelPart.addBox does not exist in 1.17. What are their names now? The model is just a single cuboid, with nothing else. Please help me to update my code. Thanks.
  5. Could you show us the log files? It's in the folder ".minecraft\logs".
  6. Here is my code to register entity renderers in 1.16. It doesn't work in 1.17. @Mod.EventBusSubscriber(modid = McbbsWiki.ID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT) public class ClientSetupEvent { @SubscribeEvent public static void onClientSetUpEvent(FMLClientSetupEvent event) { RenderingRegistry.registerEntityRenderingHandler(EntityRegistry.entity_small_mcbbswiki_monster.get(), SmallMcbbsWikiMonsterRender::new); // and so on } } There isn't a class called "RenderingRegistry" in 1.17. So how can I register entity renderers?
  7. Generate feature mcbbswiki:feature_lucky_block in Mcbbs Wiki Normal Biome
  8. 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
  9. 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
  10. 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?
  11. 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.
×
×
  • Create New...

Important Information

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