To be honest, those two YouTubers are notorious for creating low quality tutorials with bad coding practices.
I would suggest ditching those tutorials to avoid writing problematic code.
Some good quality tutorials are https://github.com/TheGreyGhost/MinecraftByExample and https://github.com/Cadiboo/Example-Mod.
No problem, and don't think if you get stuck you can't come ask for help, because of course you can! But dig through some vanilla code first, see if you can find examples, also searching the forums often yields great results. I was messing with custom shields for fun, and couldn't figure out why the texture wasn't working, and searching on here led me to the answer without having to make my own topic and ask
Hi
You might find these links useful
https://github.com/TheGreyGhost/MinecraftByExample (see mbe20) - working example of tile entity synchronisation
and
http://greyminecraftcoder.blogspot.com/2015/01/tileentity.html (a bit outdated but still current I think)
-TGG
Scan vanilla code for something to drops an item. You should try looking a little more in the vanilla code, it's really useful and has lots of stuff to learn from/give ideas, I notice that you ask a lot of things without trying/looking first. You'd be surprised what you can accomplish if you check out existing code that does things similar to what you want
I did a quick search in my IDE for something that calls ItemEntity and the LecternBlock popped up.
If you look at the LightningBoltEntity code, there's a lot of stuff that doesn't happen if effectOnly is true.
I've never tried doing this myself, or messed with lightning, but that's the first thing I noticed when I looked at the vanilla code.
Create a Model (and texture for it) that extends BipedModel<T extends LivingEntity> for your armor piece.
Override getArmorModel and getArmorTexture in your armor item class.
Once you've started, if you have issues, come back here and make sure you post code, logs, what you are trying to achieve (looks/effect/etc), and what is actually happening.
Tutorials are telling you to set the missing "eclipse" folder as your workspace right? Disregard that and just put it somewhere (I would recommend somewhere in your user folder), then click File -> Import -> Gradle -> Existing Gradle Project and select the folder with your build.gradle in it
That exception is unrelated, it just tells you you couldn't log in, since you normally don't use an account inside your development setup.
I think there is a way to use your mojang account, but it's not really needed.
If you have code depending on names you can just add -username NICK to your run configuration to test that stuff.
Your crash should have another reason.