Skip to content

Commit

Permalink
DP | Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik0-0 committed Aug 31, 2024
1 parent 59fef45 commit f31593c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nnb_main/data/nnb_main/function/create_marker.mcfunction
Original file line number Diff line number Diff line change
@@ -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
$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
1 change: 1 addition & 0 deletions nnb_main/data/nnb_main/function/logger.mcfunction
Original file line number Diff line number Diff line change
@@ -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__
Expand Down
4 changes: 2 additions & 2 deletions nnb_main/main.jmc
Original file line number Diff line number Diff line change
Expand Up @@ -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), "<gray> ℹ | $(text)");
Expand Down

0 comments on commit f31593c

Please sign in to comment.