Started by
DuckyGK
on
Topic category: Help with Minecraft modding (Java Edition)
So basicly the title says it all, I want a sword that teleports you 8 blocks or until you reach a block that you cant pass through. I know there is probably a very simple way to do this but I just started coding so need some help. Thanks! (Also I am using the fabric generator mod if that matters)
something like this,
https://files.catbox.moe/znqjry.ptpl
Thank you so much but one question, was does the purple block mean/do?
it's a custom code block, I like using guard clauses. You can nest it instead if you want.
so basically the purple block does literally anything
Hey, I started making it but for the variables like direction would i just use a direction variable because there were a couple options like block state and such. Also what should i use for the x y z variables? Thank you so much for your help so far!
download and import the procedure from the link i sent instead of remaking it
Oh didn’t know you could do that, Thanks!
any way to make this work through blocks? like able to phase throug the block youre looking at?