[Mod] Map Tools [maptools]

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

[Mod] Map Tools [maptools]

by Calinou » Post

This mod adds some “map tools” that can be useful for creating custom maps or preventing griefing on multiplayer servers.

GitHub repository (includes issue tracker)

Download
Rename the directory to “maptools” after extracting the .zip file.


No dependencies on non-default mods.
License for code: zlib
License for textures: CC BY-SA 3.0



- unbreakable blocks: some common blocks available in an unbreakable, non-flammable, non-falling, non-decaying form, plus a "full grass" block with grass texture on all sides. They can only be destroyed with the Admin pickaxe.
- infinite fuel: some fuel item lasting for a (near)-infinite time. Don't worry about the "near" — it lasts for about 50 in-real-life years.
- admin pickaxe: some purple pickaxe with an infinite durability, mining very fast - can remove unbreakable blocks, swinging instantly. Available in two variants: "with drops" and "without drops", the latter can dig non-empty containers.
- super apples: apples which heal 10 hearts, non-flammable.
- player clip and "full" clip: invisible blocks or faces (the faces also prevent fall damage), preventing players from leaving the map, or preventing players from interacting with objects.
- "light blocks" and "light bulbs": invisble nodes blocking or emitting light.
- "damage blocks": dealing 0.5, 1, 1.5, 2, 2.5 hearts of damage a second (or killing instantly).
- "climb blocks": invisible blocks which act as ladders, can be used to slow down falls.
- pushers: bouncy!
- "build prevention" and "interact prevention": prevents building or interacting with objects on certain types of blocks, can be used to avoid griefing.
- "smoke" blocks: some smoke (doesn't deal damage).
- fake ladders: unbreakable ladders that can't be climbed.
- permanent fire, fake fire, igniters: the first two do not spread to flammable blocks (permanent fire does damage, fake fire doesn't), the third one is an invisible block that will set nearby flammable blocks on fire.

Warning: non-pointable, unbreakable blocks (such as build prevention) cannot be removed without the aid of WorldEdit! Be very careful with them!

Currently, invisible blocks don't have any texture in inventory so you'll have to put your mouse over them to see what they are.

There are no crafting recipes - you have to use the /give or /giveme commands, see README.txt for item and node names.
Last edited by Calinou on Wed Apr 16, 2014 19:22, edited 1 time in total.

sfan5
Moderator
Posts: 4094
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

Nice!
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

Jordach
Member
Posts: 4534
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

by Jordach » Post

Useful.

User avatar
InfinityProject
Member
Posts: 1009
Joined: Sat Mar 17, 2012 00:52
Location: World of Infinity, US

by InfinityProject » Post

Does this work with 20120122?

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

...just try?

I don't think it would - there are no "material" variables set, you could add them yourself though (constant time 10000000 or something like that).

edit: Oh, you'd also have to edit the admin pickaxe code, since it uses the "digging groups" stuff.
Last edited by Calinou on Tue May 15, 2012 10:37, edited 1 time in total.

User avatar
InfinityProject
Member
Posts: 1009
Joined: Sat Mar 17, 2012 00:52
Location: World of Infinity, US

by InfinityProject » Post

Works fine on newer games but not on 20120122

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

Update: added "Super Apples".

User avatar
turbogus
Member
Posts: 280
Joined: Sat Apr 07, 2012 16:00
Location: FRANCE

by turbogus » Post

Very nice ! I use this mod on my server !
steinheim-minetest.servegame.com , port: 28000

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

Update! :)

JDL

by JDL » Post

+2, I'm away from my computer but I checked out the init.lua file and this looks like a very useful mod.

Jordach
Member
Posts: 4534
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

by Jordach » Post

It's admin tools JDL. That's why it's so useful.

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

Small update with a code cleanup. :)

Sturmegeist

by Sturmegeist » Post

Ok, this may sound stupid and/or noobish, but how do you use console commands?

User avatar
Sturmegeist
Member
Posts: 28
Joined: Sat Jun 30, 2012 15:15
Location: A different dimension

by Sturmegeist » Post

Ok, I found out how to get some basic items thanks to console commands, but the admin pickaxe is a no show. Am I doing something wrong?
Error 505- Your life could not be loaded please go get a new one.

Guest1024

by Guest1024 » Post

"infinite-ish fuel: some fuel item lasting for a (near)-infinite time. Don't worry about the "near" - it lasts for about 50 in-real-life years." 50 IRL YEARS? O_O

Isn't that a bit silly? Anyway, sounds cool though, testing at some point.

Temperest
Member
Posts: 651
Joined: Tue Nov 15, 2011 23:13
GitHub: Uberi

by Temperest » Post

So it runs out after 50 years? Is there a way to make it actually infinite?

I mean, it's not like I'll hit the limit anytime soon, but it would be nice to know.
WorldEdit 1.0 released

The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

Temperest wrote:So it runs out after 50 years? Is there a way to make it actually infinite?

I mean, it's not like I'll hit the limit anytime soon, but it would be nice to know.
Unfortunately, no. It's still enough. :P

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

Small update - cloud blocks are now minable using admin pickaxe.

Temperest
Member
Posts: 651
Joined: Tue Nov 15, 2011 23:13
GitHub: Uberi

by Temperest » Post

Very useful! Great for building adventure maps and the like.
WorldEdit 1.0 released

The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.

Emmett124
New member
Posts: 3
Joined: Sat Sep 01, 2012 07:28

by Emmett124 » Post

What is the giveme line to get theese items

Temperest
Member
Posts: 651
Joined: Tue Nov 15, 2011 23:13
GitHub: Uberi

by Temperest » Post

They are outlined in the top of the init.lua file.
WorldEdit 1.0 released

The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.

User avatar
qwrwed
Member
Posts: 326
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Post

Calinou wrote:Beware: non-pointable, unbreakable blocks (such as build prevention) cannot be removed! Be very careful with them!
If anyone can help fix this issue, please do. :P
You could use code from darkrose's tricorder (on her github) to detect the nodes, just remove the ores and replace them with those nodes. As for removing them, i don't know much about lua(yet) but you could have a seperate tool that removes one of those nodes when clicked. Another temporary way is dropping a falling node on it, you could code one to spawn above it and then remove it when it stops falling.

User avatar
GloopMaster
Member
Posts: 213
Joined: Wed Aug 01, 2012 18:03
Location: http://minetest.net/forum/

by GloopMaster » Post

the problem is that you can't point at them.
Meow.

That is all.

User avatar
qwrwed
Member
Posts: 326
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Post

Then what if the tool gets the positions of the nodes nearby, and then removes them? Or some code from worledit was used to convert the nodes to pointable ones with the same functionality, and then they were removed?
Last edited by qwrwed on Thu Mar 14, 2013 16:06, edited 1 time in total.

Temperest
Member
Posts: 651
Joined: Tue Nov 15, 2011 23:13
GitHub: Uberi

by Temperest » Post

Actually, you can just use WorldEdit to remove them. The //replace command should be sufficient for removing a specific type of node from a region.
WorldEdit 1.0 released

The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests