Lava Boat 1.14.4

Started by Joe Swansawn on

Topic category: Help with Minecraft modding (Java Edition)

Active 5 years ago
Joined Aug 2019
Points:
722

User statistics:

  • Modifications: 0
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 14
Lava Boat 1.14.4

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.

Active 4 years ago
Joined Jun 2016
Points:
3648

User statistics:

  • Modifications: 10
  • Forum topics: 39
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5289
You could make the mob turn…
Wed, 04/29/2020 - 10:55

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

Active 3 years ago
Joined Mar 2020
Points:
1204

User statistics:

  • Modifications: 2
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 985
Fire resistance maybe?
Sat, 05/30/2020 - 19:52

Fire resistance maybe?

Active 4 years ago
Joined Sep 2019
Points:
992

User statistics:

  • Modifications: 1
  • Forum topics: 14
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 505
I would look at the vanilla…
Sun, 05/31/2020 - 00:29

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)

    public void onPlayerTickEvent(TickEvent.PlayerTickEvent event)
    {
        PlayerEntity player = event.player;
        if (player.isBurning() && player.getRidingEntity() instanceof YourCustomEntity)
        {
            player.extinguish();
        }
    }

Good Luck!

Active 1 week ago
Joined May 2018
Points:
1101

User statistics:

  • Modifications: 8
  • Forum topics: 36
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 310
Or you could edit the entity…
Thu, 07/16/2020 - 00:07

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.