Started by
Joe Swansawn
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, i need to make a boat that is at least similar to the minecraft one that floats on lava. I watched the boat tutorial video and tried to make it work with other different procedures i made but every time there's a problem and i can't figure out how to do it. Any help is appreciated :)
By the way, i'm using the spider model because i'm going for a robot-like creature called the Lava Strider.
You could make the mob turn lava into a solid block for some seconds (kinda like frost walker)? But it would feel a bit weird, I don't think you can properly recreate the Strider from 1.16
Fire resistance maybe?
I would look at the vanilla boat code. I haven't seen it, but recreate the boat. And I believe you might get a "bug" where the player is set on fire (do to the lava), so I would put a bit of code that checks for that in my event handler and cancels fire tick event. But theoretically, if your entity works and is like a boat what you want, this code block is not really necessary, just kinda another check.
Probably something like this (THIS MAY NOT WORK SO TEST FOR YOURSELF, I CAME UP WITH THIS IN MY HEAD)
Good Luck!
Or you could edit the entity's mounted entity Y offset to the point that the player wouldn't be touching the lava while riding it.