Jump to content

1234ab

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by 1234ab

  1. Thanks for your reply! I tried to look around, but I'm quite lost. Do I need to look into Features, Biome#decorate(), or something else? I would like it to generate in all biomes, so it would need to be biome-independent. My goal is to place rails (single blocks) based on the terrain height and adjacent block's height (to create a connected rail).
  2. Hi, I want to make a rail go through the world, but I can't place the rail. I tried to investigate and found that the same thing works with normal torch, but it doesn't with the redstone one. Code: public static Block blockToPlace = Blocks.TORCH; @SubscribeEvent public void railGenerator(ChunkEvent.Load event) { IChunk theChunk = event.getChunk(); theChunk.setBlockState(new BlockPos(5,80,5), blockToPlace.getDefaultState(), false); } It works as I would expect (places torches in every chunk), but if I replace Blocks.TORCH with Blocks.REDSTONE_TORCH, generating a new world (and logging into an existing one too IMO) will hang on 0% with the two white dots and 2-2 green and blue circles (with the dirt background). The same thing happens with RAIL or POWERED_RAIL. I think its cause may be that the blocks that doesn't work extend another type of block (AbstractRailBlock or TorchBlock), but it might just be something else. I use MC 1.15.2 and Forge 31.1.0. The end of debug.log: [03Mar2020 18:18:58.080] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRegistry/REGISTRIES]: Applying holder lookups [03Mar2020 18:18:58.085] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRegistry/REGISTRIES]: Holder lookups applied [03Mar2020 18:18:58.089] [Server thread/DEBUG] [net.minecraftforge.fml.server.ServerLifecycleHooks/CORE]: Generating PackInfo named mod:forge for mod file /home/balint/.gradle/caches/forge_gradle/minecraft_user_repo/net/minecraftforge/forge/1.15.2-31.1.0_mapped_snapshot_20190719-1.14.3/forge-1.15.2-31.1.0_mapped_snapshot_20190719-1.14.3-recomp.jar [03Mar2020 18:18:58.089] [Server thread/DEBUG] [net.minecraftforge.fml.server.ServerLifecycleHooks/CORE]: Generating PackInfo named mod:railfunadventure for mod file /home/balint/data/programs/mc-modding/railfun_adventure/build/resources/main [03Mar2020 18:18:58.089] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Found new data pack vanilla, loading it automatically [03Mar2020 18:18:58.090] [Server thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, forge-1.15.2-31.1.0_mapped_snapshot_20190719-1.14.3-recomp.jar, main [03Mar2020 18:18:59.300] [Server thread/INFO] [net.minecraft.item.crafting.RecipeManager/]: Loaded 6 recipes [03Mar2020 18:19:00.196] [Server thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 825 advancements I'm quite new so I really hope that I didn't miss anything obvious.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.