Signs in .mts files

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

Signs in .mts files

by Don » Wed Sep 09, 2015 21:07

What is a good way to have a sign in a .mts file? I want to place a .mts file that includes signs that the text will stay.
The type of sign does not matter. I can make a sign node with high res texture with the word in the texture. I am wondering if there is a better way.
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
 

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

Re: Signs in .mts files

by Sokomine » Wed Sep 09, 2015 21:16

Do you just want to put the same word on all signs? In that case, placing the schematic via place_schematic, followed by a find_nodes_in_area for your signs plus manual setting of the signs text might be sufficient. Other than that, I'm working on something similar for handle_schematics, but it hasn't really been tested yet and is currently only used when spawning something with the build chest.
A list of my mods can be found here.
 

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

Re: Signs in .mts files

by Don » Wed Sep 09, 2015 21:39

Sokomine wrote:Do you just want to put the same word on all signs? In that case, placing the schematic via place_schematic, followed by a find_nodes_in_area for your signs plus manual setting of the signs text might be sufficient. Other than that, I'm working on something similar for handle_schematics, but it hasn't really been tested yet and is currently only used when spawning something with the build chest.

I need different text on each. If there is no way to do it easily then I will just make them as a node with text in the texture.
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
 

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

Re: Signs in .mts files

by Sokomine » Thu Sep 10, 2015 03:08

Don wrote:I need different text on each. If there is no way to do it easily then I will just make them as a node with text in the texture.

Once you know the coordinates of the spawned signs, you can just add the metadata manually with your code. But that all depends on what you have in mind. Can you be more specific? Will mapgen place these schems automaticly, or do you have influence on it?
A list of my mods can be found here.
 

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

Re: Signs in .mts files

by Don » Thu Sep 10, 2015 03:56

I made a node you place and on right click it places the schematic.
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
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 7 guests