[Mod] Simple Arcs [pkarcs] updated for 0.4.16

User avatar
PEAK
Member
Posts: 151
Joined: Mon Jun 08, 2015 20:32
In-game: PEAK
Contact:

[Mod] Simple Arcs [pkarcs] updated for 0.4.16

by PEAK » Post

I wonder if nobody else had this idea so far: Arcs - for all default stone and plank nodes. They behave like stairs.

Image

There are arcs for outer and inner corners too:

Image

Crafting:

Arcs
Image

Inner Arcs
Image

Outer Arcs
Image

A quick example:
Image

depends: default

Download: see attachment

UPDATE:

Reworked the code (I studied "viaduct" viewtopic.php?f=9&t=14559 -- thanks pithy!)

So the api is much more easy:

To make arcs from nodes of your mod, put "pkarcs?" into your depends.txt,
and call this function in your init.lua:

Code: Select all

if minetest.get_modpath("pkarcs") then
	pkarcs.register_node("your_mod:your_nodename")
end
Another update:
added Aspen Wood Arcs - Minetest 0.4.14
License changed to LGPLv2.1+


Update for Minetest 0.4.15:

- Arcs added for the new stone- sandstone- desertstone- and obsidian-blocks.

- mod.conf added.

- Better placing!
(I don't really understand facedir and param2, but with the code I gathered it works...)
When placed, the hollow side of the arc points to the player (similar to stairs).
When placed on ground, the hollow side points upwards, otherwise (placed under a node or on its side) downwards.
For sidewards arcs you need the screwdriver.

- Compatible with older versions of this mod. (!)


Update for Minetest 0.4.16:

added arcs for

- Desert Sandstone
- Desert Sandstone Block
- Desert Sandstone Brick
- Silver Sandstone
- Silver Sandstone Block
- Silver Sandstone Brick
Attachments
pkarcs.zip
(399.81 KiB) Downloaded 856 times
Last edited by PEAK on Mon Jun 05, 2017 20:15, edited 10 times in total.
I am okay with using the screenshots in all my posts for the website of Minetest (http://minetest.net).

KCoombes
Member
Posts: 412
Joined: Thu Jun 11, 2015 23:19
In-game: Knatt
Location: SW Florida, USA

Re: [Mod] Simple Arcs [pkarcs]

by KCoombes » Post

+10 Beautiful!

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

Re: [Mod] Simple Arcs [pkarcs]

by benrob0329 » Post

Very cool!
Social: YouTube Peertube Matrix Room: #minetest:matrix.org | Games: The Infinite IKEA

User avatar
Onyx
Member
Posts: 120
Joined: Fri Sep 25, 2015 08:36
In-game: onyx58
Location: Steinheim-NodesNation
Contact:

Re: [Mod] Simple Arcs [pkarcs]

by Onyx » Post

Hi,

Good work! Compatibility with "moreblocks" is it envisaged in the near future?
"Science sans conscience n'est que ruine de l'âme."
-----------------------------------------------------------------------------------------
Steinheim NodesNation : steinheim-minetest.servegame.com Pt : 28000

User avatar
PEAK
Member
Posts: 151
Joined: Mon Jun 08, 2015 20:32
In-game: PEAK
Contact:

Re: [Mod] Simple Arcs [pkarcs]

by PEAK » Post

Onyx wrote:Compatibility with "moreblocks" is it envisaged in the near future?
Do you mean

1. Compatibility with blocks from moreblocks?
or
2. Compatibility with the circular saw?

1. I think there are only a few blocks that would fit for these shapes - maybe worth considering. There are a lot of other mods that could get arcs for their blocks, but I sought to keep it very basic.

It’s a fundamental question, which other mods a mod should take care of. E.g. shall "stairs" optionally depend on "very_special_blocks" or the other way round? Either are possible, but which is more reasonable?

2. For now I’m to lazy to go into the code of the circular saw. For a while I was using it extensive, but it became annoying. I rather prefer to see all available blocks in the inventory (for creative mode). So I like "stairsio" as well.

Nevertheless I would be glad if moreblocks includes the nodeboxes of the arcs...
I am okay with using the screenshots in all my posts for the website of Minetest (http://minetest.net).

User avatar
oleastre
Member
Posts: 81
Joined: Wed Aug 13, 2014 21:39
GitHub: oleastre
In-game: oleastre

Re: [Mod] Simple Arcs [pkarcs]

by oleastre » Post

First, I really like your mod and what you can create with this.

I just had a quick look at your mod code and you can improve it a little bit, allowing external mods to register new materials (and creating new arcs types).
Just wrap the whole recipes and nodes definitions in a function that takes a line of your materials map as argument and creates arcs for that material.
Then just loop over you materials map and call that function.

Also, the node sound and groups can probably be retrieved from the original node by using the minetest.registered_nodes map (just like it's done in the moreblocks/stairsplus mod).

User avatar
Krock
Developer
Posts: 4535
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mod] Simple Arcs [pkarcs]

by Krock » Post

Amazing! I would love to see the feature to place the arcs around the corner and the mod will automatically relpace the regular arc with an edge one.

Also: Are there any plans for a mesh version of this yet? But I'm not sure if it would fit well into the blocky buildings.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
MineYoshi
Member
Posts: 5373
Joined: Wed Jul 08, 2015 13:20
Contact:

Re: [Mod] Simple Arcs [pkarcs]

by MineYoshi » Post

Nice +100

If you do a temple and you add those arcs to the corners, the building will be more nice and awesome!
Oi

User avatar
PEAK
Member
Posts: 151
Joined: Mon Jun 08, 2015 20:32
In-game: PEAK
Contact:

Re: [Mod] Simple Arcs [pkarcs]

by PEAK » Post

just a few nodeboxes... ;-)
oleastre wrote:I just had a quick look at your mod code and you can improve it a little bit
That’s always welcome.
oleastre wrote:Just wrap the whole recipes and nodes definitions in a function that takes a line of your materials map as argument and creates arcs for that material.
Then just loop over you materials map and call that function.
As yet I made it so:

Code: Select all

if minetest.get_modpath("...") then...
but your suggestion is far more better.
And so my thoughts
It’s a fundamental question, which other mods a mod should take care of...
become pointless.
oleastre wrote:Also, the node sound and groups can probably be retrieved from the original node by using the minetest.registered_nodes map
Indeed I didn’t know this two methods. Thank you very much, I will work on it and report in a few days.
oleastre wrote:(just like it's done in the moreblocks/stairsplus mod).
Damn, I must read more code!
Krock wrote:I would love to see the feature to place the arcs around the corner and the mod will automatically relpace the regular arc with an edge one.
No idea how to do that. That would be fine for stairs too--but may not always be intended.
Krock wrote:Also: Are there any plans for a mesh version of this yet?
I don’t think. That’s something I never dealt with.
Krock wrote:But I'm not sure if it would fit well into the blocky buildings.
Yes, meshnodes are great for decorations as in homedecor. Building materials should well integrate into the default blocks.
Last edited by PEAK on Wed May 04, 2016 00:52, edited 1 time in total.
I am okay with using the screenshots in all my posts for the website of Minetest (http://minetest.net).

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

Re: [Mod] Simple Arcs [pkarcs]

by Don » Post

Looks nice. If you want to try a mesh node for the arc you could try the one in mymeshnodes.
https://github.com/DonBatman/mymeshnodes.
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

User avatar
PEAK
Member
Posts: 151
Joined: Mon Jun 08, 2015 20:32
In-game: PEAK
Contact:

Re: [Mod] Simple Arcs [pkarcs]

by PEAK » Post

I applied oleastre’s suggestions viewtopic.php?f=9&t=14541&p=216103#p215959 to the code. (see edited attachment in first post)

OK. Problem solved. Forget all the following stuff...

It was something like this: viewtopic.php?f=47&t=14389#p213433
+ Spoiler
---
Don wrote:If you want to try a mesh node for the arc you could try the one in mymeshnodes.
Thank you--perhaps later.
I am okay with using the screenshots in all my posts for the website of Minetest (http://minetest.net).

User avatar
PEAK
Member
Posts: 151
Joined: Mon Jun 08, 2015 20:32
In-game: PEAK
Contact:

Mod updated

by PEAK » Post

see first post.
I am okay with using the screenshots in all my posts for the website of Minetest (http://minetest.net).

User avatar
TumeniNodes
Member
Posts: 2853
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: [Mod] Simple Arcs [pkarcs]

by TumeniNodes » Post

Awesome!
Ich mag keine grünen Eier und Schinken, ich mag sie nicht Sam I Am

User avatar
cHyper
Member
Posts: 842
Joined: Fri May 06, 2011 08:49
GitHub: cHyper-0815OL
IRC: cHyper
In-game: cHyper cHyper_0815
Location: Austria
Contact:

Re: [Mod] Simple Arcs [pkarcs]

by cHyper » Post

+1

User avatar
Damien
New member
Posts: 7
Joined: Wed Mar 18, 2015 05:11
In-game: Damien
Location: Veneto,a region of Italy,a beautiful place but not a place to live.

Re: [Mod] Simple Arcs [pkarcs]

by Damien » Post

Image
. \∼❈∼/ MOTHER
... ||| |||of
... ||| |||ARCHITECTURE

User avatar
Fixer
Member
Posts: 895
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

Re: [Mod] Simple Arcs [pkarcs]

by Fixer » Post

Nice mod! I think you can even adapt for every block like moreblocks mod does.

User avatar
PEAK
Member
Posts: 151
Joined: Mon Jun 08, 2015 20:32
In-game: PEAK
Contact:

Re: [Mod] Simple Arcs [pkarcs]

by PEAK » Post

Fixerol wrote:I think you can even adapt for every block like moreblocks mod does.
I tried this, but my attempt didn’t work--my lua skills are not sufficient to understand how to do it.

I must study more code of other mods.
I am okay with using the screenshots in all my posts for the website of Minetest (http://minetest.net).

User avatar
philipbenr
Member
Posts: 1688
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

Re: [Mod] Simple Arcs [pkarcs]

by philipbenr » Post

@PEAK: Aren't those weird craft recipes? Just saying... unless the nodes light up, torches are not a very good choice.

User avatar
PEAK
Member
Posts: 151
Joined: Mon Jun 08, 2015 20:32
In-game: PEAK
Contact:

Re: [Mod] Simple Arcs [pkarcs]

by PEAK » Post

philipbenr wrote:@PEAK: Aren't those weird craft recipes? Just saying... unless the nodes light up, torches are not a very good choice.
I referenced to stairsio viewtopic.php?t=13018
I am okay with using the screenshots in all my posts for the website of Minetest (http://minetest.net).

User avatar
philipbenr
Member
Posts: 1688
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

Re: [Mod] Simple Arcs [pkarcs]

by philipbenr » Post

But that still doesn't make it not odd... Try a something like this:

SSS
S
S

SSS
SS
S

SS
S

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

Re: [Mod] Simple Arcs [pkarcs]

by Sokomine » Post

Very nice! And the sample building is also quite impressive. Thanks for the mod! And it would be great to have it supported by the circular saw and similar mods.
A list of my mods can be found here.

User avatar
PEAK
Member
Posts: 151
Joined: Mon Jun 08, 2015 20:32
In-game: PEAK
Contact:

Re: [Mod] Simple Arcs [pkarcs]

by PEAK » Post

Bump! Update for Minetest 0.4.15

see first post
I am okay with using the screenshots in all my posts for the website of Minetest (http://minetest.net).

User avatar
BirgitLachner
Member
Posts: 383
Joined: Thu May 05, 2016 10:18
In-game: Bibs

Re: [Mod] Simple Arcs [pkarcs]

by BirgitLachner » Post

Do have your mod on github? It would be nice to follow him :-)

User avatar
PEAK
Member
Posts: 151
Joined: Mon Jun 08, 2015 20:32
In-game: PEAK
Contact:

Re: [Mod] Simple Arcs [pkarcs]

by PEAK » Post

Thank you for your interest in my mod.
BirgitLachner wrote:Do have your mod on github? It would be nice to follow him :-)
No, I think such a simple thing is not worth the effort.

By the way: just updated for Minetest 0.4.16! See attachment of first post.
I am okay with using the screenshots in all my posts for the website of Minetest (http://minetest.net).

User avatar
v-rob
Member
Posts: 752
Joined: Thu Mar 24, 2016 03:19
GitHub: v-rob
Location: Right behind you.

Re: [Mod] Simple Arcs [pkarcs] updated for 0.4.16

by v-rob » Post

This is a really cool mod -- useful for so many things!

I refurbished a dungeon with it. It looks really cool.

http://imgur.com/a/c3WNv

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests