Jump to content

LTNightshade

Members
  • Posts

    50
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

LTNightshade's Achievements

Stone Miner

Stone Miner (3/8)

6

Reputation

  1. 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...
  2. Provide the debug.log
  3. 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 ?
  4. Java Version: 1.8.0_51, Oracle Corporation Update your Java
  5. Override TileEntity#hasCapability and TileEntity#getCapability
  6. 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.
  7. 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
  8. 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.
  9. says it.
  10. Forge 1.12.2 need Java 8, not 10/11.
  11. 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 ?
  12. 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));
  13. 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)...
  14. https://mcforge.readthedocs.io/en/1.13.x/utilities/tags/ https://minecraft.gamepedia.com/Recipe#JSON_format
  15. What does a "java -version" print out ? My Java Home is : JAVA_HOME=C:\Program Files\Java\jdk1.8.0_191 without \bin
×
×
  • Create New...

Important Information

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