mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-01 07:13:45 +01:00
fix wrong API def
This commit is contained in:
parent
bc2e122652
commit
19745cafbc
@ -41,11 +41,11 @@ mcl_commands.register_command("test", {
|
||||
|
||||
#### As a player:
|
||||
```
|
||||
mcl_commands.execute_command("test", "foo bar true 1", {commander=player, pos=player:get_pos()})
|
||||
mcl_commands.execute_command("test", "foo bar true 1", {type="player", commander=player, pos=player:get_pos()})
|
||||
```
|
||||
#### As a command block:
|
||||
```
|
||||
mcl_commands.execute_command("test", "foo bar true 1", {commander=commander, pos=node_pos})
|
||||
mcl_commands.execute_command("test", "foo bar true 1", {type="commandblock", commander=commander, pos=node_pos})
|
||||
```
|
||||
|
||||
### `mcl_commands.get_target_selector(target_selector)`
|
||||
|
Loading…
Reference in New Issue
Block a user