What I’m trying to do
I’m trying to make a Template for an Enchantment Form for Minecraft. I’m using three different Plugins for that to achieve:
Here is the Table I got after I used the Template:
| Test | < |
| --- | --- |
| Kategorie: | BOW| rJ2KqXzxQg | < |
| --- | --- |
| Kategorie: | BOW |
| Seltenheit: | UNCOMMON| rJ2KqXzxQg | < |
| --- | --- |
| Kategorie: | BOWrJ2KqXzxQg |
| Seltenheit: | UNCOMMON |
| Level: | 1| rJ2KqXzxQg | < |
| --- | --- |
| Kategorie: | BOWrJ2KqXzxQg |
| Seltenheit: | UNCOMMONrJ2KqXzxQg |
| Level: | 1 |
| Schatz: | false| rJ2KqXzxQg | < |
| --- | --- |
| Kategorie: | BOWrJ2KqXzxQg |
| Seltenheit: | UNCOMMONrJ2KqXzxQg |
| Level: | 1rJ2KqXzxQg |
| Schatz: | false |
| Verflucht: | true| rJ2KqXzxQg | < |
| --- | --- |
| Kategorie: | BOWrJ2KqXzxQg |
| Seltenheit: | UNCOMMONrJ2KqXzxQg |
| Level: | 1rJ2KqXzxQg |
| Schatz: | falserJ2KqXzxQg |
| Verflucht: | true |
| Buch: | false| rJ2KqXzxQg | < |
| --- | --- |
| Kategorie: | BOWrJ2KqXzxQg |
| Seltenheit: | UNCOMMONrJ2KqXzxQg |
| Level: | 1rJ2KqXzxQg |
| Schatz: | falserJ2KqXzxQg |
| Verflucht: | truerJ2KqXzxQg |
| Buch: | false |
| Loot Table | true| rJ2KqXzxQg | < |
| --- | --- |
| Kategorie: | BOWrJ2KqXzxQg |
| Seltenheit: | UNCOMMONrJ2KqXzxQg |
| Level: | 1rJ2KqXzxQg |
| Schatz: | falserJ2KqXzxQg |
| Verflucht: | truerJ2KqXzxQg |
| Buch: | falserJ2KqXzxQg |
| Loot Table | true |
| Handel: | true| rJ2KqXzxQg | < |
| --- | --- |
| Kategorie: | BOWrJ2KqXzxQg |
| Seltenheit: | UNCOMMONrJ2KqXzxQg |
| Level: | 1rJ2KqXzxQg |
| Schatz: | falserJ2KqXzxQg |
| Verflucht: | truerJ2KqXzxQg |
| Buch: | falserJ2KqXzxQg |
| Loot Table | truerJ2KqXzxQg |
| Handel: | true |
| Kombinationstyp: | INCLUDE| rJ2KqXzxQg | < |
| --- | --- |
| Kategorie: | BOWrJ2KqXzxQg |
| Seltenheit: | UNCOMMONrJ2KqXzxQg |
| Level: | 1rJ2KqXzxQg |
| Schatz: | falserJ2KqXzxQg |
| Verflucht: | truerJ2KqXzxQg |
| Buch: | falserJ2KqXzxQg |
| Loot Table | truerJ2KqXzxQg |
| Handel: | truerJ2KqXzxQg |
| Kombinationstyp: | INCLUDE |
| Kombinierbar mit: | ["CHANNELING","BLAST PROTECTION"]| rJ2KqXzxQg | < |
| --- | --- |
| Kategorie: | BOWrJ2KqXzxQg |
| Seltenheit: | UNCOMMONrJ2KqXzxQg |
| Level: | 1rJ2KqXzxQg |
| Schatz: | falserJ2KqXzxQg |
| Verflucht: | truerJ2KqXzxQg |
| Buch: | falserJ2KqXzxQg |
| Loot Table | truerJ2KqXzxQg |
| Handel: | truerJ2KqXzxQg |
| Kombinationstyp: | INCLUDErJ2KqXzxQg |
| Kombinierbar mit: | ["CHANNELING","BLAST PROTECTION"] |
| Beschreibung: | Test| rJ2KqXzxQg | < |
| --- | --- |
| Kategorie: | BOWrJ2KqXzxQg |
| Seltenheit: | UNCOMMONrJ2KqXzxQg |
| Level: | 1rJ2KqXzxQg |
| Schatz: | falserJ2KqXzxQg |
| Verflucht: | truerJ2KqXzxQg |
| Buch: | falserJ2KqXzxQg |
| Loot Table | truerJ2KqXzxQg |
| Handel: | truerJ2KqXzxQg |
| Kombinationstyp: | INCLUDErJ2KqXzxQg |
| Kombinierbar mit: | ["CHANNELING","BLAST PROTECTION"]rJ2KqXzxQg |
| Beschreibung: | Test |
And here is the Note for the Template:
<%*
const result = await tp.user.openForms('MCEnchantmentTemplate', { values: { size: 'large' }});
let enchTitle = await result.asString("{{EnchantmentName}}");
let notePath = await result.asString("{{NotePath}}");
titleName = "Enchantment - " + enchTitle
await tp.file.rename(titleName);
await tp.file.move(notePath + "/" + titleName);
-%>
| <% enchTitle %> | < |
| --- | --- |
| Kategorie: | <% tR += await result.get("ItemCategory") %> |
| Seltenheit: | <% tR += await result.get("EnchantmentRarity") %> |
| Level: | <% tR += await result.get("EnchantmentLevel")%> |
| Schatz: | <%tR += await result.get("EnchantmentIsTreasure")%> |
| Verflucht: | <%tR += await result.get("EnchantmentIsCursed")%> |
| Buch: | <%tR += await result.get("EnchantmentHasBook")%> |
| Loot Table | <%tR += await result.get("EnchantmentGenerateLootTable")%> |
| Handel: | <%tR += await result.get("EnchantmentAllowTrades")%> |
| Kombinationstyp: | <%tR += await result.get("EnchantmentCombineType")%> |
| Kombinierbar mit: | <%tR += await result.get("EnchantmentCombineWith")%> |
| Beschreibung: | <%tR += await result.get("EnchantmentDescription")%> |
Things I have tried
First I used asString Method from Modal Forms Plugin. This was the first time it appeared this mess. After that I tried to use the get Method that get the Value of a Key(aka Field) rom Modal Forms.
I don’t know what causes this Issue. Can someone clear me up?