[Mod] Furniture [ts_furniture]

Thomas-S
Member
Posts: 113
Joined: Sun Sep 06, 2015 12:23
GitHub: Thomas--S
IRC: Thomas-S
In-game: Thomas-S
Location: Bavaria, Germany

[Mod] Furniture [ts_furniture]

by Thomas-S » Post

Hello. This is my first published mod:
ts_furniture

ts_furniture adds basic furniture to minetest. It includes:
  • Chairs
  • Tables
  • Small Tables
  • Tiny Tables
  • Benches
All of these things can be made out of the different kinds of wood from the default mod. Moretrees is also supported.

Here's a screenshot:
Image

License: CC0
Code: https://github.com/minetest-mods/ts_furniture
Download: https://github.com/minetest-mods/ts_fur ... master.zip
Depends: default, moretrees (optional)
Stable Version: v1.0

The prefix "ts_" is there to avoid namespace conflicts.
Last edited by Thomas-S on Sat Apr 30, 2016 18:22, edited 3 times in total.

User avatar
cx384
Member
Posts: 501
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [Mod] Furniture [ts_furniture]

by cx384 » Post

Nice Mod!
Maybe you could add chairs tablessmall tablestiny tables and benches made of wood from the moretrees mod.
Can your read this?

Thomas-S
Member
Posts: 113
Joined: Sun Sep 06, 2015 12:23
GitHub: Thomas--S
IRC: Thomas-S
In-game: Thomas-S
Location: Bavaria, Germany

Re: [Mod] Furniture [ts_furniture]

by Thomas-S » Post

Thanks for the feedback.
Adding support for moretrees doesn't have high priority for me at the moment. If you want to add support, feel free to make a Pull Request.
You can use the following function:

Code: Select all

register_ts_furniture("mod_name", "node_name", "Description", "texture")
Maybe I will add support for moretrees later, when I have time.


Update:
Renamed function register_furniture to register_ts_furniture
Last edited by Thomas-S on Sun Mar 27, 2016 13:07, edited 1 time in total.

User avatar
jp
Member
Posts: 798
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

Re: [Mod] Furniture [ts_furniture]

by jp » Post

Full of originality.

User avatar
rubenwardy
Moderator
Posts: 6271
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: [Mod] Furniture [ts_furniture]

by rubenwardy » Post

Awesome. It's nice to have focused mods.

I suggest you make a global function called ts_furniture and put any api things there.

Code: Select all

ts_furniture = {}
function ts_furniture.register_furniture(one, two)
    -- Code
end
It's a common practice to make the only global value you export the name of you mod and a table.
jp wrote:Full of originality.
Full of critism.
Your opinion is not always needed, you know.

User avatar
jp
Member
Posts: 798
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

Re: [Mod] Furniture [ts_furniture]

by jp » Post

rubenwardy wrote:
jp wrote:Full of originality.
Full of critism.
Your opinion is not always needed, you know.
Where is the criticism ?

Anyways I won't be bothered by an insolent teenager. Especially considering I rarely give my opinion.

User avatar
rubenwardy
Moderator
Posts: 6271
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: [Mod] Furniture [ts_furniture]

by rubenwardy » Post

And commenting on someone's first mod sarcastically implying it has no originality isn't insolent or rude at all?

User avatar
jp
Member
Posts: 798
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

Re: [Mod] Furniture [ts_furniture]

by jp » Post

You have no evidence if was sarcasm. Period.

User avatar
cd2
Member
Posts: 562
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
In-game: cd cd2
Location: Linux
Contact:

Re: [Mod] Furniture [ts_furniture]

by cd2 » Post

Nice mod!
rubenwardy wrote: I suggest you make a global function called ts_furniture and put any api things there.

Code: Select all

ts_furniture = {}
function ts_furniture.register_furniture(one, two)
    -- Code
end
+1

Thomas-S
Member
Posts: 113
Joined: Sun Sep 06, 2015 12:23
GitHub: Thomas--S
IRC: Thomas-S
In-game: Thomas-S
Location: Bavaria, Germany

Re: [Mod] Furniture [ts_furniture]

by Thomas-S » Post

Thank you very much for your feedback.
rubenwardy wrote: I suggest you make a global function called ts_furniture and put any api things there.

Code: Select all

ts_furniture = {}
function ts_furniture.register_furniture(one, two)
    -- Code
end
I will add this very soon. Thanks for the suggestion.

Edit:
Added rubenwardy's suggestion. Thanks again.

User avatar
benrob0329
Member
Posts: 1327
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: [Mod] Furniture [ts_furniture]

by benrob0329 » Post

Can you sit in the chairs?

(You could base it off of the [cozy] mod viewtopic.php?f=11&t=14143&hilit )
Social: YouTube Peertube Matrix Room: #minetest:matrix.org | Games: The Infinite IKEA

