Posted May 14, 20196 yr hi everyone, im somewhat new to modding minecraft and im trying to compile something but it always show an error can someone help please? gradle.txt: https://pastebin.com/hZkxBzMf the thing im trying to compile: https://github.com/Mari023/Diorite_Trapdoors Edited May 14, 20196 yr by IndonesianMinecraftModder
May 14, 20196 yr 11 minutes ago, IndonesianMinecraftModder said: it always show an error Post the error. 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.
May 14, 20196 yr 1. Stop using static initializers. Read the common issues and recommendations for more details. 2. Stop using IHasModel. Read the common issues and recommendations for more details. 3. There is already a BlockTrapDoor. Extend that instead of copying all the code from that class. Edited May 14, 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.
May 14, 20196 yr That is a compile time error. You should know how to fix it if you know basic Java (again, don't just copy the entire BlockTrapDoor class). 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.
May 14, 20196 yr Author so how should i rewrite the code, i want the trapdoor to not respond to redstone if possible
May 14, 20196 yr Override BlockTrapDoor#neighborChanged and leave it empty. 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.
May 14, 20196 yr Author do you mean like this: " @Override public void onNeighborBlockChange();" or like what? (i'm sorry if im just bad...)
May 14, 20196 yr Yes pretty much. Make sure you have the correct parameters. 10 minutes ago, IndonesianMinecraftModder said: (i'm sorry if im just bad...) If you don't know Java, then you need to learn it before making Minecraft mods. Knowledge of Java is required for modding. 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.
May 14, 20196 yr Author :compileJavaF:\test\2\NNN-M4\build\sources\main\java\de\Mari_023\diorite_trapdoors\blocks\TestTrapDoor.java:85: error: cannot find symbol public void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos) { ^ symbol: class Block location: class TestTrapDoor 1 error FAILED can you at least tell me about the valid parameter in this......
May 14, 20196 yr 3 minutes ago, IndonesianMinecraftModder said: can you at least tell me about the valid parameter in this...... You should learn to figure that out by yourself with your IDE (hint: look in the parent class you are extending). That error is a compile time error. Your IDE should tell you what is wrong (syntax error is underlined in red in most IDEs). 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.
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.