ZengineeringTeam / ResearchTable

https://www.curseforge.com/minecraft/mc-mods/research-table
Other
11 stars 8 forks source link

Can't use /tellraw as the completion message #41

Closed vizthex123 closed 3 years ago

vizthex123 commented 4 years ago

I can't figure out how to use the /tellraw command in my research.

It's kind of annoying, as I don't want the @ sign that /say generates. Not a huge deal though.

Loving the mod btw, it's exactly what I was looking for.

Here's the script:

var stone = ResearchTable.addCategory(<minecraft:stone_pickaxe>);

ResearchTable.builder("stone_age", stone)
  .setIcons(<minecraft:stone_pickaxe>)
  .setTitle("Stone Age")
  .setDescription("Research how to use Stone Tools")
  .addCondition(<ore:cobblestone> * 16)
  .setRewardStages("stone_age")
  .setRewardCommands("/tellraw @p {"text":"You've figured out how to make basic stone tools", "color":"white"}")
  .setRewardItems(null)
  .setNoMaxCount()
  .build();
Snownee commented 3 years ago

Hello, here is the same issue: https://discordapp.com/channels/252384449042317313/521399054391967749/755047493984583760