Posted March 28, 20196 yr I'm running on the newest recommended version of forge and this line of code has an error that CAVE cannot be resolved to a variable caveGenerator = TerrainGen.getModdedMapGen(caveGenerator, CAVE); I think it is something that does not exist in that code anymore but I don't know what I need to change it to to get the error to go away
March 28, 20196 yr You are using a variable called CAVE, but it does not exist. You have to create it (unless it is a property of a superclass). Either way, this should be basic java. Edited March 28, 20196 yr by DavidM Some tips: Spoiler Modder Support: Spoiler 1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code. 2. Always post your code. 3. Never copy and paste code. You won't learn anything from doing that. 4. Quote Programming via Eclipse's hotfixes will get you nowhere 5. Learn to use your IDE, especially the debugger. 6. Quote The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it. Support & Bug Reports: Spoiler 1. Read the EAQ before asking for help. Remember to provide the appropriate log(s). 2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.
March 28, 20196 yr Author I think in a previous version of forge it was assigned somewhere in TerrainGen as InitMapGenEvent.EventType.CAVE but got changed. however I managed to find that so I'm all good now Edited March 28, 20196 yr by Blue_Atlas
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.