Everything posted by LTNightshade
-
[1.15] How to Control What Blocks a Tree Can Spawn On
Looking at SaplingBlock from Minecraft, it extends BushBlock what has a function: protected boolean isValidGround(BlockState state, IBlockReader worldIn, BlockPos pos) { Block block = state.getBlock(); return block == Blocks.GRASS_BLOCK || block == Blocks.DIRT || block == Blocks.COARSE_DIRT || block == Blocks.PODZOL || block == Blocks.FARMLAND; } would suggest, override this method...
-
Mods not showing up in minecraft
Provide the debug.log
-
[1.15.1] Bug in build.gradle ?
Just tested the newest Forge. it gave me an Error : Could not find net.minecraftforge:forge:1.15.1-30.0.14_mapped_snapshot_20190712-1.14.3 so i changed the mappings in build.gradle from mappings channel: 'snapshot', version: '20190719-1.14.3' to (newst mapping on mcpbot) mappings channel: 'snapshot', version: '20191219-1.14.3' now it works. Is this a bug ?
-
Forge for MC1.14 Crashes on Load
Java Version: 1.8.0_51, Oracle Corporation Update your Java
-
[1.13.2] IItemHandler and Capabilities
Override TileEntity#hasCapability and TileEntity#getCapability
-
Pushing energy to modded cables/machines.
IEnergyStorage energyStorage = te.getCapability(CapabilityEnergy.ENERGY, EnumFacing.NORTH); if (energyStorage.canReceive()) { int max = Math.max(speicher, 64000); int amount = energyStorage.receiveEnergy(max, true); if (amount > 0) { amount = energyStorage.receiveEnergy(max, false); speicher -= max; } } simple example.
-
Capability not working Null point exeption
Where is your Interface for the capability ? Where is your storage for the capability ? Where is your registration of the capability ? Read: https://mcforge.readthedocs.io/en/latest/datastorage/capabilities/#creating-your-own-capability
-
[1.13]Entities in custom biome problem
As EntityEntries are register afterward biomes, you should add your spawn in the Mod-Setup-Event like this: http://www.minecraftforge.net/forum/topic/69411-1132-biome-specific-spawning/?tab=comments#comment-335607 PS: You should not instanciate your Items/Blocks/... in the Mods Constructor, create them, when they are needed, in the Registry Events.
- Forge 1.12.2
-
1.12.2-14.5.23.2814 & .2768 crash on launch
Forge 1.12.2 need Java 8, not 10/11.
-
modid not working (I'm sorry)
Did you read the tutorial properly ? - An Annotation has to be in front of the class. - the @Mod Annotation Attribute "modid" has to be a string, not a class. - why is there a .json file inside the src/main/java tree ?
-
[1.13.2] Biome specific spawning
I would try something like : Biome biome = RegistryManager.ACTIVE.getRegistry(Biome.class).getValue(new ResourceLocation("minecraft", "badlands")); biome.getSpawns(EnumCreatureType.MONSTER).clear(); biome.getSpawns(EnumCreatureType.MONSTER).add(new Biome.SpawnListEntry(EntityType.BAT,1,1,2));
-
Cant run Optifine in forge
Related to this http://www.minecraftforge.net/forum/search/?&q=Optifine 1.13&search_and_or=or&sortby=relevancy Optifine has no 1.13.2 version with forge support (yet)...
-
[solved][1.13.2] how to use forge ore dictionary in recipes?
https://mcforge.readthedocs.io/en/1.13.x/utilities/tags/ https://minecraft.gamepedia.com/Recipe#JSON_format
-
Could not find or load java.se.ee (SOLVED)
What does a "java -version" print out ? My Java Home is : JAVA_HOME=C:\Program Files\Java\jdk1.8.0_191 without \bin
-
[1.13.2] World Ore Generation
That's working, thanks.
-
[1.13.2] World Ore Generation
Bump
-
[1.13.2] World Ore Generation
What is the correct way to add a block to the world Ore Generation ? i tried it this way (but no Ore found) : package de.madone.ocdtorcher.world.feature; import com.google.common.collect.ImmutableList; import de.madone.ocdtorcher.block.ModBlocks; import net.minecraft.init.Blocks; import net.minecraft.world.biome.Biome; import net.minecraft.world.gen.GenerationStage; import net.minecraft.world.gen.feature.Feature; import net.minecraft.world.gen.feature.MinableConfig; import net.minecraft.world.gen.placement.CountRangeConfig; import net.minecraftforge.common.BiomeManager; public class ModOreFeature { public static void Init() { BiomeManager.getBiomes(BiomeManager.BiomeType.WARM).forEach((BiomeManager.BiomeEntry biomeEntry) -> biomeEntry.biome.addFeature( GenerationStage.Decoration.UNDERGROUND_ORES, Biome.createCompositeFeature( Feature.MINABLE, new MinableConfig(MinableConfig.IS_ROCK, ModBlocks.BLOCK_ORE_COPPER.getDefaultState(), 12), Biome.COUNT_RANGE, new CountRangeConfig(20, 30, 40, 70) // Count, MinHeight, MaxHeightBase, MaxHeight ) )); BiomeManager.getBiomes(BiomeManager.BiomeType.COOL).forEach((BiomeManager.BiomeEntry biomeEntry) -> biomeEntry.biome.addFeature( GenerationStage.Decoration.UNDERGROUND_ORES, Biome.createCompositeFeature( Feature.MINABLE, new MinableConfig(MinableConfig.IS_ROCK, ModBlocks.BLOCK_ORE_COPPER.getDefaultState(), 12), Biome.COUNT_RANGE, new CountRangeConfig(20, 30, 40, 70) // Count, MinHeight, MaxHeightBase, MaxHeight ) )); BiomeManager.getBiomes(BiomeManager.BiomeType.DESERT).forEach((BiomeManager.BiomeEntry biomeEntry) -> biomeEntry.biome.addFeature( GenerationStage.Decoration.UNDERGROUND_ORES, Biome.createCompositeFeature( Feature.MINABLE, new MinableConfig(MinableConfig.IS_ROCK, ModBlocks.BLOCK_ORE_COPPER.getDefaultState(), 12), Biome.COUNT_RANGE, new CountRangeConfig(20, 30, 40, 70) // Count, MinHeight, MaxHeightBase, MaxHeight ) )); BiomeManager.getBiomes(BiomeManager.BiomeType.ICY).forEach((BiomeManager.BiomeEntry biomeEntry) -> biomeEntry.biome.addFeature( GenerationStage.Decoration.UNDERGROUND_ORES, Biome.createCompositeFeature( Feature.MINABLE, new MinableConfig(MinableConfig.IS_ROCK, ModBlocks.BLOCK_ORE_COPPER.getDefaultState(), 12), Biome.COUNT_RANGE, new CountRangeConfig(20, 30, 40, 70) // Count, MinHeight, MaxHeightBase, MaxHeight ) )); } } private void onFMLLoadCompleteEvent(final FMLLoadCompleteEvent event) { LOGGER.info("Starting FMLLoadCompleteEvent"); ModOreFeature.Init(); }
-
[1.13.2] Game Crash when opening custom crafting Gui
You need to register your Gui: ModLoadingContext.get().registerExtensionPoint(ExtensionPoint.GUIFACTORY, () -> (OpenContainer oc) -> { });
-
Error with codechickenlib
Caused by: codechicken.lib.configuration.ConfigFile$ConfigException: codechicken.lib.configuration.ConfigParseException: Invalid value type d, @Line:6, dump_asm=true Check the Configfile on Line 6...
-
Minecraft 1.13.2 forge
http://www.minecraftforge.net/forum/topic/20-rules-and-eaq-read-first-or-you-will-get-banned/
-
Forge (1.13.2) update from 25.0.50 to 25.0.63 Client Crash
Ok fine, thanks, can be closed.
-
Forge (1.13.2) update from 25.0.50 to 25.0.63 Client Crash
Ok, fine, worked now. Thanks. Why does the rerun of "genIntellijRuns" is needed ?
-
Forge (1.13.2) update from 25.0.50 to 25.0.63 Client Crash
??
-
Forge (1.13.2) update from 25.0.50 to 25.0.63 Client Crash
After upgrading Forge (1.13.2) from 25.0.50 to 25.0.63 the Client crashes : Logs : https://gist.github.com/LTNightshade/6bfa65a9101fb2ce48acfb058fa5daa6 github: https://github.com/LTNightshade/minecraftforge-OCDTorcher Update: 25.0.60 is working, 25.0.61 crashes.
IPS spam blocked by CleanTalk.