From f31593c5758ba0d977a18cd343bf226dc4a37a07 Mon Sep 17 00:00:00 2001 From: _Nik0__ Date: Sat, 31 Aug 2024 22:42:36 +0200 Subject: [PATCH] DP | Debug --- nnb_main/data/nnb_main/function/create_marker.mcfunction | 2 +- nnb_main/data/nnb_main/function/logger.mcfunction | 1 + nnb_main/main.jmc | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nnb_main/data/nnb_main/function/create_marker.mcfunction b/nnb_main/data/nnb_main/function/create_marker.mcfunction index b7b05e4..8847eb7 100644 --- a/nnb_main/data/nnb_main/function/create_marker.mcfunction +++ b/nnb_main/data/nnb_main/function/create_marker.mcfunction @@ -1,2 +1,2 @@ function nnb_main:logger {"pl":"@s","ll":"1","text":"Generated sucessfully"} -$give @s minecraft:armor_stand[minecraft:entity_data={Invisible:true,Invulnerable:true,NoBasePlate:true,NoGravity:true,Small:true,CustomNameVisible:false,CustomName:'{"text":"$(Tag) Marker"}',DisabledSlots:4128768,Tags:["$(Tag)"],id:"minecraft:armor_stand"},minecraft:custom_name='{"text":"$(Tag) Marker"}'] 1 \ No newline at end of file +$give @s minecraft:armor_stand[minecraft:entity_data={Invisible:true,Invulnerable:true,NoBasePlate:true,NoGravity:true,Small:true,CustomNameVisible:false,DisabledSlots:4128768,Tags:["$(Tag)"],id:"minecraft:armor_stand"},minecraft:custom_name='{"text":"$(Tag) Marker"}'] 1 \ No newline at end of file diff --git a/nnb_main/data/nnb_main/function/logger.mcfunction b/nnb_main/data/nnb_main/function/logger.mcfunction index bac03b8..4f3328c 100644 --- a/nnb_main/data/nnb_main/function/logger.mcfunction +++ b/nnb_main/data/nnb_main/function/logger.mcfunction @@ -1,3 +1,4 @@ +execute store result score $ll __variable__ run $(ll) scoreboard players set __found_case__ __variable__ 0 execute store result storage nnb_main:__storage__ switch_key int 1 run scoreboard players get $ll __variable__ function nnb_main:__private__/switch_case/1/select with storage nnb_main:__storage__ diff --git a/nnb_main/main.jmc b/nnb_main/main.jmc index 09c6738..bf1abdb 100644 --- a/nnb_main/main.jmc +++ b/nnb_main/main.jmc @@ -124,14 +124,14 @@ function lobby_music() { // Simple function to create marker function create_marker() { logger(pl="@s",ll="1",text="Generated sucessfully"); - $give @s minecraft:armor_stand[minecraft:entity_data={Invisible:true,Invulnerable:true,NoBasePlate:true,NoGravity:true,Small:true,CustomNameVisible:false,CustomName:'{"text":"$(Tag) Marker"}',DisabledSlots:4128768,Tags:["$(Tag)"],id:"minecraft:armor_stand"},minecraft:custom_name='{"text":"$(Tag) Marker"}'] 1; + $give @s minecraft:armor_stand[minecraft:entity_data={Invisible:true,Invulnerable:true,NoBasePlate:true,NoGravity:true,Small:true,CustomNameVisible:false,DisabledSlots:4128768,Tags:["$(Tag)"],id:"minecraft:armor_stand"},minecraft:custom_name='{"text":"$(Tag) Marker"}'] 1; } // Simple logger for logging & debug printed on chat function logger() { - + $ll = $(ll); switch ($ll) { case 1: $Text.tellraw($(pl), " ℹ | $(text)");