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

Spring

Members
  • Posts

    87
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Location
    China

Recent Profile Visitors

2550 profile views

Spring's Achievements

Stone Miner

Stone Miner (3/8)

0

Reputation

  1. There is only one world available variable, how to find the biome in the world?
  2. solved: event.getGeneration().addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, ModConfiguredFeatures.LIGHTNING_BAMBOO_SAPLING);
  3. like this: Entity entity = event.getEntity(); if (entity.isAlive() && entity instanceof ZombieEntity) { ZombieEntity zombie = (ZombieEntity) entity; // TODO ... event.setCanceled(true); } Cancel zombie spawn
  4. i use: public static void generatePlant(final BiomeLoadingEvent event) { if (event.getName() != null) { IForgeRegistry<Biome> biomes = ForgeRegistries.BIOMES; for (Biome biome : biomes) { if (biome == biomes.getValue(new ResourceLocation("bamboo_jungle"))) { BiomeGenerationSettings.Builder builder = new BiomeGenerationSettings.Builder() .surfaceBuilder(ConfiguredSurfaceBuilders.GRASS); builder.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, ModConfiguredFeatures.LIGHTNING_BAMBOO_SAPLING); builder.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Features.BAMBOO_VEGETATION); } } } } But he didn't work
  5. I want to generate some plants in the bamboo biome, but bamboo does not seem to be a biome? If I want to generate custom plants in the bamboo forest, what should I do, can this be achieved? Or another way. Delete the bamboo biome and generate it by me I found the registration bamboo biome in the BiomeRegistry class. What should I do next, any suggestions?
  6. I want to do certain things when the weather changes, such as generating some plants. Is there such an event? I didn't find it. If not, is there a recommended way to implement it? thanks
  7. block bench: my entity model,export use java model private final ModelRenderer renderer; public SkyLanternModel() { texWidth = 16; texHeight = 16; renderer = new ModelRenderer(this); renderer.setPos(0.0F, 18.0F, 0.0F); renderer.texOffs(3, 3).addBox(-5.0F, -8.5F, -5.0F, 10.0F, 0.0F, 10.0F, 0.0F, false); renderer.texOffs(0, 25).addBox(-5.5F, -8.0F, -5.5F, 11.0F, 0.0F, 11.0F, 0.0F, false); renderer.texOffs(0, 0).addBox(-6.0F, -7.5F, -6.0F, 12.0F, 13.0F, 12.0F, 0.0F, false); } @Override public void setupAnim(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) { } @Override public void renderToBuffer(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) { renderer.render(matrixStack, buffer, packedLight, packedOverlay); } public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) { modelRenderer.xRot = x; modelRenderer.yRot = y; modelRenderer.zRot = z; } There is a problem with his rendering, how to make it work
  8. You are right, he works now
  9. java.lang.NullPointerException: Cannot invoke "net.minecraft.client.renderer.entity.EntityRenderer.shouldRender(net.minecraft.entity.Entity, net.minecraft.client.renderer.culling.ClippingHelper, double, double, double)" because "entityrenderer" is null at net.minecraft.client.renderer.entity.EntityRendererManager.shouldRender(EntityRendererManager.java:238) ~[forge-1.16.5-36.2.2_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.WorldRenderer.renderLevel(WorldRenderer.java:987) ~[forge-1.16.5-36.2.2_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.GameRenderer.renderLevel(GameRenderer.java:608) ~[forge-1.16.5-36.2.2_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.GameRenderer.render(GameRenderer.java:425) ~[forge-1.16.5-36.2.2_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.runTick(Minecraft.java:976) ~[forge-1.16.5-36.2.2_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.run(Minecraft.java:607) ~[forge-1.16.5-36.2.2_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(Main.java:184) ~[forge-1.16.5-36.2.2_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {} at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {} at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {} at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.5-36.2.2_mapped_official_1.16.5-recomp.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {} at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:108) [forge-1.16.5-36.2.2_mapped_official_1.16.5-recomp.jar:?] {} He broke down
  10. you forge version?Detailed version like this: 1.16.5-36.2.2
  11. Where is this code in vanilla, let me see
×
×
  • Create New...

Important Information

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