From 19745cafbc4c56d8eff4e555be81400c03e4a1ba Mon Sep 17 00:00:00 2001 From: AFCMS Date: Fri, 2 Jul 2021 01:06:01 +0200 Subject: [PATCH] fix wrong API def --- mods/CORE/mcl_commands/PROOF_OF_CONCEPT.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/CORE/mcl_commands/PROOF_OF_CONCEPT.md b/mods/CORE/mcl_commands/PROOF_OF_CONCEPT.md index 3a98169790..89cf3a9693 100644 --- a/mods/CORE/mcl_commands/PROOF_OF_CONCEPT.md +++ b/mods/CORE/mcl_commands/PROOF_OF_CONCEPT.md @@ -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)`