Everything posted by Luis_ST
-
Valhelsia Forge Server won't start
post debug log
-
[Solved] [1.16.4] Can't get custom plants to generate
the ConfiguredFeature works i copied your code and i found the feature, but it's very rare, rare than the pumpkin feature private void setup(final FMLCommonSetupEvent event) { MINT = register("mint", Feature.RANDOM_PATCH.configured((new BlockClusterFeatureConfig.Builder(new SimpleBlockStateProvider(Blocks.BARREL.defaultBlockState()), SimpleBlockPlacer.INSTANCE)) .tries(64).noProjection().whitelist(Sets.newHashSet(Blocks.GRASS_BLOCK)).build()).decorated(Features.Placements.HEIGHTMAP_DOUBLE_SQUARE).chance(24)); } private static <FC extends IFeatureConfig> ConfiguredFeature<FC, ?> register(String name, ConfiguredFeature<FC, ?> configuredFeature) { return Registry.register(WorldGenRegistries.CONFIGURED_FEATURE, new ResourceLocation("examplemod", name), configuredFeature); } public static ConfiguredFeature<?, ?> MINT; @SubscribeEvent(priority = EventPriority.HIGH) public static void name(BiomeLoadingEvent event) { if (MINT != null) { event.getGeneration().addFeature(Decoration.VEGETAL_DECORATION, MINT); } } and (I had to scale down the picture because it was too big)
-
1.16.5 First time join event help
okay first of all you need to create a Capability which contains a value (a boolean), then you need an interface with two methods a get and a set method for the value, register the Capability as described in the forge doc and Attach the Capability to the player via AttachCapabilitiesEvent<Entity>. use the PlayerEvent.PlayerLoggedInEvent and check inside the if your Capability is present (you get it via PlayerEntity#getCapability), then get the value from the Capability and check if its false, if its the case give the player the sword and set the value to true
-
[1.17.1] Ore Gen Help
use the vanilla registry of ConfiguredFeature inside the FMLCommonSetupEvent
-
[Solved] [1.16.4] Can't get custom plants to generate
first of all you can't create the ConfiguredFeature inside the event because you need to register them second, take a look at the vanilla Features class how to create ConfiguredFeature, then copy the vanilla registry and do this for your ConfiguredFeature inside FMLCommonSetupEvent
-
Won't launch the game
try without optifine
-
Won't launch the game
in .minecraft/logs/debug.log
-
Won't launch the game
post debug log
-
[1.17.1] Description: Exception initializing level java.lang.NoClassDefFoundError: Could not initialize class
answer: do not use event.enqueueWork
-
[Solved] [1.16.5] Unknown biome id emitted by layers: 174
did you know how the Biome Layer works, did you looked at the vanilla code, sounds like you don't knw much about the biome layer they still use the ids which is why i hate this system, but forge dosen't has a BiomeProvider/BiomeSource which make this easly forge has biome IDs?
-
Crashing when trying to load or create world. Reaches 100% then says "saving world" and crashes to launcher. No mods only forge.
1.17 requires java 16
-
[Solved] [1.16.5] Unknown biome id emitted by layers: 174
you also need to set the field you only get the field from the class
-
Forge crashes when i open my serser, this is my server error, anybody can help?
1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
-
Forge install version 14.23.5.2838 (1.12.2) not working
1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
-
[Solved] [1.16.5] Unknown biome id emitted by layers: 174
you get the same error beacuse you never call setAccessible for the Field
-
1.16.5 First time join event help
then you need to store a value for each player you have given the sword, using a Capability
-
[Solved] [1.16.5] Unknown biome id emitted by layers: 174
post the error log...
-
Player pos
PlayerEntity#position returns the current player pos as an Vec3 PlayerEntity#teleportToWithTicket teleports the player to the given position
-
1.16.5 First time join event help
is is an example how to check, if the player has or has not an item in his inventory
-
[Solved] [1.16.5] Unknown biome id emitted by layers: 174
no the normal registration is via json or DeferredRegister but you should register an id for your biome use Refection or an Access Transformers do this in FMLCommonSetupEvent
-
[Solved] [1.16.5] Unknown biome id emitted by layers: 174
thats the wrong class and the wrong object type its: net.minecraft.world.biome.BiomeRegistry.idToKeyMap or net.minecraft.world.biome.BiomeRegistry.TO_NAME which is a Int2ObjectMap
-
I cant use gradle to build my project
1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
-
[Solved] [1.16.5] Unknown biome id emitted by layers: 174
did you using mcp or moj mappings?
-
1.16.5 First time join event help
this is an practical example
-
[Solved] [1.16.5] Unknown biome id emitted by layers: 174
no not register with DeferredRegister you need to add your Biome to BiomeRegistry.TO_NAME
IPS spam blocked by CleanTalk.