Thomas-S
Member
Posts: 113
Joined: Sun Sep 06, 2015 12:23
GitHub: Thomas--S
IRC: Thomas-S
In-game: Thomas-S
Location: Bavaria, Germany

Re: [Mod] Furniture [ts_furniture]

by Thomas-S » Post

benrob0329 wrote:Can you sit in the chairs?

(You could base it off of the [cozy] mod viewtopic.php?f=11&t=14143&hilit )
Until now, sitting in a chair isn't possible. I'll look at the problem; maybe I'll add your suggestion.

Thanks for the feedback.

User avatar
burli
Member
Posts: 1641
Joined: Fri Apr 10, 2015 13:18

Re: [Mod] Furniture [ts_furniture]

by burli » Post

Maybe you can take a look to the villages mod. Sitting on benches is implemented

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Furniture [ts_furniture]

by azekill_DIABLO » Post

nice!

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] Furniture [ts_furniture]

by Don » Post

+1
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

Thomas-S
Member
Posts: 113
Joined: Sun Sep 06, 2015 12:23
GitHub: Thomas--S
IRC: Thomas-S
In-game: Thomas-S
Location: Bavaria, Germany

Re: [Mod] Furniture [ts_furniture]

by Thomas-S » Post

Thanks for your feedback. I will possibly add the sitting functionality soon. Maybe I will make it optional.

Thomas-S
Member
Posts: 113
Joined: Sun Sep 06, 2015 12:23
GitHub: Thomas--S
IRC: Thomas-S
In-game: Thomas-S
Location: Bavaria, Germany

Re: [Mod] Furniture [ts_furniture]

by Thomas-S » Post

The long wanted update arrived:
You can now sit on chairs and benches.
To sit, right-click the chair/bench.
The code for this feature was mostly taken from the cozy mod.
You can enable/disable this feature in init.lua.

NOTE: Sitting is still in development. Please report any bugs you find. The "stable" version is tagged as "v0.1" on Github.

Thomas-S
Member
Posts: 113
Joined: Sun Sep 06, 2015 12:23
GitHub: Thomas--S
IRC: Thomas-S
In-game: Thomas-S
Location: Bavaria, Germany

Re: [Mod] Furniture [ts_furniture]

by Thomas-S » Post

I moved this mod to minestest-mods now.

User avatar
cd2
Member
Posts: 562
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
In-game: cd cd2
Location: Linux
Contact:

Re: [Mod] Furniture [ts_furniture]

by cd2 » Post

Could you add some new fences/walls? (new nodebox/model...)

Thomas-S
Member
Posts: 113
Joined: Sun Sep 06, 2015 12:23
GitHub: Thomas--S
IRC: Thomas-S
In-game: Thomas-S
Location: Bavaria, Germany

Re: [Mod] Furniture [ts_furniture]

by Thomas-S » Post

I won't add fences or walls to this mod; it will only be a mod for chairs and tables. I plan to make my mods small and focused. However, my walls mod is nearly ready to be released.

caffe23
New member
Posts: 6
Joined: Wed Jul 08, 2015 23:02
GitHub: caffe23

Re: [Mod] Furniture [ts_furniture]

by caffe23 » Post

Nice mod!.
I have just an idea, to make things more interesting, and to add some to the game play, may be when you eat something seated you can gain extra food points (or healing), or some percentage from the food (10%-20%). Also the chair-table combo can give extra bonus.

Thomas-S
Member
Posts: 113
Joined: Sun Sep 06, 2015 12:23
GitHub: Thomas--S
IRC: Thomas-S
In-game: Thomas-S
Location: Bavaria, Germany

Re: [Mod] Furniture [ts_furniture]

by Thomas-S » Post

Thanks for the feedback. Your idea sounds really interesting. However, I won't implement this in the near future because this mod should be kept simple and all the extra checks will also cause lag maybe. Sorry.

Thomas-S
Member
Posts: 113
Joined: Sun Sep 06, 2015 12:23
GitHub: Thomas--S
IRC: Thomas-S
In-game: Thomas-S
Location: Bavaria, Germany

Re: [Mod] Furniture [ts_furniture]

by Thomas-S » Post

Added support for moretrees mod.
If there are any problems, please notify me.

Thomas-S
Member
Posts: 113
Joined: Sun Sep 06, 2015 12:23
GitHub: Thomas--S
IRC: Thomas-S
In-game: Thomas-S
Location: Bavaria, Germany

Re: [Mod] Furniture [ts_furniture]

by Thomas-S » Post

I released the first stable version, v1.0, right now. No bugs were reported during the testing time, so this mod should be ready for the use on servers.

Sokomine
Member
Posts: 4127
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: [Mod] Furniture [ts_furniture]

by Sokomine » Post

It may be a small mod, but the chairs and tables (back then from the 3dfurniture mod) surprised me when starting the game - and they are still something very useful. It would be great to have chairs and tables in minetest_game (though not all shapes).
A list of my mods can be found here.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests