Lava Boat 1.14.4

Started by Joe Swansawn on Wed, 04/29/2020 - 08:31

Topic category: Help with modding (Java Edition)

Last seen on 11:44, 13. Jul 2020
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Lava Boat 1.14.4
Wed, 04/29/2020 - 08:31

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.

Last seen on 17:49, 25. Mar 2021
Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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

Last seen on 21:18, 4. Aug 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Fire resistance maybe?
Sat, 05/30/2020 - 19:52

Fire resistance maybe?

Last seen on 04:35, 17. Jan 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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!

Last seen on 18:25, 2. Aug 2021
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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.