[Mod] Motorbikes [motorbike]

User avatar
Extex
Member
Posts: 190
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

[Mod] Motorbikes [motorbike]

by Extex » Post

My fourth mod!

Image

Adds a whole variety of coloured motorbikes to Minetest!

Image

Extra special thanks to Melkor for the AMAZING model.
And thanks to Lone_Wolf for helping me with a glitch!!

Image

Press space to do a wheelie
Shift to activate cruise control (No acceleration No decrease)
And one secret feature
+ Spoiler
+ Spoiler
License: Code (MIT), Media (CC BY-SA 3.0) mixed between me and Melkor

Optional dependencies: signs

Browse code: https://github.com/Extex101/motorbike
Download: here

+ Spoiler
Attachments
Screenshot_2020-02-26-17-16-08-2.png
(647.39 KiB) Not downloaded yet
Last edited by Extex on Wed Mar 04, 2020 21:32, edited 10 times in total.
Player of PK, RIP. Creator of the light_tool and motorbike mods. Working on another mod which should be coming soon!

User avatar
Melkor
Member
Posts: 358
Joined: Sat Sep 24, 2011 01:03
Location: Underground

Re: Mod idea [motorbike]

by Melkor » Post

Here is a bike
Image
Attachments
image.png
(30.17 KiB) Not downloaded yet
bike.7z
(156.28 KiB) Downloaded 24 times

User avatar
Extex
Member
Posts: 190
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: Mod idea [motorbike]

by Extex » Post

Thanks Melkor!!!
Absolutely stunning!
Last edited by Extex on Mon Feb 24, 2020 20:33, edited 1 time in total.
Player of PK, RIP. Creator of the light_tool and motorbike mods. Working on another mod which should be coming soon!

User avatar
GreenXenith
Member
Posts: 1327
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
IRC: GreenXenith
In-game: GreenXenith
Location: The singularity
Contact:

Re: Mod idea [motorbike]

by GreenXenith » Post

I suggest looking into my bicycle implementation for inspiration.
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenXenith#3232

Hey, you. You're finally awake.
You were trying to view their profile, right? Found the rest of their signature, same as us, and that guest over there.

User avatar
Melkor
Member
Posts: 358
Joined: Sat Sep 24, 2011 01:03
Location: Underground

Re: Mod idea [motorbike]

by Melkor » Post

i'm glad you like it, send me screenshots when you finish the mod, happy modding!

User avatar
Extex
Member
Posts: 190
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: Mod idea [motorbike]

by Extex » Post

Not done yet but I did a video of what it's like so far.
https://github.com/Extex101/motorbike/b ... HD720p.mp4
But you have to download to view it
Player of PK, RIP. Creator of the light_tool and motorbike mods. Working on another mod which should be coming soon!

User avatar
Extex
Member
Posts: 190
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: Mod idea [motorbike]

by Extex » Post

Image
Almost done!
Coming soon
Attachments
Bikes.gif
(97.58 KiB) Not downloaded yet
Player of PK, RIP. Creator of the light_tool and motorbike mods. Working on another mod which should be coming soon!

User avatar
runs
Member
Posts: 1811
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Mod idea [motorbike]

by runs » Post

Oh, I love it :-)
Day 42 of the quarantine

User avatar
Melkor
Member
Posts: 358
Joined: Sat Sep 24, 2011 01:03
Location: Underground

Re: Mod idea [motorbike]

by Melkor » Post

Colors!

User avatar
Extex
Member
Posts: 190
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: Mod idea [motorbike]

by Extex » Post

I'm having some problems with the player.
When you mount the bike it changes the player model. And when you dismount it chamges back. But the player no longer animates (Only visible by other players)

I'm using player_api if that's any help
Edit: Just realized I was asking for rubenwardy's help on an irc he wasn't on -_-
Last edited by Extex on Mon Mar 02, 2020 02:07, edited 2 times in total.
Player of PK, RIP. Creator of the light_tool and motorbike mods. Working on another mod which should be coming soon!

User avatar
runs
Member
Posts: 1811
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Mod idea [motorbike]

by runs » Post

Extex wrote:I'm having some problems with the player.
When you mount the bike it changes the player model. And when you dismount it chamges back. But the player no longer animates (Only visible by other players)

I'm using player_api if that's any help

I tried asking rubenwardy on irc but he didn't answer. (I don't think he likes me. Idk why :/)
I believe you have to set detach or set the animation again.

Code: Select all

player:set_detach()
default.player_set_animation(player, "stand" , 30)
But I am not sure at all.
Day 42 of the quarantine

