[Mod] Cursor [cursor]

Post Reply
User avatar
LibraSubtilis
Member
Posts: 17
Joined: Fri Jul 17, 2020 18:57
GitHub: LibraSubtilis

[Mod] Cursor [cursor]

by LibraSubtilis » Post

Cursor is a mod that enables players to turn themselves into a cursor and back.

Image

Cursor is a mod that enables players to turn themselves into a cursor and back.
The cursor is moved with the same keys as the default player model. As a cursor
you are still able to dig, place and interact with blocks using your mouse. You
you are also able to change the block at the position the cursor is located
using the special key. The block used is the block you wield. If you want to
remove a block, you have to wield an item that is not a node or no item at all.
This mod doesn't change the amount of blocks a player has in his inventory.
This mod also adds a resize item that changes the volume the cursor sets blocks
to. It has a range of 1 to 21.

To turn yourself into a cursor you need to have the privileges fly and noclip
and use the command toCursor. This state is not saved, so you will not be a
cursor in case you leave and rejoin. To turn yourself back you need to use the
command fromCursor. fromCursor sets properties back to the values that have
been saved with toCursor. Any changes to these properties that have been made
while you have been a cursor are lost.

This mod has an optional dependency to WorldEdit. In case you use it, this mod
registers a wand that enables you to set the first or second position to the
position of the player. You don't need to be a cursor to use it.

The size of the sprite used for the cursor is relative to the window size.

The version of this mod is 20.44.6 (year.calendar week.day).

- Download
- source
Last edited by LibraSubtilis on Sat Oct 31, 2020 08:40, edited 6 times in total.

MisterE
Member
Posts: 150
Joined: Sun Feb 16, 2020 21:06
GitHub: MisterE123
IRC: MisterE
In-game: MisterE

Re: [Mod] Cursor [cursor]

by MisterE » Post

Wow... you could expand this to build minetestCAD. Enable drawing lines, rectangular prism, rectangles, etc, with preview before writing to world.

You would need to use worldedit's selection system, but use your mod to make the selection interactive.

Ignaramico
Member
Posts: 34
Joined: Fri Sep 04, 2020 21:23

Re: [Mod] Cursor [cursor]

by Ignaramico » Post

very useful for heavy construction buildings, like in creative

User avatar
LibraSubtilis
Member
Posts: 17
Joined: Fri Jul 17, 2020 18:57
GitHub: LibraSubtilis

Re: [Mod] Cursor [cursor]

by LibraSubtilis » Post

I fixed the shaking camera.
MisterE wrote:
Sat Sep 26, 2020 13:33
Wow... you could expand this to build minetestCAD. Enable drawing lines, rectangular prism, rectangles, etc, with preview before writing to world.

You would need to use worldedit's selection system, but use your mod to make the selection interactive.
This mod is going to have a small amount of features because minetest is very limited to gameplay that is similar to minetest game.

Edit: I introduced a bug. The player currently doesn't turn back with fromCursor.

User avatar
LibraSubtilis
Member
Posts: 17
Joined: Fri Jul 17, 2020 18:57
GitHub: LibraSubtilis

Re: [Mod] Cursor [cursor]

by LibraSubtilis » Post

I fixed two bugs. The player can turn himself back with fromCursor again and positions used with WorldEdit are rounded now.
The player also turns into a sprite now, not a cube.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests