[Mod] Simple Arcs [pkarcs]

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

[Mod] Simple Arcs [pkarcs]

by PEAK » Sun May 01, 2016 22:57

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" https://forum.minetest.net/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:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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. (!)
Attachments
pkarcs.zip
(399.77 KiB) Downloaded 206 times
Last edited by PEAK on Fri Jan 20, 2017 03:54, edited 9 times in total.
Never put more than three blocks of the same kind together,
but if so, do it with appropriate remorse.
 

KCoombes
Member
 
Posts: 278
Joined: Thu Jun 11, 2015 23:19
In-game: Knatt or Rudilyn

Re: [Mod] Simple Arcs [pkarcs]

by KCoombes » Mon May 02, 2016 00:52

+10 Beautiful!
 

User avatar
benrob0329
Member
 
Posts: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

Re: [Mod] Simple Arcs [pkarcs]

by benrob0329 » Mon May 02, 2016 02:05

Very cool!
 

User avatar
Onyx
Member
 
Posts: 99
Joined: Fri Sep 25, 2015 08:36
In-game: onyx58

Re: [Mod] Simple Arcs [pkarcs]

by Onyx » Mon May 02, 2016 08:05

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: 67
Joined: Mon Jun 08, 2015 20:32
In-game: PEAK

Re: [Mod] Simple Arcs [pkarcs]

by PEAK » Mon May 02, 2016 11:17

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...
Never put more than three blocks of the same kind together,
but if so, do it with appropriate remorse.
 

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 » Mon May 02, 2016 14:17

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
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Mod] Simple Arcs [pkarcs]

by Krock » Mon May 02, 2016 18:55

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.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: [Mod] Simple Arcs [pkarcs]

by MineYoshi » Mon May 02, 2016 21:45

Nice +100

If you do a temple and you add those arcs to the corners, the building will be more nice and awesome!
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

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

Re: [Mod] Simple Arcs [pkarcs]

by PEAK » Tue May 03, 2016 10:25

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:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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.
Never put more than three blocks of the same kind together,
but if so, do it with appropriate remorse.
 

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

Re: [Mod] Simple Arcs [pkarcs]

by Don » Tue May 03, 2016 13:39

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: 67
Joined: Mon Jun 08, 2015 20:32
In-game: PEAK

Re: [Mod] Simple Arcs [pkarcs]

by PEAK » Wed May 04, 2016 00:59

I applied oleastre’s suggestions https://forum.minetest.net/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: https://forum.minetest.net/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.
Never put more than three blocks of the same kind together,
but if so, do it with appropriate remorse.
 

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

Mod updated

by PEAK » Fri May 06, 2016 17:51

see first post.
Never put more than three blocks of the same kind together,
but if so, do it with appropriate remorse.
 

User avatar
TumeniNodes
Member
 
Posts: 1335
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes

Re: [Mod] Simple Arcs [pkarcs]

by TumeniNodes » Thu May 26, 2016 17:12

Awesome!
Flick?... Flick who?
 

User avatar
cHyper
Member
 
Posts: 587
Joined: Fri May 06, 2011 08:49
IRC: cHyper
In-game: cHyper

Re: [Mod] Simple Arcs [pkarcs]

by cHyper » Thu May 26, 2016 19:29

+1
 

User avatar
Damien
New member
 
Posts: 7
Joined: Wed Mar 18, 2015 05:11
In-game: Damien

Re: [Mod] Simple Arcs [pkarcs]

by Damien » Thu May 26, 2016 21:00

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

Fixerol
Member
 
Posts: 633
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer

Re: [Mod] Simple Arcs [pkarcs]

by Fixerol » Thu May 26, 2016 22:53

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

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

Re: [Mod] Simple Arcs [pkarcs]

by PEAK » Wed Jun 08, 2016 21:06

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.
Never put more than three blocks of the same kind together,
but if so, do it with appropriate remorse.
 

User avatar
philipbenr
Member
 
Posts: 1665
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: WisdomFire or philipbenr

Re: [Mod] Simple Arcs [pkarcs]

by philipbenr » Wed Jun 08, 2016 21:32

@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: 67
Joined: Mon Jun 08, 2015 20:32
In-game: PEAK

Re: [Mod] Simple Arcs [pkarcs]

by PEAK » Wed Jun 08, 2016 22:06

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 https://forum.minetest.net/viewtopic.php?t=13018
Never put more than three blocks of the same kind together,
but if so, do it with appropriate remorse.
 

User avatar
philipbenr
Member
 
Posts: 1665
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: WisdomFire or philipbenr

Re: [Mod] Simple Arcs [pkarcs]

by philipbenr » Wed Jun 08, 2016 23:52

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: 2980
Joined: Sun Sep 09, 2012 17:31

Re: [Mod] Simple Arcs [pkarcs]

by Sokomine » Fri Jul 15, 2016 03:13

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: 67
Joined: Mon Jun 08, 2015 20:32
In-game: PEAK

Re: [Mod] Simple Arcs [pkarcs]

by PEAK » Fri Jan 20, 2017 03:56

Bump! Update for Minetest 0.4.15

see first post
Never put more than three blocks of the same kind together,
but if so, do it with appropriate remorse.
 


Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 14 guests

cron