Started by
GhostFN
on
Topic category: Help with Minecraft modding (Java Edition)
I am working on a procedure to do this:
If a player hits or destroys a log with a block or nothing in their hand they take damage! I know how to check if there is a block or item in main/off hand but how do I check if there is nothing in main/off hand ?
There's an "Empty itemstack" block in "Minecraft components".
how would I use it exactly for this purpose?
Hey GhostFN! I can help you with that...
I'm using the 2nd 2020.4 Snapshot:
( Image here: https://imgur.com/kn4eW4p )
Thanks a lot it worked!