Skip to content

Commit

Permalink
I didn't like the color
Browse files Browse the repository at this point in the history
  • Loading branch information
Spigey committed May 3, 2024
1 parent 9455350 commit 2bc8374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/spigey/asteroide/util.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static void CommandBlock(Item CommandBlockToGive, String Command, int Alw
if(!CommandBlockToGive.toString().toUpperCase().contains("COMMAND_BLOCK")){return;} // Only allow Command Blocks
Command = Command.replaceAll("\"", "\\\\\\\"");
DisplayName = DisplayName.replaceAll("\"", "\\\\\\\"");
String nbt = "{display:{Name:'[\"\",{\"text\":\"" + DisplayName +"\",\"color\":\"dark_gray\"}]'},BlockEntityTag:{Command:\"" + Command + "\",auto:" + AlwaysActive + "b},HideFlags:127"; // idfk nbt
String nbt = "{display:{Name:'[\"\",{\"text\":\"" + DisplayName +"\",\"color\":\"gray\"}]'},BlockEntityTag:{Command:\"" + Command + "\",auto:" + AlwaysActive + "b},HideFlags:127"; // idfk nbt
if(Enchanted){nbt += ",Enchantments:[{lvl:1,id:infinity}]";}
nbt += "}";
give(itemstack(CommandBlockToGive), nbt);
Expand Down

0 comments on commit 2bc8374

Please sign in to comment.