Can i use mesh drawtype inside these standard tables...

Post Reply
User avatar
Andrey01
Member
Posts: 2574
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Can i use mesh drawtype inside these standard tables...

by Andrey01 » Post

This is about 'bed_definition' table. There`s only sample of 'nodebox' using in game_api.txt. Can i use 'mesh' drawtype instead?

Also, can i use that in 'door_definition' ?

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Can i use mesh drawtype inside these standard tables...

by sofar » Post

beds: https://github.com/minetest/minetest_ga ... pi.lua#L25

no. You can not change it to another drawtype.

doors: https://github.com/minetest/minetest_ga ... t.lua#L430

No. It is already a mesh node.

User avatar
Andrey01
Member
Posts: 2574
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: Can i use mesh drawtype inside these standard tables...

by Andrey01 » Post

Yeah, but then i need to write own Beds API to allow a player to sleep and due to the beds def table doesn`t accept other drawtypes.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests