Better Commands

Description

Better Commands 🔗

Adds commands and syntax from a certain other voxel game (such as /kill @e[type=mobs_mc:zombie, distance = 2..]) to Minetest. For compatible command blocks, use my Better Command Blocks mod. I'm basically copying them from a certain other voxel game (whose name will not be mentioned), hereafter referred to as ACOVG.

PLEASE help with bug reports and PR's 🔗

This is kind of a huge project. ACOVG's commands are complicated.

Known Issues: 🔗

  1. I can't am too lazy to figure out how to do quotes or escape characters. This means that you cannot do things like /kill @e[name="Trailing space "] or have ] in any part of entity/item/node data.
  2. /tp does not support the checkForBlocks argument present in one version of ACOVG. This might change in the future.
  3. Only entities that use luaentity.nametag or luaentity._nametag for nametags (and players, of course) are supported by the name selector argument. This includes all mobs from MCLA/VL and Mobs Redo, but potentially not others.
  4. /setblock only supports replace or keep, not destroy, and only places nodes using set_node. Some nodes may not act right since they weren't placed by a player. You could, in theory, look at the node's code and set its metadata...
  5. /time does not properly add to the day count. This will not be fixed.
  6. Only players and fake players (not other entities) are supported by scoreboards, teams, and entity tags, since other entities don't have UUIDs. This might change.
  7. Except in MCLA/VL, the playerKillCount and killed_by, teamkill, and killedByTeam objectives can only track direct kills (so not arrows or explosions, for example).
  8. Objectives cannot be displayed as hearts, although literally the only reason is that there's no good half heart character.
  9. Team prefixes and suffixes have been replaced with nameFormat (for example, /team modify a_nice_team nameFormat [Admin] %s the great), where any %s is replaced with the player's name. If your name was singleplayer, it would appear as [Admin] singleplayer the great. The reason for this is pretty simple: I don't want to figure out how to do quotes, and Minetest removes trailing space, meaning prefixes ending in spaces are impossible. This fixes that.
  10. The /give command is currently unable to give multiple tools (so /give @s default:pick_wood 5 will only give 1). This may change.
  11. If you have a respawn point set with /spawnpoint, there is no way to clear it besides the /clearspawnpoint command. This will probably not change, since various games and mods set respawn points in different ways, and there's no way to make it compatible with all of them.

Reviews

Review

Do you recommend this mod?

  • English

    Useful!

    Great mod! Thanks. Very useful if you are a developer. Many issues, but it is still useful!

    6 comments
  • English

    Seems to be highly bugged, even when by itself

    I had high hopes for this mod, especially since it came with its own command block mod, but it spams "Server: nil" into the console every 3 seconds on the dot, and even more concerningly, there seems to be inconsistencies with which commands are available on each login. the /help menu will list between 1 and 8 commands available, and the ones not on the list just give the 'invalid command' message. I can confirm that, within the same world that had only: this mod, better command blocks, and mesecons (required by command blocks), the 'damage' command was available at one point, but just by relogging seems to have disabled it... also, some commands mentioned in /help will be partial words, such as /w or /tm, which are not from the game-that-shall-not-be-named and cannot be found on the wiki. at least twice, i have used them only to crash to the main menu instantly.

    again, had high hopes for this mod, love the concept and wanted to use the scoreboard functions, but there are some serious issues here.

    4 comments
  • good but

    the /help don't working ... make it or make a book in the game for help commands....

    1 comments

Releases

v3.3

Download

Luanti 5.11+

2025-12-31 15:47 UTC

v3.3 🔗

  • Fixed an issue causing the mod to stop registering commands when encountering an existing command with the same name
  • Would have taken literally three seconds if Lua had a continue statement.

v3.2

Download

Luanti 5.11+

2025-06-22 21:19 UTC

v3.2 🔗

v3.2

  • Disabled unnecessary logging that was accidentally left in
  • Updated license year and translation template.
  • The repo is in the Minetest Mods organization now, which is pretty neat.
2025-06-18 19:54 UTC

v3.1 🔗

v3.1

Fixes a crash caused by nodes being dug by non-players.

v3.0

Download

Luanti 5.11+

2025-06-17 22:04 UTC

v3.0 🔗

v3.0

ACTUALLY MAKES THE MOD WORK. It's been a long time since I updated my mods, so I'm finally working on that now. I fixed a lot of bugs. Some were my fault, and some were just the inevitable result of VoxeLibre and Mineclonia changing things. There are probably more that I didn't find, but I'll be a lot more likely to actually fix them now.

New features

  • Added /stop command
  • Added /weather command
  • Added /toggledownfall command
  • Added /ride command
  • Added @n selector

Bugfixes

  • Leaving out arguments no longer fails to show the params string.
  • Fixed /old and /bc crashing when used without arguments.
  • Fixed unnecessary logging
  • Fixed /scoreboard objectives remove <objective> causing a crash
  • Maybe fixed command registration issue? For some reason, I can't reproduce it anymore, so I probably just fixed it months ago and then completely forgot about it.
  • Fixed wrong argument order for /scoreboard players operation ...
  • Fixed a LOT of random things that I really don't feel like listing because there are so many.

v2.0

Download

Luanti 5.8+

2024-05-31 16:43 UTC

v2.0 🔗

No release notes

All releases

Threads

New thread

Information

Provides

better_commands

Dependencies

Required
No required dependencies
Optional
awards mcl_weather weather

Information

Type
Mod
Technical Name
better_commands
Languages
English
License
MIT
Maintenance State
Beta
Added
2024-03-25 02:17 UTC
Maintainers
ThePython10110