diff --git a/projects/1.21-fabric/assets/modrinth-illusionist/illusionist/lang/en_us.json b/projects/1.21-fabric/assets/modrinth-illusionist/illusionist/lang/en_us.json new file mode 100644 index 000000000000..f89bbc2ecd0b --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-illusionist/illusionist/lang/en_us.json @@ -0,0 +1,4 @@ +{ + "trickster.trick.illusionist.disguise_block": "Shadow Ploy", + "trickster.trick.illusionist.dispel_block_disguise": "Revelation Ploy" +} \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-illusionist/illusionist/lang/en_us.yml b/projects/1.21-fabric/assets/modrinth-illusionist/illusionist/lang/en_us.yml new file mode 100644 index 000000000000..10795b74de68 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-illusionist/illusionist/lang/en_us.yml @@ -0,0 +1,4 @@ +trickster: + trick.illusionist: + disguise_block: Shadow Ploy + dispel_block_disguise: Revelation Ploy \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-illusionist/illusionist/lang/zh_cn.json b/projects/1.21-fabric/assets/modrinth-illusionist/illusionist/lang/zh_cn.json new file mode 100644 index 000000000000..c941fe4eca02 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-illusionist/illusionist/lang/zh_cn.json @@ -0,0 +1,4 @@ +{ + "trickster.trick.illusionist.disguise_block": "虚影之技巧", + "trickster.trick.illusionist.dispel_block_disguise": "揭影之技巧" +} \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-illusionist/illusionist/lavender/entries/tome_of_tomfoolery/shadow.md b/projects/1.21-fabric/assets/modrinth-illusionist/illusionist/lavender/entries/tome_of_tomfoolery/shadow.md new file mode 100644 index 000000000000..8258bdaef5b3 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-illusionist/illusionist/lavender/entries/tome_of_tomfoolery/shadow.md @@ -0,0 +1,33 @@ +```json +{ + "title": "Illusionist", + "icon": "minecraft:sea_lantern", + "category": "trickster:tricks" +} +``` + +Shadow blocks, +sometimes also referred to as echoes or echo blocks, +are illusions superimposed onto a material block. +They are dispelled when the state of the material block changes, +but can also be removed using a Revelation Ploy. + +;;;;; + +<|glyph@trickster:templates|trick-id=illusionist:disguise_block,title=Shadow Ploy|> + +vector, block -> boolean + +<|cost-rule@trickster:templates|formula=20kG|> + +Places a shadow of the given block at the given position and returns whether there was any change. + +;;;;; + +<|glyph@trickster:templates|trick-id=illusionist:dispel_block_disguise,title=Revelation Ploy|> + +vector -> boolean + +<|cost-rule@trickster:templates|formula=10kG|> + +Dispels any shadow block at the given position and returns whether there was one initially. diff --git a/projects/1.21-fabric/assets/modrinth-illusionist/illusionist/lavender/entries/tome_of_tomfoolery/zh_cn/shadow.md b/projects/1.21-fabric/assets/modrinth-illusionist/illusionist/lavender/entries/tome_of_tomfoolery/zh_cn/shadow.md new file mode 100644 index 000000000000..cd1ed18192b6 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-illusionist/illusionist/lavender/entries/tome_of_tomfoolery/zh_cn/shadow.md @@ -0,0 +1,29 @@ +```json +{ + "title": "幻术师", + "icon": "minecraft:sea_lantern", + "category": "trickster:tricks" +} +``` + +虚影方块,或称“伪影”或“造影”,是叠加于实物方块之上的一层幻觉。当实物方块的状态变化时,或使用揭影之技巧后,虚影即会被祛除。 + +;;;;; + +<|glyph@trickster:templates|trick-id=illusionist:disguise_block,title=虚影之技巧|> + +vector, block -> boolean + +<|cost-rule@trickster:templates|formula=20 kG|> + +在给定位置处施加所给方块的虚影,同时检查并返回虚影创建成功与否。 + +;;;;; + +<|glyph@trickster:templates|trick-id=illusionist:dispel_block_disguise,title=揭影之技巧|> + +vector -> boolean + +<|cost-rule@trickster:templates|formula=10 kG|> + +祛除所给位置处的虚影,同时检查并返回该处原本是否存在虚影。 diff --git a/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lang/en_us.json b/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lang/en_us.json new file mode 100644 index 000000000000..66eed8e617b9 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lang/en_us.json @@ -0,0 +1,13 @@ +{ + "trickster.trick.ram.alloc": "Allocator's Ploy", + "trickster.trick.ram.free": "Concierge's Ploy", + "trickster.trick.ram.read": "Retrieval Ingress", + "trickster.trick.ram.write": "Ploy of Caching", + "trickster.trick.ram.pattern_as_int": "Distortion of Compression", + "trickster.trick.ram.pattern_from_int": "Distortion of Expansion", + "trickster.trick.ram.pattern_from_int_list": "Distortion of Composition", + "trickster.trick.ram.glyph_from_spell_part": "Distortion of Baring", + "trickster.trick.ram.acquire_cell": "Antiquarian's Ploy", + "trickster.trick.ram.read_cell": "Archivist's Ingress", + "trickster.trick.ram.write_cell": "Archivist's Ploy" +} \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lang/en_us.yml b/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lang/en_us.yml new file mode 100644 index 000000000000..307014dbb1ca --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lang/en_us.yml @@ -0,0 +1,15 @@ +trickster: + trick.ram: + alloc: Allocator's Ploy + free: Concierge's Ploy + read: Retrieval Ingress + write: Ploy of Caching + + pattern_as_int: Distortion of Compression + pattern_from_int: Distortion of Expansion + pattern_from_int_list: Distortion of Composition + glyph_from_spell_part: Distortion of Baring + + acquire_cell: Antiquarian's Ploy + read_cell: Archivist's Ingress + write_cell: Archivist's Ploy \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lang/zh_cn.json b/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lang/zh_cn.json new file mode 100644 index 000000000000..9b02f9d46dc2 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lang/zh_cn.json @@ -0,0 +1,13 @@ +{ + "trickster.trick.ram.alloc": "分配器之技巧", + "trickster.trick.ram.free": "看守者之技巧", + "trickster.trick.ram.read": "取存之辑流", + "trickster.trick.ram.write": "缓存之技巧", + "trickster.trick.ram.pattern_as_int": "压缩之曲变", + "trickster.trick.ram.pattern_from_int": "扩张之曲变", + "trickster.trick.ram.pattern_from_int_list": "组点之曲变", + "trickster.trick.ram.glyph_from_spell_part": "秃根之曲变", + "trickster.trick.ram.acquire_cell": "古玩家之技巧", + "trickster.trick.ram.read_cell": "档案员之辑流", + "trickster.trick.ram.write_cell": "档案员之技巧" +} \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lavender/entries/tome_of_tomfoolery/cell.md b/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lavender/entries/tome_of_tomfoolery/cell.md new file mode 100644 index 000000000000..29bcb07850ec --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lavender/entries/tome_of_tomfoolery/cell.md @@ -0,0 +1,40 @@ +```json +{ + "title": "World Cells", + "icon": "minecraft:shulker_box", + "category": "trickster:tricks" +} +``` + +Each world has within it a store where fragments may be cached indefinitely, accessible by all. +Values may be written to each cell only once, but may be read from any amount of times by anyone with a valid reference. + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:acquire_cell,title=Antiquarian's Ploy|> + +-> cell + +--- + +Acquires an empty cell from the world. + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:read_cell,title=Archivist's Ingress|> + +cell -> any + +--- + +Returns the value contained within the cell. + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:write_cell,title=Archivist's Ploy|> + +cell, any -> cell + +--- + +Writes the given value to the cell. This operation makes it *impossible* to ever write to the cell again. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lavender/entries/tome_of_tomfoolery/distortions/meta.md b/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lavender/entries/tome_of_tomfoolery/distortions/meta.md new file mode 100644 index 000000000000..80eb49207ebc --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lavender/entries/tome_of_tomfoolery/distortions/meta.md @@ -0,0 +1,49 @@ +```json +{ + "title": "Meta Additions", + "icon": "minecraft:loom", + "category": "trickster:distortions" +} +``` + +Included herein are a handful of tricks useful for manipulating spells in the ways available from the [Spell Manipulation](^trickster:distortions/tree) chapter. + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:pattern_as_int,title=Distortion of Compression|> + +pattern -> number + +--- + +Compresses the given pattern into a number. + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:pattern_from_int,title=Distortion of Expansion|> + +number -> pattern + +--- + +Expands the given number into a pattern. + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:pattern_from_int_list,title=Distortion of Composition|> + +number[] | number... -> pattern + +--- + +Constructs a pattern from the given grid positions. + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:glyph_from_spell_part,title=Distortion of Baring|> + +spell -> any + +--- + +Returns the glyph of the root of the given spell. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lavender/entries/tome_of_tomfoolery/ram.md b/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lavender/entries/tome_of_tomfoolery/ram.md new file mode 100644 index 000000000000..97b44dff9753 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lavender/entries/tome_of_tomfoolery/ram.md @@ -0,0 +1,51 @@ +```json +{ + "title": "Random Access Mind", + "icon": "minecraft:goat_horn", + "category": "trickster:tricks" +} +``` + +The Random Access Mind, or RAM for short, +is a way of storing arbitrary semi-persistent data alongside other unrelated arbitrary data, +through the use of an allocation system. + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:alloc,title=Allocator's Ploy|> + +-> number + +--- + +Attempts to allocate a RAM slot, blundering if there are none free. Returns the address of the allocated slot. + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:free,title=Concierge's Ploy|> + +number -> + +--- + +Frees the RAM slot at the given address, permitting later re-allocation. + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:read,title=Retrieval Ingress|> + +number -> any + +--- + +Returns the fragment stored within the RAM slot at the given address. + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:write,title=Ploy of Caching|> + +number, any -> any + +--- + +Stores the given fragment in the RAM slot at the given address, overwriting what was there previously. diff --git a/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lavender/entries/tome_of_tomfoolery/zh_cn/cell.md b/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lavender/entries/tome_of_tomfoolery/zh_cn/cell.md new file mode 100644 index 000000000000..af949a0e60a5 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lavender/entries/tome_of_tomfoolery/zh_cn/cell.md @@ -0,0 +1,39 @@ +```json +{ + "title": "世界储元", + "icon": "minecraft:shulker_box", + "category": "trickster:tricks" +} +``` + +每个世界内部都有一片所有人共享的存储空间,其中可以永久缓存法术片段。每个储元只可写入一次,但只要有对应的引用,便可由任何人无限次读取。 + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:acquire_cell,title=古玩家之技巧|> + +-> cell + +--- + +自世界中获取一个空储元。 + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:read_cell,title=档案员之辑流|> + +cell -> any + +--- + +返回储元中的值。 + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:write_cell,title=档案员之技巧|> + +cell, any -> cell + +--- + +将所给值写入储元。此后该储元*不可*再写入。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/meta.md b/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/meta.md new file mode 100644 index 000000000000..efeb4a0e582a --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/meta.md @@ -0,0 +1,49 @@ +```json +{ + "title": "元施法附加戏法", + "icon": "minecraft:loom", + "category": "trickster:distortions" +} +``` + +此处记载的戏法能与[法术操纵](^trickster:distortions/tree)章节中的操纵方法协同使用。 + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:pattern_as_int,title=压缩之曲变|> + +pattern -> number + +--- + +将所给图案压缩为数。 + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:pattern_from_int,title=扩张之曲变|> + +number -> pattern + +--- + +将所给数扩张为图案。 + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:pattern_from_int_list,title=组点之曲变|> + +number[] | number... -> pattern + +--- + +依照给定的格点位置构建图案。 + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:glyph_from_spell_part,title=秃根之曲变|> + +spell -> any + +--- + +返回给定法术根节点中的符记。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lavender/entries/tome_of_tomfoolery/zh_cn/ram.md b/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lavender/entries/tome_of_tomfoolery/zh_cn/ram.md new file mode 100644 index 000000000000..480ccdfac43a --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-random-access-mind/ram/lavender/entries/tome_of_tomfoolery/zh_cn/ram.md @@ -0,0 +1,49 @@ +```json +{ + "title": "随机存取意识", + "icon": "minecraft:goat_horn", + "category": "trickster:tricks" +} +``` + +随机存取意识(Random Access Mind),简称“RAM”,是一种通过分配系统,以任意的布局半持久性地存储任意数据的方式。 + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:alloc,title=分配器之技巧|> + +-> number + +--- + +尝试分配一个RAM槽,若无空槽则导致失策,成功则返回分配的槽地址。 + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:free,title=看守者之技巧|> + +number -> + +--- + +释放所给地址处的RAM槽,以供后续再分配。 + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:read,title=取存之辑流|> + +number -> any + +--- + +返回给定地址的RAM槽中存储的法术片段。 + +;;;;; + +<|glyph@trickster:templates|trick-id=ram:write,title=缓存之技巧|> + +number, any -> any + +--- + +将所给法术片段存入给定地址的RAM槽。会覆盖其中原有的值。 diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lang/en_us.json b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lang/en_us.json new file mode 100644 index 000000000000..0da7f9cb2293 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lang/en_us.json @@ -0,0 +1,13 @@ +{ + "item.trickster_lisp.transpiler": "Spell LISP Transpiler", + "item.trickster_lisp.paper_and_pencil": "Paper and Pencil", + "item.trickster_lisp.tome_of_lispfoolery": "Tome of LISPfoolery", + "trickster_lisp.screen.transpiler": "Spell LISP Transpiler", + "trickster_lisp.screen.transpiler.load": "Load", + "trickster_lisp.screen.transpiler.validate": "Validate", + "trickster_lisp.screen.transpiler.store": "Store", + "trickster_lisp.screen.paper_and_pencil": "Paper and Pencil", + "trickster_lisp.tooltip.code": "Saved Code:", + "trickster_lisp.tooltip.macros": "Saved LISP Macros: %d macro(s)", + "trickster_lisp.item_group": "Trickster LISP" +} \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lang/zh_cn.json b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lang/zh_cn.json new file mode 100644 index 000000000000..ea418d6704c0 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lang/zh_cn.json @@ -0,0 +1,13 @@ +{ + "item.trickster_lisp.transpiler": "法术-LISP转译器", + "item.trickster_lisp.paper_and_pencil": "纸与铅笔", + "item.trickster_lisp.tome_of_lispfoolery": "LISP把戏秘典", + "trickster_lisp.screen.transpiler": "法术-LISP转译器", + "trickster_lisp.screen.transpiler.load": "载入", + "trickster_lisp.screen.transpiler.validate": "校验", + "trickster_lisp.screen.transpiler.store": "存储", + "trickster_lisp.screen.paper_and_pencil": "纸与铅笔", + "trickster_lisp.tooltip.code": "存有的代码:", + "trickster_lisp.tooltip.macros": "存有的LISP宏:%d个宏", + "trickster_lisp.item_group": "戏法师:LISP" +} \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/categories/tome_of_lispfoolery/items.md b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/categories/tome_of_lispfoolery/items.md new file mode 100644 index 000000000000..755aeef6b5d1 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/categories/tome_of_lispfoolery/items.md @@ -0,0 +1,9 @@ +```json +{ + "title": "Items", + "icon": "trickster_lisp:transpiler", + "ordinal": 0 +} +``` + +Items you'll need to transpile spells. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/categories/tome_of_lispfoolery/transpiling.md b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/categories/tome_of_lispfoolery/transpiling.md new file mode 100644 index 000000000000..2d67928bee87 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/categories/tome_of_lispfoolery/transpiling.md @@ -0,0 +1,8 @@ +```json +{ + "title": "Transpiling", + "icon": "minecraft:redstone" +} +``` + +Explaining how transpiler works and all the transpiler related features. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/categories/tome_of_lispfoolery/zh_cn/items.md b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/categories/tome_of_lispfoolery/zh_cn/items.md new file mode 100644 index 000000000000..b6700d13b2af --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/categories/tome_of_lispfoolery/zh_cn/items.md @@ -0,0 +1,9 @@ +```json +{ + "title": "物品", + "icon": "trickster_lisp:transpiler", + "ordinal": 0 +} +``` + +转译法术所需的物品。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/categories/tome_of_lispfoolery/zh_cn/transpiling.md b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/categories/tome_of_lispfoolery/zh_cn/transpiling.md new file mode 100644 index 000000000000..bcde8a4609ee --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/categories/tome_of_lispfoolery/zh_cn/transpiling.md @@ -0,0 +1,8 @@ +```json +{ + "title": "转译", + "icon": "minecraft:redstone" +} +``` + +转译器工作方式及相关特性的详细介绍。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/intro.md b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/intro.md new file mode 100644 index 000000000000..df4dbd371d28 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/intro.md @@ -0,0 +1,22 @@ +```json +{ + "title": "Getting Started", + "icon": "minecraft:paper" +} +``` + +To start transpiling spells, you'll need to craft a [Transpiler](^trickster_lisp:items/transpiler). + + +If you want to store your code somewhere, you can use [Paper and Pencil](^trickster_lisp:items/paper_and_pencil). + + +You can start learning how to write your spells in LISP, by creating some spells with Trickster +and then [loading](^trickster_lisp:transpiling/interface) spells to see what they look like in LISP! + +;;;;; + +Refer to [language reference](^trickster_lisp:transpiling/lang_ref) to learn how this mod represents Trickster fragments. + + +You can also write some [macros](^trickster_lisp:transpiling/macros) to simplify your code. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/items/paper_and_pencil.md b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/items/paper_and_pencil.md new file mode 100644 index 000000000000..9bbeb48496f1 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/items/paper_and_pencil.md @@ -0,0 +1,29 @@ +```json +{ + "title": "Paper and Pencil", + "icon": "trickster_lisp:paper_and_pencil", + "category": "trickster_lisp:items", + "associated_items": [ + "trickster_lisp:paper_and_pencil" + ] +} +``` + +Lets you write down your LISP code and keep it. + + + +Right-clicking it opens the interface where you can edit your code. + +;;;;; + +This item cannot be converted into spells directly, +but can be used with [Transpiler](^trickster_lisp:items/transpiler) to load and store code. + + +**Loading** code in transpiler while holding this item in offhand, +will replace contents of [code editor](^trickster_lisp:transpiling/interface) + + +**Storing** code in transpiler while holding this item in offhand, +will replace contents of this item with code from the transpiler. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/items/transpiler.md b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/items/transpiler.md new file mode 100644 index 000000000000..153ac42ffa5a --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/items/transpiler.md @@ -0,0 +1,27 @@ +```json +{ + "title": "Spell LISP Transpiler", + "icon": "trickster_lisp:transpiler", + "category": "trickster_lisp:items", + "associated_items": [ + "trickster_lisp:transpiler" + ] +} +``` + +The main item of the mod. + + + +Right-clicking it opens the [Transpiler interface](^trickster_lisp:transpiling/interface), +which allows you to convert LISP-like code to spells and back. + +;;;;; + +Usage of the transpiler is further explained [here](^trickster_lisp:transpiling). + + +Contents of the transpiler is saved in the item. + + +You can read contents of a transpiler with another transpiler. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/landing_page.md b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/landing_page.md new file mode 100644 index 000000000000..0b64e1436557 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/landing_page.md @@ -0,0 +1,7 @@ +```json +{ + "title": "Tome of LISPfoolery" +} +``` + +Create and modify Trickster spells with LISP! \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/transpiling/interface.md b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/transpiling/interface.md new file mode 100644 index 000000000000..af8aae64bd0f --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/transpiling/interface.md @@ -0,0 +1,44 @@ +```json +{ + "title": "Interface", + "icon": "minecraft:black_stained_glass_pane", + "category": "trickster_lisp:transpiling", + "ordinal": 0 +} +``` + +Transpiler interface contains 2 text boxes and 3 buttons. + + +Text box in the middle is the code editor. + + +Text box on the bottom is for validation messages. + +;;;;; + +**Load** button overrides contents of code editor with spell or code found in offhand. + + +To successfully load a spell, hold a scroll in your offhand, +open the transpiler and click **Load** button. + + +To load code from paper, you do same thing as above. + + +;;;;; + +**Validate** button parses, validates and formats you code. +You can use this to check if your code has any syntax mistakes. + + +**Store** button stores code on paper, or converts code into a spell and puts it onto any item. + +You must hold an item in offhand for this to work. + +If any error happens during conversion, validation text box will let you know about it. + +;;;;; + +Try experimenting with loading spells and see how spells look like in LISP! \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/transpiling/lang_ref.md b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/transpiling/lang_ref.md new file mode 100644 index 000000000000..5672edf54b76 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/transpiling/lang_ref.md @@ -0,0 +1,141 @@ +```json +{ + "title": "Language Reference", + "icon": "minecraft:book", + "category": "trickster_lisp:transpiling", + "ordinal": 1 +} +``` + +Language this mod uses is very similar to LISP, with some differences. + + +At the heart of everything is an **Identifier** or **ID**, it's a name that maps to a trick in Trickster. + + +For instance, **caster_reflection** will map to **Reflection Delusion** in Trickster. + +;;;;; + +Just putting an **ID** of the trick into code editor and then storing that onto a scroll, +will give you pattern of the trick. + +This can also be explained as an **unargumented call**, +or a function call that doesn't have any arguments. + + +**Argumented calls** can be performed by wrapping **ID** in parentheses +and then specifying arguments separated by space. + +;;;;; + +You can check **IDs** of tricks in Tom of Tomfoolery, they're written under each trick. + + +You can store fragments into items by having fragment representations as the only contents +of the transpiler. + + +Fragment representations can be wrapped with parentheses for transpiler to treat them as spells. + +;;;;; + +There's also a bunch of new functions you can use to create different trickster fragments: + + +**Block Fragments** can be represented with **(block_type "\")**. + + +**Boolean Fragments** can be represented with **true** or **false**. + + +**Dimension Fragments** can be represented with **(dimension "\")**. + +;;;;; + +**Entity Fragments** can be represented with + +**(entity "\")**. + + +**Entity Type Fragments** can be represented with **(entity_type "\")**. + + +**Item Type Fragments** can be represented with **(item_type "\")**. + + +**List Fragments** can be represented with square brackets and elements separated with commas, + +like **[ 1, 2, 3 ]**. + +;;;;; + +**Number Fragments** can be represented with integers and floats, like **123** or **1.23**. + + +**Pattern Fragments** and **Pattern Literals** can be represented with + +**(pattern \)** or **(pattern_literal \)**, + +you can usually obtain those by drawing the pattern in scroll and loading it into transpiler. + +;;;;; + +**Map Fragments** can be represented with curly brackets and key value elements separated with commas, + + +like **{** + +**0 : true,** + +**1 : false** + +**}**. + + +Colon must have space between key and value. + +;;;;; + +**Slot Fragments** can be represented with + +**(slot \)**, + +or + +**(slot \ \)**, + +or + +**(slot \ \)**. + + +**Type Fragments** can be represented with + +**(type "\")**. + + +**Vector Fragments** can be represented with + +**(vec \ \ \)**. + +;;;;; + +**Void Fragment** can be represented with **void**. + +**Empty Circles** can be represented with underscore (**_**). + + +There are some special functions that the transpiler understands: + + +**(get_glyph \)** will on conversion take the pattern of whatever expression you give it. + +So **(get_glyph reveal)** will give you pattern fragment of **Showcase Stratagem** trick. + +;;;;; + +**(arg \<1-8\>)** will provide **Primary Delusion**, **Secondary Delusion** and so on. + + +Try seeing what happens when you store any of those fragment representations into a scroll! \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/transpiling/macros.md b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/transpiling/macros.md new file mode 100644 index 000000000000..9e2af67c9da7 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/transpiling/macros.md @@ -0,0 +1,70 @@ +```json +{ + "title": "Macros", + "icon": "minecraft:flower_banner_pattern", + "category": "trickster_lisp:transpiling", + "ordinal": 2 +} +``` + +Transpiler supports defining macros and using them in code. +They can be defined as following: + + +**(#def \ (\) \)** + + + +;;;;; + +Macros can then be called as following: + + +**(#def print (value) (reveal value))** + +**(print! 123)** + + +Code above on conversion will unwrap into **Showcase Stratagem** with **123** as it's subcircle, or + +**(reveal 123)** + +if represented in LISP. + +;;;;; + +Macros can also catch indefinite amount of arguments if **Greedy Operator** is added to argument list, for example: + +**(#def print (...) (reveal ...))** + +**(print! 1 2 3)** + + +Code above on conversion will unwrap into: + +**(reveal 1 2 3)** + + +When using this along with normal arguments, greedy operator must be the last in the argument list. + +;;;;; + +Macros are Transpiler only features, Trickster cannot use LISP macros or transfer them in any way. + + +Storing code to a scroll will convert the code to the spell, but also store macros as additional data. + + +Transpiler will try to reverse any macros that it found while loading spells. + +;;;;; + +You can see how many LISP macros are stored by hovering mouse over the item. + + +When macros are stored on any ring (like **macro ring**) and equipped in **ring slot**, +transpiler will be able to reverse any patterns it finds into macro calls! + + +So, if you want cleaner code when using macros, consider putting them on a ring +and letting transpiler reverse them on conversion. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/intro.md b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/intro.md new file mode 100644 index 000000000000..a1ea81711915 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/intro.md @@ -0,0 +1,21 @@ +```json +{ + "title": "初出茅庐", + "icon": "minecraft:paper" +} +``` + +转译法术之前,需要先合成一台[转译器](^trickster_lisp:items/transpiler)。 + + +如有存储代码的需要,可以使用[纸与铅笔](^trickster_lisp:items/paper_and_pencil)。 + + +用LISP编写法术的第一步,就是先直接编写法术,再把它们[载入](^trickster_lisp:transpiling/interface)成LISP,然后研究载入后的样子! + +;;;;; + +本模组在戏法师法术片段与LISP间建立的对应关系详见[参考文档](^trickster_lisp:transpiling/lang_ref)。 + + +也可以编写[宏](^trickster_lisp:transpiling/macros)以简化代码。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/items/paper_and_pencil.md b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/items/paper_and_pencil.md new file mode 100644 index 000000000000..271aa2bfbf5b --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/items/paper_and_pencil.md @@ -0,0 +1,26 @@ +```json +{ + "title": "纸与铅笔", + "icon": "trickster_lisp:paper_and_pencil", + "category": "trickster_lisp:items", + "associated_items": [ + "trickster_lisp:paper_and_pencil" + ] +} +``` + +能用来编写和保存LISP代码。 + + + +右击即可打开代码编辑界面。 + +;;;;; + +本物品中的代码无法直接转换成法术,而是需要借助[转译器](^trickster_lisp:items/transpiler)的载入和存储功能。 + + +副手持本物品,再用转译器**载入**代码,本物品内的代码即会覆盖[代码编辑器](^trickster_lisp:transpiling/interface)。 + + +副手持本物品,再用转译器**存储**代码,转译器内的代码便会覆盖本物品。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/items/transpiler.md b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/items/transpiler.md new file mode 100644 index 000000000000..b56cc8ee29b7 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/items/transpiler.md @@ -0,0 +1,26 @@ +```json +{ + "title": "法术-LISP转译器", + "icon": "trickster_lisp:transpiler", + "category": "trickster_lisp:items", + "associated_items": [ + "trickster_lisp:transpiler" + ] +} +``` + +本模组的主要物品。 + + + +右击即可打开[转译器界面](^trickster_lisp:transpiling/interface),可在其中来回转换法术和类LISP代码。 + +;;;;; + +转译器的详细用途介绍见[此](^trickster_lisp:transpiling)。 + + +转译器中编写的代码会存储在物品中。 + + +可以用转译器读取转译器。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/landing_page.md b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/landing_page.md new file mode 100644 index 000000000000..09dea8234f71 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/landing_page.md @@ -0,0 +1,7 @@ +```json +{ + "title": "LISP把戏秘典" +} +``` + +用LISP来编写和修改戏法师的法术! \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/transpiling/interface.md b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/transpiling/interface.md new file mode 100644 index 000000000000..25be18aed350 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/transpiling/interface.md @@ -0,0 +1,42 @@ +```json +{ + "title": "界面", + "icon": "minecraft:black_stained_glass_pane", + "category": "trickster_lisp:transpiling", + "ordinal": 0 +} +``` + +转译器的界面由2个文本框和3个按钮组成。 + + +中央的文本框是代码编辑器。 + + +下方的文本框则用于各种校验消息。 + +;;;;; + +**载入**按钮会以副手中的法术或代码覆盖编辑器。 + + +为载入法术,需先在副手中持有卷轴,再打开转译器并按下**载入**按钮。 + + +若需从纸上载入代码,重复上述步骤即可。 + + +;;;;; + +**校验**按钮会解析、校验代码,并将其格式化。可借此检查代码中有无语法错误。 + + +**存储**按钮会将代码存到纸上;或是将代码转换成法术,以存到任意物品中去。 + +操作时副手必须持有物品。 + +转换过程中出现的错误可在校验文本框中查看。 + +;;;;; + +试试看载入法术,再看看法术在LISP里长什么样! \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/transpiling/lang_ref.md b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/transpiling/lang_ref.md new file mode 100644 index 000000000000..2ff4dc6fea6b --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/transpiling/lang_ref.md @@ -0,0 +1,133 @@ +```json +{ + "title": "参考文档", + "icon": "minecraft:book", + "category": "trickster_lisp:transpiling", + "ordinal": 1 +} +``` + +本模组使用的语言与LISP很相似,但仍有几点不同。 + + +模组语言的核心要素是**标识符**或**ID**,即映射为戏法师中戏法的名称。 + + +比如说,**caster_reflection** 会映射成**自审之错觉**。 + +;;;;; + +在代码中输入戏法对应的**ID**,然后存入卷轴,即可得到对应的图案。 + +这也可看作**无参数调用**,或不具参数的函数调用。 + + +用小括号括起**ID**,再用空格分出各参数,即可达成**有参数调用**。 + +;;;;; + +可以在《魔术把戏秘典》中查看各戏法的**ID**——就在戏法说明的下方。 + + +若转译器中仅存有法术片段的对应表示,存储时即可将对应片段写入物品。 + + +片段标识外可括有小括号,以便转译器将其识别为法术。 + +;;;;; + +还有若干新函数,可用来直接产生各类戏法师法术片段: + + +**方块片段**可表示为 **(block_type "\")**。 + + +**布尔值片段**可表示为 **true** 和 **false**。 + + +**维度片段**可表示为 **(dimension "\")**。 + +;;;;; + +**实体片段**可表示为 + +**(entity "\")**。 + + +**实体类型片段**可表示为 **(entity_type "\")**。 + + +**物品类型片段**可表示为 **(item_type "\")**。 + + +**列表片段**可表示为逗号分隔的列表元素,外括中括号, + +如 **[ 1, 2, 3 ]**。 + +;;;;; + +**数片段**可表示为整数和浮点数,如 **123** 和 **1.23**。 + + +**图案片段**和**图案字面量**可表示为 + +**(pattern \<整数\>)** 和 **(pattern_literal \<整数\>)**, + +通常来说,在卷轴中绘制后载入转译器即可。 + +;;;;; + +**映射片段**可表示为逗号分隔的键值对,外括大括号, + + +如 **{** + +**0 : true,** + +**1 : false** + +**}**。 + + +键与冒号、值与冒号间必须留出空格。 + +;;;;; + +**槽位片段**可表示为 + +**(slot \<槽位索引\>)**、 + +**(slot \<槽位索引\> \<向量\>)**、 + +**(slot \<槽位索引\> \)**。 + + +**类型片段**可表示为 + +**(type "\<法术片段类型\>")**。 + + +**向量片段**可表示为 + +**(vec \ \ \)**。 + +;;;;; + +**空类型片段**可表示为 **void**。 + +**空圆**可表示为下划线(**_**)。 + + +转译器还接受下述的特殊函数: + + +**(get_glyph \<表达式\>)** 会在转换时变为给定的表达式。 + +也即 **(get_glyph reveal)** 会在转换时变为**展示之谋略**戏法。 + +;;;;; + +**(arg \<1-8\>)** 会分别变为**甲参之错觉**、**乙参之错觉**等。 + + +把这些片段表示方式存到卷轴里试试看吧! \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/transpiling/macros.md b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/transpiling/macros.md new file mode 100644 index 000000000000..42df8c07622e --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-lisp/trickster_lisp/lavender/entries/tome_of_lispfoolery/zh_cn/transpiling/macros.md @@ -0,0 +1,65 @@ +```json +{ + "title": "宏", + "icon": "minecraft:flower_banner_pattern", + "category": "trickster_lisp:transpiling", + "ordinal": 2 +} +``` + +转译器支持宏,所定义的宏可在代码中使用。定义格式如下: + + +**(#def \<宏名\> (\<参数名\>) \<匹配表达式\>)** + + + +;;;;; + +之后,宏就可用下述方法调用: + + +**(#def print (value) (reveal value))** + +**(print! 123)** + + +上方的代码在转换时,会将其展开为**展示之谋略**和内有**123**的子圆,或LISP中的 + +**(reveal 123)**。 + +;;;;; + +若是在参数列表中使用**贪婪运算符**,宏还可匹配不定数量的参数,例如: + +**(#def print (...) (reveal ...))** + +**(print! 1 2 3)** + + +上方的代码会展开为: + +**(reveal 1 2 3)** + + +与普通的参数共同使用时,贪婪运算符必须位于参数列表中的最后一位。 + +;;;;; + +宏是转译器独占的特性,戏法师的法术无法使用LISP的宏,也根本无法将LISP宏转换成法术片段。 + + +向卷轴存储法术时,会将整段代码转换成法术,但同时会将宏保留为附加数据。 + + +转译器载入法术的过程中会尽可能还原宏。 + +;;;;; + +将鼠标悬停在物品上,即可查看其中存有多少LISP宏。 + + +而当宏存储在佩戴着的任意戒指(譬如**宏戒指**)中时,转译器同样能识别到它们,并依此还原出宏调用! + + +正因此,如需在使用宏时保持代码整洁,可以考虑把宏存到戒指上,再让转译器在转换时帮你还原出来。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lang/en_us.json b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lang/en_us.json new file mode 100644 index 000000000000..3de195bbee2a --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lang/en_us.json @@ -0,0 +1,15 @@ +{ + "trickster.trick.trickster-math-tricks.math_lib": "Calculation Stratagem", + "trickster_math_tricks.math_trick.extract_x": "Primary Distortion", + "trickster_math_tricks.math_trick.extract_y": "Secondary Distortion", + "trickster_math_tricks.math_trick.extract_z": "Tertiary Distortion", + "trickster_math_tricks.math_trick.extract_w": "Quaternary Distortion", + "trickster_math_tricks.math_trick.normalize": "Regularity Distortion", + "trickster_math_tricks.math_trick.magnitude": "Magnitude Distortion", + "trickster_math_tricks.math_trick.squared_magnitude": "Squared Magnitude Distortion", + "trickster_math_tricks.math_trick.quat_from_axis": "Rotating Distortion", + "trickster_math_tricks.math_trick.quat_from_comp": "Quaternary Absorption Distortion", + "trickster_math_tricks.math_trick.quat_euler": "Quaternary Angle Distortion", + "trickster_math_tricks.math_trick.caster_quaternion": "Rotation Reflection", + "trickster_math_tricks.math_trick.entity_quaternion": "Rotation Ingress" +} \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lang/zh_cn.json b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lang/zh_cn.json new file mode 100644 index 000000000000..7cccf6cfb5ba --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lang/zh_cn.json @@ -0,0 +1,15 @@ +{ + "trickster.trick.trickster-math-tricks.math_lib": "计算之谋略", + "trickster_math_tricks.math_trick.extract_x": "甲元之曲变", + "trickster_math_tricks.math_trick.extract_y": "乙元之曲变", + "trickster_math_tricks.math_trick.extract_z": "丙元之曲变", + "trickster_math_tricks.math_trick.extract_w": "丁元之曲变", + "trickster_math_tricks.math_trick.normalize": "归一之曲变", + "trickster_math_tricks.math_trick.magnitude": "模长之曲变", + "trickster_math_tricks.math_trick.squared_magnitude": "模方之曲变", + "trickster_math_tricks.math_trick.quat_from_axis": "旋转之曲变", + "trickster_math_tricks.math_trick.quat_from_comp": "四元吸收之曲变", + "trickster_math_tricks.math_trick.quat_euler": "四元角之曲变", + "trickster_math_tricks.math_trick.caster_quaternion": "旋向之错觉", + "trickster_math_tricks.math_trick.entity_quaternion": "旋向之辑流" +} \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/categories/tome_of_tomfoolery/math-tricks.md b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/categories/tome_of_tomfoolery/math-tricks.md new file mode 100644 index 000000000000..743652b70d8c --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/categories/tome_of_tomfoolery/math-tricks.md @@ -0,0 +1,14 @@ +```json +{ + "title": "Math Tricks", + "icon": "minecraft:comparator", + "parent": "trickster:tricks" +} +``` + +This category contains all the tricks defined by Math Tricks addon. + + +All tricks/patterns here require +[**Calculation Stratagem** or **Calculation Revision**](^trickster-math-tricks:math-tricks) +to be used. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/categories/tome_of_tomfoolery/zh_cn/math-tricks.md b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/categories/tome_of_tomfoolery/zh_cn/math-tricks.md new file mode 100644 index 000000000000..807bae764999 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/categories/tome_of_tomfoolery/zh_cn/math-tricks.md @@ -0,0 +1,12 @@ +```json +{ + "title": "数学戏法", + "icon": "minecraft:comparator", + "parent": "trickster:tricks" +} +``` + +本分类囊括了数学戏法附属添加的所有戏法。 + + +此处介绍的戏法及图案均需与[**计算之谋略**或**计算之修订**](^trickster-math-tricks:math-tricks)协同使用。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/distortions/caster.md b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/distortions/caster.md new file mode 100644 index 000000000000..8a83fffb6f73 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/distortions/caster.md @@ -0,0 +1,19 @@ +```json +{ + "title": "Casting Context", + "icon": "trickster:wand", + "category": "trickster-math-tricks:math-tricks" +} +``` + +This entry contains delusion tricks that retrieve context about the casting entity or block. + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:caster_quaternion,title=Rotation Reflection|> + +-> quaternion + +--- + +Returns the head rotation the casting entity has as a quaternion, if available. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/distortions/common.md b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/distortions/common.md new file mode 100644 index 000000000000..6420fa365e94 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/distortions/common.md @@ -0,0 +1,80 @@ +```json +{ + "title": "Common Tricks", + "icon": "minecraft:repeater", + "category": "trickster-math-tricks:math-tricks" +} +``` + +This section contains tricks that might be similar to Trickster's existing tricks, +but they support more types. + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:extract_x,title=Primary Distortion|> + +vector | quaternion -> number + +--- + +Returns the X component of the given fragment. + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:extract_y,title=Secondary Distortion|> + +vector | quaternion -> number + +--- + +Returns the Y component of the given fragment. + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:extract_z,title=Tertiary Distortion|> + +vector | quaternion -> number + +--- + +Returns the Z component of the given fragment. + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:extract_w,title=Quaternary Distortion|> + +quaternion -> number + +--- + +Returns the W component of the given fragment. + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:normalize,title=Regularity Distortion|> + +quaternion | vector -> quaternion | vector + +--- + +Normalizes the given fragment to a length of one. + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:magnitude,title=Magnitude Distortion|> + +quaternion | vector -> number + +--- + +Returns the length of the given fragment. + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:squared_magnitude,title=Squared Magnitude Distortion|> + +quaternion | vector -> number + +--- + +Returns the squared length of the given fragment. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/distortions/constants.md b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/distortions/constants.md new file mode 100644 index 000000000000..3b3d3d7b5bd7 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/distortions/constants.md @@ -0,0 +1,29 @@ +```json +{ + "title": "Constants", + "icon": "minecraft:bedrock", + "category": "trickster-math-tricks:math-tricks" +} +``` + +Here you can find all the different constants that the addon defines. + +;;;;; + +<|pattern@trickster:templates|pattern=6\,0\,2\,8\,5,title=Circumferential Revision|> + +{gray}(Scribing pattern){} + +--- + +Replaces the glyph with the Pi constant. + +;;;;; + +<|pattern@trickster:templates|pattern=3\,4\,8\,7\,6\,3,title=Circumferential Revision|> + +{gray}(Scribing pattern){} + +--- + +Replaces the glyph with the identity quaternion. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/distortions/entity.md b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/distortions/entity.md new file mode 100644 index 000000000000..6f45597bcaac --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/distortions/entity.md @@ -0,0 +1,19 @@ +```json +{ + "title": "Entity Querying", + "icon": "minecraft:cow_spawn_egg", + "category": "trickster-math-tricks:math-tricks" +} +``` + +Various tricks related to gathering data about entities. + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:entity_quaternion,title=Rotation Ingress|> + +entity -> quaternion + +--- + +Given an entity, returns its head rotation as a quaternion. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/distortions/quaternions.md b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/distortions/quaternions.md new file mode 100644 index 000000000000..9b55ff12275f --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/distortions/quaternions.md @@ -0,0 +1,39 @@ +```json +{ + "title": "Quaternions", + "icon": "minecraft:firework_rocket", + "category": "trickster-math-tricks:math-tricks" +} +``` + +The following patterns regard quaternion operations. + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:quat_from_axis,title=Rotating Distortion|> + +vector, number -> quaternion + +--- + +Creates a quaternion from an axis and an angle (radians). + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:quat_from_comp,title=Quaternary Absorption Distortion|> + +number, number, number, number -> quaternion + +--- + +Creates a quaternion from XYZW components. + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:quat_euler,title=Quaternary Angle Distortion|> + +quaternion -> vector + +--- + +Calculates euler angles (radians) from quaternion. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/math-tricks.md b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/math-tricks.md new file mode 100644 index 000000000000..7216845079dd --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/math-tricks.md @@ -0,0 +1,31 @@ +```json +{ + "title": "Math Tricks", + "icon": "minecraft:quartz", + "category": "trickster:tricks" +} +``` +Trickster Math Tricks addon adds a bunch of useful math tricks to allow you to do complicated things in Trickster *slightly* easier. + + +This mod adds only 2 tricks/revisions to the base mod, they have to be used to use any tricks/revisions that this mod adds. + +;;;;; + +<|glyph@trickster:templates|trick-id=trickster-math-tricks:math_lib,title=Calculation Stratagem|> + +pattern, any... -> any + +--- + +Executes math tricks identified by provided pattern. This is required to call any math tricks added by this addon. + +;;;;; + +<|pattern@trickster:templates|pattern=3\,4\,0\,3\,6\,4\,7\,6,title=Calculation Revision|> + +{gray}(Scribing pattern){} + +--- + +Runs math revisions identified by existing pattern in the circle. This is required to use any math revisions added by this mod. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/caster.md b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/caster.md new file mode 100644 index 000000000000..36028c4dcffb --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/caster.md @@ -0,0 +1,19 @@ +```json +{ + "title": "施法上下文", + "icon": "trickster:wand", + "category": "trickster-math-tricks:math-tricks" +} +``` + +本节中的错觉术能获取施法实体和方块的上下文。 + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:caster_quaternion,title=旋向之错觉|> + +-> quaternion + +--- + +若可行,将施法实体头部的旋转方向返回为四元数。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/common.md b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/common.md new file mode 100644 index 000000000000..b5398b043b85 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/common.md @@ -0,0 +1,79 @@ +```json +{ + "title": "通用戏法", + "icon": "minecraft:repeater", + "category": "trickster-math-tricks:math-tricks" +} +``` + +本节的戏法在功能上可能与戏法师已有的戏法较为相似,但它们支持的类型更多。 + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:extract_x,title=甲元之曲变|> + +vector | quaternion -> number + +--- + +返回所给法术片段的X分量。 + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:extract_y,title=乙元之曲变|> + +vector | quaternion -> number + +--- + +返回所给法术片段的Y分量。 + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:extract_z,title=丙元之曲变|> + +vector | quaternion -> number + +--- + +返回所给法术片段的Z分量。 + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:extract_w,title=丁元之曲变|> + +quaternion -> number + +--- + +返回所给法术片段的W分量。 + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:normalize,title=归一之曲变|> + +quaternion | vector -> quaternion | vector + +--- + +将所给法术片段归一化至长度为一。 + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:magnitude,title=模长之曲变|> + +quaternion | vector -> number + +--- + +返回所给法术片段的长度。 + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:squared_magnitude,title=模方之曲变|> + +quaternion | vector -> number + +--- + +返回所给法术片段长度的平方。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/constants.md b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/constants.md new file mode 100644 index 000000000000..cbc4138da4c2 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/constants.md @@ -0,0 +1,29 @@ +```json +{ + "title": "常量", + "icon": "minecraft:bedrock", + "category": "trickster-math-tricks:math-tricks" +} +``` + +此处记有本附属添加的各类常量。 + +;;;;; + +<|pattern@trickster:templates|pattern=6\,0\,2\,8\,5,title=圆周之修订|> + +{gray}(抄绘图案){} + +--- + +将符记换为数“π”。 + +;;;;; + +<|pattern@trickster:templates|pattern=3\,4\,8\,7\,6\,3,title=四元数之修订|> + +{gray}(抄绘图案){} + +--- + +将符记换为单位四元数。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/entity.md b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/entity.md new file mode 100644 index 000000000000..e6196370d946 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/entity.md @@ -0,0 +1,19 @@ +```json +{ + "title": "实体查询", + "icon": "minecraft:cow_spawn_egg", + "category": "trickster-math-tricks:math-tricks" +} +``` + +各类能获取实体信息的戏法。 + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:entity_quaternion,title=旋向之辑流|> + +entity -> quaternion + +--- + +将所给实体头部的旋转方向返回为四元数。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/quaternions.md b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/quaternions.md new file mode 100644 index 000000000000..cd99b8ad53f0 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/quaternions.md @@ -0,0 +1,39 @@ +```json +{ + "title": "四元数", + "icon": "minecraft:firework_rocket", + "category": "trickster-math-tricks:math-tricks" +} +``` + +下述图案能对四元数进行运算与操作。 + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:quat_from_axis,title=旋转之曲变|> + +vector, number -> quaternion + +--- + +依照所给旋转轴和角度(弧度)构造四元数。 + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:quat_from_comp,title=四元吸收之曲变|> + +number, number, number, number -> quaternion + +--- + +依照所给XYZW分量构造四元数。 + +;;;;; + +<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:quat_euler,title=四元角之曲变|> + +quaternion -> vector + +--- + +计算所给四元数的欧拉角(弧度)。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/zh_cn/math-tricks.md b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/zh_cn/math-tricks.md new file mode 100644 index 000000000000..2ce264c17d72 --- /dev/null +++ b/projects/1.21-fabric/assets/modrinth-trickster-math-tricks/trickster-math-tricks/lavender/entries/tome_of_tomfoolery/zh_cn/math-tricks.md @@ -0,0 +1,31 @@ +```json +{ + "title": "数学戏法", + "icon": "minecraft:quartz", + "category": "trickster:tricks" +} +``` +“戏法师:数学戏法”附属添加了一大把有用的数学戏法,以求*稍稍*简化戏法师中复杂事物的处理过程。 + + +本模组只添加了总计2个戏法及修订术,其余功能都需经过这两者实现。 + +;;;;; + +<|glyph@trickster:templates|trick-id=trickster-math-tricks:math_lib,title=计算之谋略|> + +pattern, any... -> any + +--- + +执行给定图案对应的数学戏法。此图案是调用本附属数学戏法的必备步骤。 + +;;;;; + +<|pattern@trickster:templates|pattern=3\,4\,0\,3\,6\,4\,7\,6,title=计算之修订|> + +{gray}(抄绘图案){} + +--- + +运行圆中图案对应的数学修订术。此图案是使用本附属数学修订术的必备步骤。 \ No newline at end of file