User avatar
Extex
Member
Posts: 190
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: Mod idea [motorbike]

by Extex » Post

Solved!!
I tried what runs suggested but it didn't work :/
So I asked around on Irc (nobody answered) and decided to ask sofar on inside the box. Which is where Lone Wolf helped me and we eventually discovered the origin of the glitch.
It was so simple XD
I forgot to add player_api.player_attached[name] = false
... That was it lol! Tnx lone_wolf!
Player of PK, RIP. Creator of the light_tool and motorbike mods. Working on another mod which should be coming soon!

Gundul
Member
Posts: 1023
Joined: Thu Aug 27, 2015 10:55
GitHub: berengma
IRC: Gundul
Location: Europe/Asia

Re: Mod idea [motorbike]

by Gundul » Post

Extex wrote:Not done yet but I did a video of what it's like so far.
https://github.com/Extex101/motorbike/b ... HD720p.mp4
But you have to download to view it
That looks really nice. I like the video. Does it need gasoline to run ?
My servers: Jungle, Lilly in the valley, 3xile

User avatar
Extex
Member
Posts: 190
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: Mod idea [motorbike]

by Extex » Post

No but that'd be cool :D
Player of PK, RIP. Creator of the light_tool and motorbike mods. Working on another mod which should be coming soon!

Gundul
Member
Posts: 1023
Joined: Thu Aug 27, 2015 10:55
GitHub: berengma
IRC: Gundul
Location: Europe/Asia

Re: Mod idea [motorbike]

by Gundul » Post

Extex wrote:No but that'd be cool :D
Yes would be a nice addition. Which entity api do you use for your bike ?
My servers: Jungle, Lilly in the valley, 3xile

User avatar
Extex
Member
Posts: 190
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: Mod idea [motorbike]

by Extex » Post

I based it on a mod called lib_mount it's a very very unknown mod. (Made by blert2112) it's actually pretty limited but I've edited almost all of it. It's not exactly an api I used it because I didn't have any experience in entities, it helped me wrap my head arpund it
Player of PK, RIP. Creator of the light_tool and motorbike mods. Working on another mod which should be coming soon!

Nipe
New member
Posts: 8
Joined: Thu Jan 23, 2020 20:56
In-game: Nipe and Merlok

Re: Mod idea [motorbike]

by Nipe » Post

Looks cool cant wait

User avatar
Extex
Member
Posts: 190
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: Mod idea [motorbike]

by Extex » Post

It's done!
Download will be available soon!
Player of PK, RIP. Creator of the light_tool and motorbike mods. Working on another mod which should be coming soon!

User avatar
Extex
Member
Posts: 190
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: [Mod] Motorbikes [motorbike]

by Extex » Post

Download is now available!!
Player of PK, RIP. Creator of the light_tool and motorbike mods. Working on another mod which should be coming soon!

Nipe
New member
Posts: 8
Joined: Thu Jan 23, 2020 20:56
In-game: Nipe and Merlok

Re: [Mod] Motorbikes [motorbike]

by Nipe » Post

Yay

User avatar
pampogokiraly
Member
Posts: 216
Joined: Wed Jan 08, 2020 22:21
In-game: i_love_mesecon

Re: [Mod] Motorbikes [motorbike]

by pampogokiraly » Post

This is awesome! I only got one problem: I can not destroy the motorbike.
My mod (a bit old) request: Better enchant. My second mod: Old Broken Castle nodes. Search for aab01 to find my mods!

User avatar
Extex
Member
Posts: 190
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: [Mod] Motorbikes [motorbike]

by Extex » Post

pampogokiraly wrote:This is awesome! I only got one problem: I can not destroy the motorbike.
Oh right! I'll add that!
Player of PK, RIP. Creator of the light_tool and motorbike mods. Working on another mod which should be coming soon!

User avatar
Extex
Member
Posts: 190
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: [Mod] Motorbikes [motorbike]

by Extex » Post

Done redownload or update your init.lua
Player of PK, RIP. Creator of the light_tool and motorbike mods. Working on another mod which should be coming soon!

User avatar
Melkor
Member
Posts: 358
Joined: Sat Sep 24, 2011 01:03
Location: Underground

Re: [Mod] Motorbikes [motorbike]

by Melkor » Post

Good Work!
Ask for moving the post to wip mods

User avatar
Extex
Member
Posts: 190
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

Re: [Mod] Motorbikes [motorbike]

by Extex » Post

Player of PK, RIP. Creator of the light_tool and motorbike mods. Working on another mod which should be coming soon!

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 4 guests