Back to mods
smartcursor project artwork

Vintage Story Mod DB · Vintage Story mod

smartcursor

SmartCursor This is a Vintagestory client side mode which aim to implement the smart cursor feature from Terraria (In Terraria it’s actually named smart cursor) SmartCursorPlus I didn’t find a way to place block from client side, so SmartCursorP

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which smartcursor release should I use?

Updated 3 months ago
Latest stable file 0.3.2
Game version 1.22.0-pre.1, 1.22.0-pre.2, 1.22.0-pre.3
Loader Built-in Vintage Story mod system

smartcursor 0.3.2 targets 1.22.0-pre.1, 1.22.0-pre.2, 1.22.0-pre.3. It must be installed on the client. Installation on the dedicated server is optional. No extra mods listed for this file.

Where it goes

Is smartcursor required on the client, server, or both?

It must be installed on the client. Installation on the dedicated server is optional.

Client Required
Dedicated server Optional
Loader for this release Built-in Vintage Story mod system
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This release supports both sides, but the source does not require it on the server.

What else does smartcursor 0.3.2 need?

0.3.2. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add smartcursor without breaking your instance.

Built for smartcursor 0.3.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 0.3.2. It targets 1.22.0-pre.1, 1.22.0-pre.2, 1.22.0-pre.3; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    It must be installed on the client. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 0.3.2. It opens that exact file at the source.

About this project

What does smartcursor add?

SmartCursor

This is a Vintagestory client side mode which aim to implement the smart cursor feature from Terraria (In Terraria it’s actually named smart cursor)

wazaaaaaa

SmartCursorPlus

I didn’t find a way to place block from client side, so SmartCursorPlus is not only client side it’s also server side It’s goal is the implement kind of the same behavior as the smart placement in Terraria, but a little bit different since block placement is not absolute in VS like it is in Terraria In VS we need, to target a block face then the block we place will be placed next to the face we pointed, which is really annoying for stairs and roof for example, look at the gif it show better how it work.

bbbbb

How it Works

SmartCursor automatically selects the most appropriate tool based on what you are looking at.

When the keybind is pressed, the mod analyzes: - the targeted entity (if any currently only support dead corps to pop the knife) - otherwise the targeted block

Based on this analysis, it determines the preferred tool (axe, pickaxe, hammer, knife, shovel, scythe, shears, etc.).

Tool selection order

  1. there’s some hard-coded stuff like dead entity pop the knife and worked clay will pop the need clay type (only when present of course)
  2. Domain-based overrides (configured in smartcursor.json)
    • Example: mushrooms always use Knife (no Scythe)
    • Example: anvils prioritize Hammer over Pickaxe
  3. Block material rules (Metal, Stone, Plant, Leaves, etc.) which take the best suited tool from you inventory

Inventory lookup

  • The hotbar is scanned first
  • If no matching tool is found, the main inventory is scanned
  • The first matching tool based on priority is selected
  • order can be configured with field inventories in smartcursor.json also other mods inventory could be supported example by default salty’s toolbelt is supported

Swapping behavior

  • The selected tool is swapped with the currently active hotbar slot
  • Swapping is done using inventory-native flip logic, avoiding item desync issues

Modes

  • Hold mode: (default: ‘R’) While the key is held, the tool in hand updates dynamically as you look at different blocks or entities.
  • Toggle mode: (default ‘alt+R’) Press once to activate SmartCursor, press again to restore the previous item.
  • One-shot mode: (default ‘None’) Press once to select the correct tool and keep it; SmartCursor will not swap it back automatically.
  • Placement: (default ‘f’) Only with SmartCursorPlus Press once to select you will see where block will be placed when you click, when the pich is above the horizon (kind of), it trigger the stair placement mod

Restore behavior

  • When SmartCursor deactivates (key released or toggle off), the original item is restored to its original slot.

Blacklist

  • You can black list item in the current active hotbar slot by pressing a key (default: <ctrl+alt+R>) it will toggle on and off black list for this item it can be useful for quest item ex: “Tin bronze pickaxe” if you want to be sure the mod will not pop this item. It can also be used if the mod has a bug or if other mod as some issue, for example the mod walkingstick the item property is tagged as pickaxe, so the mod can pop them, so you can simply black list it.

Configuration

  • A smartcursor.json file is created in VintagestoryData/ModConfig
  • Behavior such as continuous updating and tool priorities can be customized

Current status

This mod is experimental. The current state is “it works for me” — use at your own risk.

Todo

  • Support block rotation for smart placement
  • Support placement block downward
  • Add other type of swap (ex: like for the worked clay which spawn)

Project description from Vintage Story Mod DB.

Pick your setup

smartcursor releases for each Vintage Story version.

Choose the version and loader you play, then open the matching release.

20 available setups

Showing the newest 12 of 20 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

smartcursor versions and loaders

14 of 14 releases match

Looking for an older file? The official Vintage Story Mod DB project page is in Resources.