February 21, 20205 yr Override Block#onBlockActivated. 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.
February 21, 20205 yr Author there is no function i can see thats called onblockactivated when i extend Block class
February 21, 20205 yr @wiesonfire Show us what you tried (i mean your Block class or code). Edited February 21, 20205 yr by DragonITA New in Modding? == Still learning!
February 21, 20205 yr Author i use intellij and juse ctrl-o shortcut to see all overridable methods and on block activated isnt in the list and if i look in the block class there is no method on block activated
February 22, 20205 yr The mapping name may have changed in newer versions (haven’t checked). What version of Minecraft are you working with? Edited February 22, 20205 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.
February 29, 20205 yr If you're on a version older than 1.14 you'll have to completely redownload the MDK and replace your gradle files. If you're on 1.14/1.15 simply change the minecraft version in the dependencies section at the bottom of your build.gradle. I'm eager to learn and am prone to mistakes. Don't hesitate to tell me how I can improve.
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.