diff --git a/projects/1.21-fabric/assets/trickster/trickster/lang/en_us.json b/projects/1.21-fabric/assets/trickster/trickster/lang/en_us.json index 2b9b96566bfd..ccc45e12d5ad 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lang/en_us.json +++ b/projects/1.21-fabric/assets/trickster/trickster/lang/en_us.json @@ -41,6 +41,7 @@ "trickster.trick.trickster.divide": "Submission Stratagem", "trickster.trick.trickster.modulo": "Distortion of Wholes", "trickster.trick.trickster.power": "Distortion of Supremacy", + "trickster.trick.trickster.logarithm": "Distortion of Inferiority", "trickster.trick.trickster.max": "Noble Stratagem", "trickster.trick.trickster.min": "Insignificance Stratagem", "trickster.trick.trickster.ceil": "Distortion of Grandeur", @@ -69,6 +70,7 @@ "trickster.trick.trickster.cross_product": "Perpendicular Distortion", "trickster.trick.trickster.normalize": "Regularity Distortion", "trickster.trick.trickster.align_vector": "Aligned Regularity Distortion", + "trickster.trick.trickster.sqrt": "Distortion of Decline", "trickster.trick.trickster.invert": "Inversion Distortion", "trickster.trick.trickster.abs": "Absolutist's Distortion", "trickster.trick.trickster.length": "Magnitude Distortion", @@ -123,12 +125,16 @@ "trickster.trick.trickster.import_hat": "Cranium Deviation", "trickster.trick.trickster.execute": "Grand Deviation", "trickster.trick.trickster.execute_same_scope": "Quiet Deviation", + "trickster.trick.trickster.atomic": "Deviation of Singularity", "trickster.trick.trickster.fork": "Utensil Deviation", "trickster.trick.trickster.fold": "Folding Deviation", "trickster.trick.trickster.try_catch": "Cautious Deviation", "trickster.trick.trickster.delay_execution": "Deviation of Suspension", "trickster.trick.trickster.kill_thread": "Executioner's Deviation", "trickster.trick.trickster.current_thread": "Delusion of Order", + "trickster.trick.trickster.thread_root": "Ingress of Origin", + "trickster.trick.trickster.spell_state": "Turtle's Ingress", + "trickster.trick.trickster.get_all_arguments": "Hoarder's Delusion", "trickster.trick.trickster.load_argument_1": "Primary Delusion", "trickster.trick.trickster.load_argument_2": "Secondary Delusion", "trickster.trick.trickster.load_argument_3": "Tertiary Delusion", @@ -149,7 +155,7 @@ "trickster.trick.trickster.list_remove_element": "Eviction Stratagem", "trickster.trick.trickster.list_size": "Tally Distortion", "trickster.trick.trickster.create_number_range": "Interlude Distortion", - "trickster.trick.trickster.closure": "Closure Stratagem", + "trickster.trick.trickster.closure": "Distortion of Closure", "trickster.trick.trickster.supplier": "Supply Distortion", "trickster.trick.trickster.locate_glyph": "Pinpoint Distortion", "trickster.trick.trickster.locate_glyphs": "Discovering Distortion", @@ -161,6 +167,8 @@ "trickster.trick.trickster.remove_subtree": "Pruning Distortion", "trickster.trick.trickster.get_subparts": "Bundle Distortion", "trickster.trick.trickster.escape_pattern": "Interpretation Distortion", + "trickster.trick.trickster.weight": "Distortion of Memory", + "trickster.trick.trickster.map_create": "Cartographer's Delusion", "trickster.trick.trickster.map_get": "Navigator's Distortion", "trickster.trick.trickster.map_insert": "Charting Stratagem", "trickster.trick.trickster.map_merge": "Admiral's Stratagem", @@ -190,10 +198,14 @@ "trickster.trick.trickster.get_count_in_slot": "Ingress of Plenitude", "trickster.trick.trickster.get_max_mana_in_slot": "Crowning Ingress", "trickster.trick.trickster.get_inventory_slot": "Intrusive Ingress", + "trickster.trick.trickster.get_inventory_slots": "Collector's Ingress", + "trickster.trick.trickster.get_inventory_size": "Ingress of Extent", "trickster.trick.trickster.drop_stack_from_slot": "Ploy of Offering", "trickster.trick.trickster.swap_slot": "Swindler's Ploy", + "trickster.trick.trickster.move_stack": "Organizer's Ploy", "trickster.trick.trickster.block_from_item": "Placement Distortion", "trickster.trick.trickster.item_from_block": "Pickup Distortion", + "trickster.trick.trickster.get_max_count": "Distortion of Breadth", "trickster.trick.trickster.type_fragment": "Argumentative Distortion", "trickster.trick.trickster.hash_values": "Decaying Distortion", "trickster.trick.trickster.pin_chunk": "Ploy of Celestial Pin", @@ -225,15 +237,16 @@ "trickster.fragment.trickster.map": "Map", "trickster.fragment.trickster.void": "Void", "trickster.fragment.trickster.pattern": "Pattern", - "trickster.fragment.trickster.pattern_literal": "Pattern Literal", + "trickster.fragment.trickster.pattern_literal": "PatternLiteral", "trickster.fragment.trickster.spell_part": "Spell", "trickster.fragment.trickster.entity": "Entity", "trickster.fragment.trickster.slot": "Slot", "trickster.fragment.trickster.zalgo": "§kZalgo", "trickster.fragment.trickster.item_type": "Item", "trickster.fragment.trickster.block_type": "Block", - "trickster.fragment.trickster.entity_type": "Entity Type", + "trickster.fragment.trickster.entity_type": "EntityType", "trickster.fragment.trickster.string": "String", + "trickster.fragment.trickster.dimension": "Dimension", "trickster.fragment.class.Fragment": "Any", "trickster.fragment.class.AddableFragment": "Addable", "trickster.fragment.class.DivisibleFragment": "Divisible", @@ -256,7 +269,7 @@ "trickster.fragment.class.ZalgoFragment": "§kZalgo", "trickster.fragment.class.ItemTypeFragment": "Item", "trickster.fragment.class.BlockTypeFragment": "Block", - "trickster.fragment.class.EntityTypeFragment": "Entity Type", + "trickster.fragment.class.EntityTypeFragment": "EntityType", "trickster.blunder.overweight_fragment": "Result fragment is overweight, result is %s", "trickster.blunder.missing_fragment": "Missing at index %d, expected %s", "item.trickster.tome_of_tomfoolery": "Tome of Tomfoolery", @@ -306,12 +319,17 @@ "item.trickster.collar": "Acolyte's Bindings", "item.trickster.leash": "Archmage's Tether", "item.trickster.amethyst_knot": "Amethyst Knot", + "item.trickster.cracked_amethyst_knot": "Cracked Amethyst Knot", "item.trickster.quartz_knot": "Quartz Knot", + "item.trickster.cracked_quartz_knot": "Cracked Quartz Knot", "item.trickster.emerald_knot": "Emerald Knot", + "item.trickster.cracked_emerald_knot": "Cracked Emerald Knot", "item.trickster.diamond_knot": "Diamond Knot", + "item.trickster.cracked_diamond_knot": "Cracked Diamond Knot", "item.trickster.echo_knot": "Echo Knot", "item.trickster.cracked_echo_knot": "Cracked Echo Knot", "item.trickster.astral_knot": "Astral Knot", + "item.trickster.cracked_astral_knot": "Cracked Astral Knot", "item.trickster.command_knot": "Command Knot", "item.trickster.spell_core": "Spell Core", "item.trickster.rusted_spell_core": "Rusted Spell Core", @@ -343,8 +361,8 @@ "text.config.trickster-config.option.dotEmphasisColor": "Terminal dot color", "text.config.trickster-config.option.subcircleDividerPinColor": "Divider pin Color", "text.config.trickster-config.option.manaTransferEfficiency": "Efficiency of the Conduit's Ploys", - "text.config.trickster-config.option.whorlMaxMana": "Whorl maximum mana in kG", - "text.config.trickster-config.option.whorlRechargeRate": "Whorl recharge rate in kG", + "text.config.trickster-config.option.whorlMaxMana": "Whorl maximum mana in G", + "text.config.trickster-config.option.whorlRechargeRate": "Whorl recharge rate in M", "text.config.trickster-config.option.topHatInterceptScrolling": "Offhand hat intercepts hotbar scrolling", "text.config.trickster-config.option.invertTopHatScrolling": "Invert hat scrolling", "text.config.trickster-config.option.allowScrollInSpellScreen": "Allow scrolling to zoom while editing", diff --git a/projects/1.21-fabric/assets/trickster/trickster/lang/en_us.yml b/projects/1.21-fabric/assets/trickster/trickster/lang/en_us.yml index a5a7f79a85bb..1ae1ddb12a4a 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lang/en_us.yml +++ b/projects/1.21-fabric/assets/trickster/trickster/lang/en_us.yml @@ -64,6 +64,7 @@ trickster: divide: Submission Stratagem modulo: Distortion of Wholes power: Distortion of Supremacy + logarithm: Distortion of Inferiority max: Noble Stratagem min: Insignificance Stratagem ceil: Distortion of Grandeur @@ -94,6 +95,7 @@ trickster: cross_product: Perpendicular Distortion normalize: Regularity Distortion align_vector: Aligned Regularity Distortion + sqrt: Distortion of Decline invert: Inversion Distortion abs: Absolutist's Distortion length: Magnitude Distortion @@ -156,12 +158,16 @@ trickster: execute: Grand Deviation execute_same_scope: Quiet Deviation + atomic: Deviation of Singularity fork: Utensil Deviation fold: Folding Deviation try_catch: Cautious Deviation delay_execution: Deviation of Suspension kill_thread: Executioner's Deviation current_thread: Delusion of Order + thread_root: Ingress of Origin + spell_state: Turtle's Ingress + get_all_arguments: Hoarder's Delusion load_argument_1: Primary Delusion load_argument_2: Secondary Delusion load_argument_3: Tertiary Delusion @@ -184,7 +190,7 @@ trickster: list_size: Tally Distortion create_number_range: Interlude Distortion - closure: Closure Stratagem + closure: Distortion of Closure supplier: Supply Distortion locate_glyph: Pinpoint Distortion locate_glyphs: Discovering Distortion @@ -196,7 +202,9 @@ trickster: remove_subtree: Pruning Distortion get_subparts: Bundle Distortion escape_pattern: Interpretation Distortion + weight: Distortion of Memory + map_create: Cartographer's Delusion map_get: Navigator's Distortion map_insert: Charting Stratagem map_merge: Admiral's Stratagem @@ -229,10 +237,14 @@ trickster: get_count_in_slot: Ingress of Plenitude get_max_mana_in_slot: Crowning Ingress get_inventory_slot: Intrusive Ingress + get_inventory_slots: Collector's Ingress + get_inventory_size: Ingress of Extent drop_stack_from_slot: Ploy of Offering swap_slot: Swindler's Ploy + move_stack: Organizer's Ploy block_from_item: Placement Distortion item_from_block: Pickup Distortion + get_max_count: Distortion of Breadth type_fragment: Argumentative Distortion hash_values: Decaying Distortion @@ -275,15 +287,16 @@ trickster: map: Map void: Void pattern: Pattern - pattern_literal: Pattern Literal + pattern_literal: PatternLiteral spell_part: Spell entity: Entity slot: Slot zalgo: §kZalgo item_type: Item block_type: Block - entity_type: Entity Type + entity_type: EntityType string: String + dimension: Dimension class: Fragment: Any AddableFragment: Addable @@ -307,7 +320,7 @@ trickster: ZalgoFragment: §kZalgo ItemTypeFragment: Item BlockTypeFragment: Block - EntityTypeFragment: Entity Type + EntityTypeFragment: EntityType blunder: overweight_fragment: Result fragment is overweight, result is %s @@ -365,12 +378,17 @@ item.trickster: leash: Archmage's Tether amethyst_knot: Amethyst Knot + cracked_amethyst_knot: Cracked Amethyst Knot quartz_knot: Quartz Knot + cracked_quartz_knot: Cracked Quartz Knot emerald_knot: Emerald Knot + cracked_emerald_knot: Cracked Emerald Knot diamond_knot: Diamond Knot + cracked_diamond_knot: Cracked Diamond Knot echo_knot: Echo Knot cracked_echo_knot: Cracked Echo Knot astral_knot: Astral Knot + cracked_astral_knot: Cracked Astral Knot command_knot: Command Knot spell_core: Spell Core @@ -418,8 +436,8 @@ text.config.trickster-config: dotEmphasisColor: Terminal dot color subcircleDividerPinColor: Divider pin Color manaTransferEfficiency: Efficiency of the Conduit's Ploys - whorlMaxMana: Whorl maximum mana in kG - whorlRechargeRate: Whorl recharge rate in kG + whorlMaxMana: Whorl maximum mana in G + whorlRechargeRate: Whorl recharge rate in M topHatInterceptScrolling: Offhand hat intercepts hotbar scrolling invertTopHatScrolling: Invert hat scrolling allowScrollInSpellScreen: Allow scrolling to zoom while editing diff --git a/projects/1.21-fabric/assets/trickster/trickster/lang/zh_cn.json b/projects/1.21-fabric/assets/trickster/trickster/lang/zh_cn.json index b5dbedc90241..fc5c84cdac6a 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lang/zh_cn.json +++ b/projects/1.21-fabric/assets/trickster/trickster/lang/zh_cn.json @@ -41,6 +41,7 @@ "trickster.trick.trickster.divide": "屈从之谋略", "trickster.trick.trickster.modulo": "整体之曲变", "trickster.trick.trickster.power": "至尊之曲变", + "trickster.trick.trickster.logarithm": "至劣之曲变", "trickster.trick.trickster.max": "高贵之谋略", "trickster.trick.trickster.min": "低位之谋略", "trickster.trick.trickster.ceil": "壮丽之曲变", @@ -69,6 +70,7 @@ "trickster.trick.trickster.cross_product": "垂直之曲变", "trickster.trick.trickster.normalize": "归一之曲变", "trickster.trick.trickster.align_vector": "合向归一之曲变", + "trickster.trick.trickster.sqrt": "削损之曲变", "trickster.trick.trickster.invert": "取反之曲变", "trickster.trick.trickster.abs": "绝对主义者之曲变", "trickster.trick.trickster.length": "模长之曲变", @@ -107,7 +109,7 @@ "trickster.trick.trickster.get_player_saturation": "饱足之辑流", "trickster.trick.trickster.get_velocity": "运动之辑流", "trickster.trick.trickster.add_velocity": "动能之技巧", - "trickster.trick.trickster.change_weight": "轻羽之技巧", + "trickster.trick.trickster.change_weight": "羽落之技巧", "trickster.trick.trickster.displace": "篡夺者之技巧", "trickster.trick.trickster.store_entity": "收容之技巧", "trickster.trick.trickster.release_entity": "释脱之技巧", @@ -123,12 +125,16 @@ "trickster.trick.trickster.import_hat": "颅骨之转离", "trickster.trick.trickster.execute": "宏伟之转离", "trickster.trick.trickster.execute_same_scope": "静默之转离", + "trickster.trick.trickster.atomic": "奇点之转离", "trickster.trick.trickster.fork": "器具之转离", "trickster.trick.trickster.fold": "折叠之转离", "trickster.trick.trickster.try_catch": "谨慎之转离", "trickster.trick.trickster.delay_execution": "挂起之转离", "trickster.trick.trickster.kill_thread": "行刑者之转离", "trickster.trick.trickster.current_thread": "序数之错觉", + "trickster.trick.trickster.thread_root": "原点之辑流", + "trickster.trick.trickster.spell_state": "海龟之辑流", + "trickster.trick.trickster.get_all_arguments": "囤积者之错觉", "trickster.trick.trickster.load_argument_1": "甲参之错觉", "trickster.trick.trickster.load_argument_2": "乙参之错觉", "trickster.trick.trickster.load_argument_3": "丙参之错觉", @@ -149,7 +155,7 @@ "trickster.trick.trickster.list_remove_element": "放逐之谋略", "trickster.trick.trickster.list_size": "计量之曲变", "trickster.trick.trickster.create_number_range": "间奏之曲变", - "trickster.trick.trickster.closure": "闭包之谋略", + "trickster.trick.trickster.closure": "闭包之曲变", "trickster.trick.trickster.supplier": "供给之曲变", "trickster.trick.trickster.locate_glyph": "定址之曲变", "trickster.trick.trickster.locate_glyphs": "发现之曲变", @@ -161,6 +167,8 @@ "trickster.trick.trickster.remove_subtree": "剪枝之曲变", "trickster.trick.trickster.get_subparts": "扎束之曲变", "trickster.trick.trickster.escape_pattern": "释义之曲变", + "trickster.trick.trickster.weight": "存忆之曲变", + "trickster.trick.trickster.map_create": "制图师之错觉", "trickster.trick.trickster.map_get": "领航员之曲变", "trickster.trick.trickster.map_insert": "编表之谋略", "trickster.trick.trickster.map_merge": "海军将领之谋略", @@ -190,12 +198,16 @@ "trickster.trick.trickster.get_count_in_slot": "丰裕之辑流", "trickster.trick.trickster.get_max_mana_in_slot": "加冕之辑流", "trickster.trick.trickster.get_inventory_slot": "侵入之辑流", + "trickster.trick.trickster.get_inventory_slots": "收藏家之辑流", + "trickster.trick.trickster.get_inventory_size": "容展之辑流", "trickster.trick.trickster.drop_stack_from_slot": "祭献之技巧", "trickster.trick.trickster.swap_slot": "骗徒之技巧", + "trickster.trick.trickster.move_stack": "组织者之技巧", "trickster.trick.trickster.block_from_item": "放置之曲变", "trickster.trick.trickster.item_from_block": "拾取之曲变", + "trickster.trick.trickster.get_max_count": "容宽之曲变", "trickster.trick.trickster.type_fragment": "参量之曲变", - "trickster.trick.trickster.hash_values": "衰朽之曲变", + "trickster.trick.trickster.hash_values": "衰退之曲变", "trickster.trick.trickster.pin_chunk": "天钉之技巧", "trickster.trick.trickster.get_dimension": "维度之错觉", "trickster.trick.trickster.show_bar": "清晰之技巧", @@ -234,6 +246,7 @@ "trickster.fragment.trickster.block_type": "方块", "trickster.fragment.trickster.entity_type": "实体类型", "trickster.fragment.trickster.string": "字符串", + "trickster.fragment.trickster.dimension": "维度", "trickster.fragment.class.Fragment": "任意", "trickster.fragment.class.AddableFragment": "可加", "trickster.fragment.class.DivisibleFragment": "可除", @@ -257,7 +270,7 @@ "trickster.fragment.class.ItemTypeFragment": "物品", "trickster.fragment.class.BlockTypeFragment": "方块", "trickster.fragment.class.EntityTypeFragment": "实体类型", - "trickster.blunder.overweight_fragment": "传出的片段过长,结果为%s", + "trickster.blunder.overweight_fragment": "传出的片段超重,结果为%s", "trickster.blunder.missing_fragment": "索引%d处参数缺失,本应传入%s", "item.trickster.tome_of_tomfoolery": "魔术把戏秘典", "item.trickster.mirror_of_evaluation": "执行手镜", @@ -306,12 +319,17 @@ "item.trickster.collar": "侍者的缚环", "item.trickster.leash": "法师的捆索", "item.trickster.amethyst_knot": "紫水晶晶结", + "item.trickster.cracked_amethyst_knot": "开裂的紫水晶晶结", "item.trickster.quartz_knot": "石英晶结", + "item.trickster.cracked_quartz_knot": "开裂的石英晶结", "item.trickster.emerald_knot": "绿宝石晶结", + "item.trickster.cracked_emerald_knot": "开裂的绿宝石晶结", "item.trickster.diamond_knot": "钻石晶结", + "item.trickster.cracked_diamond_knot": "开裂的钻石晶结", "item.trickster.echo_knot": "回响晶结", "item.trickster.cracked_echo_knot": "开裂的回响晶结", "item.trickster.astral_knot": "星辰晶结", + "item.trickster.cracked_astral_knot": "开裂的星辰晶结", "item.trickster.command_knot": "命令晶结", "item.trickster.spell_core": "法术核心", "item.trickster.rusted_spell_core": "生锈法术核心", @@ -343,8 +361,8 @@ "text.config.trickster-config.option.dotEmphasisColor": "界面中点的强调色", "text.config.trickster-config.option.subcircleDividerPinColor": "分隔销的颜色", "text.config.trickster-config.option.manaTransferEfficiency": "善流之技巧与恶流之技巧的效率", - "text.config.trickster-config.option.whorlMaxMana": "螺坠最大魔力,以kG计", - "text.config.trickster-config.option.whorlRechargeRate": "螺坠充能速度,以kG计", + "text.config.trickster-config.option.whorlMaxMana": "螺坠最大魔力,以G计", + "text.config.trickster-config.option.whorlRechargeRate": "螺坠充能速度,以M计", "text.config.trickster-config.option.topHatInterceptScrolling": "副手持帽子时拦截快捷栏滚选", "text.config.trickster-config.option.invertTopHatScrolling": "反转帽子滚选方向", "text.config.trickster-config.option.allowScrollInSpellScreen": "编辑时允许滚动滚轮缩放", diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/concepts.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/concepts.md index 14e5fab134fa..58f57f6234fd 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/concepts.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/concepts.md @@ -1,9 +1,9 @@ -```json -{ - "title": "Concepts", - "icon": "trickster:top_hat", - "ordinal": -1 -} -``` - -This category contains some useful conventions and concepts used in common magics. +```json +{ + "title": "Concepts", + "icon": "trickster:top_hat", + "ordinal": -1 +} +``` + +This category contains some useful conventions and concepts used in common magics. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/delusions_ingresses.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/delusions_ingresses.md index 01b65ce2824e..c9574b27364d 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/delusions_ingresses.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/delusions_ingresses.md @@ -1,15 +1,15 @@ -```json -{ - "title": "Delusions & Ingresses", - "icon": "trickster:mirror_of_evaluation", - "ordinal": 1, - "parent": "trickster:tricks" -} -``` - -Delusion tricks generate a value based on context, with no input given. -These usually make up the leaf nodes of a spell tree. - - -Ingress tricks gather information based on the input given. -Unlike distortions however, they aren't guaranteed to always return the same result. +```json +{ + "title": "Delusions & Ingresses", + "icon": "trickster:mirror_of_evaluation", + "ordinal": 1, + "parent": "trickster:tricks" +} +``` + +Delusion tricks generate a value based on context, with no input given. +These usually make up the leaf nodes of a spell tree. + + +Ingress tricks gather information based on the input given. +Unlike distortions however, they aren't guaranteed to always return the same result. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/distortions.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/distortions.md index 67679a7a4651..16e239a2e60d 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/distortions.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/distortions.md @@ -7,7 +7,7 @@ } ``` -Distortions tricks purely manipulate data. +Distortion tricks purely manipulate data. When given the same set of inputs, these will always give the same output. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/items.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/items.md index 27ab07573c57..1d28625badf9 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/items.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/items.md @@ -1,9 +1,9 @@ -```json -{ - "title": "Items", - "icon": "trickster:macro_ring", - "ordinal": 0 -} -``` - -Entries in this category go over some of the items available to the aspiring magician. +```json +{ + "title": "Items", + "icon": "trickster:macro_ring", + "ordinal": 0 +} +``` + +Entries in this category go over some of the items available to the aspiring magician. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/ploys.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/ploys.md index e7b893995f43..1217cc61416c 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/ploys.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/ploys.md @@ -1,14 +1,14 @@ -```json -{ - "title": "Ploys", - "icon": "trickster:wand", - "ordinal": 3, - "parent": "trickster:tricks" -} -``` - -Ploys are a subset of tricks that perform actions and either alter the world, or something less substantial. - - -Often, ploys will have a mana cost. This is denoted by a swirl icon under the pattern. +```json +{ + "title": "Ploys", + "icon": "trickster:wand", + "ordinal": 3, + "parent": "trickster:tricks" +} +``` + +Ploys are a subset of tricks that perform actions and either alter the world, or something less substantial. + + +Often, ploys will have a mana cost. This is denoted by a swirl icon under the pattern. Hover over the icon to see how mana cost is calculated. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/tricks.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/tricks.md index d172a2862bbc..7fc84b3fa62c 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/tricks.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/tricks.md @@ -1,12 +1,12 @@ -```json -{ - "title": "Tricks", - "icon": "trickster:written_scroll", - "ordinal": 1 -} -``` - -Tricks are the base unit that spells are constructed from. - - +```json +{ + "title": "Tricks", + "icon": "trickster:written_scroll", + "ordinal": 1 +} +``` + +Tricks are the base unit that spells are constructed from. + + A trick takes inputs and/or outputs and either performs an operation on them, or creates side effects. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/tutorials.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/tutorials.md index 233a038f8925..8143170bdbcc 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/tutorials.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/tutorials.md @@ -1,10 +1,10 @@ -```json -{ - "title": "Tutorials", - "icon": "minecraft:filled_map", - "ordinal": 2 -} -``` - -Start learning circle-based magic here. -This category contains a set of linear tutorials to take you through the most important concepts. +```json +{ + "title": "Tutorials", + "icon": "minecraft:filled_map", + "ordinal": 2 +} +``` + +Start learning circle-based magic here. +This category contains a set of linear tutorials to take you through the most important concepts. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/concepts.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/concepts.md index 028774a2cee8..2747fecc7ea3 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/concepts.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/concepts.md @@ -1,9 +1,9 @@ -```json -{ - "title": "概念", - "icon": "trickster:top_hat", - "ordinal": -1 -} -``` - -本分类主要涉及普通魔术中一些有用的惯例和概念。 +```json +{ + "title": "概念", + "icon": "trickster:top_hat", + "ordinal": -1 +} +``` + +本分类主要涉及普通魔术中一些有用的惯例和概念。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/delusions_ingresses.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/delusions_ingresses.md index e28dd3e154d4..e58215a0fe74 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/delusions_ingresses.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/delusions_ingresses.md @@ -1,13 +1,13 @@ -```json -{ - "title": "错觉术与辑流术", - "icon": "trickster:mirror_of_evaluation", - "ordinal": 1, - "parent": "trickster:tricks" -} -``` - -错觉术会根据上下文生成值,无需输入。通常作为法术树的叶节点存在。 - - -辑流术会根据输入收集信息。此类戏法与错觉术不同,它们多次执行产生的结果不一定一致。 +```json +{ + "title": "错觉术与辑流术", + "icon": "trickster:mirror_of_evaluation", + "ordinal": 1, + "parent": "trickster:tricks" +} +``` + +错觉术会根据上下文生成值,无需输入。通常作为法术树的叶节点存在。 + + +辑流术会根据输入收集信息。此类戏法与错觉术不同,它们多次执行产生的结果不一定一致。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/distortions.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/distortions.md index 0d492b467f1b..042ce38dc6e2 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/distortions.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/distortions.md @@ -1,13 +1,13 @@ -```json -{ - "title": "曲变术与谋略术", - "icon": "trickster:scroll_and_quill", - "ordinal": 2, - "parent": "trickster:tricks" -} -``` - -曲变术是仅对数据进行操作的戏法。给定相同的输入,必定得出同样的输出。 - - -谋略术是输入参数的数目可变的曲变术。 +```json +{ + "title": "曲变术与谋略术", + "icon": "trickster:scroll_and_quill", + "ordinal": 2, + "parent": "trickster:tricks" +} +``` + +曲变术是仅对数据进行操作的纯戏法。给定相同的输入,必定得出同样的输出。 + + +谋略术是输入参数的数目可变的曲变术。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/items.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/items.md index cd14c55c86c4..a3d96426bbc8 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/items.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/items.md @@ -1,9 +1,9 @@ -```json -{ - "title": "物品", - "icon": "trickster:macro_ring", - "ordinal": 0 -} -``` - -本分类下的条目介绍了各式物品,任诸位雄心壮志的魔术师和戏法师们挑选。 +```json +{ + "title": "物品", + "icon": "trickster:macro_ring", + "ordinal": 0 +} +``` + +本分类下的条目介绍了各式物品,任诸位雄心壮志的魔术师和戏法师们挑选。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/ploys.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/ploys.md index 9e523debe481..10b2d5c4c672 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/ploys.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/ploys.md @@ -1,13 +1,13 @@ -```json -{ - "title": "技巧术", - "icon": "trickster:wand", - "ordinal": 3, - "parent": "trickster:tricks" -} -``` - -技巧术是一类戏法,能够执行特定操作,并对世界造成影响,或至少对一些事物造成影响。 - - -通常来说,技巧术会消耗魔力。有消耗的图案下方画有一个涡旋。将鼠标悬停在其上以查看消耗量的计算方式。 \ No newline at end of file +```json +{ + "title": "技巧术", + "icon": "trickster:wand", + "ordinal": 3, + "parent": "trickster:tricks" +} +``` + +技巧术是一类能够执行特定操作的戏法,它们可对世界造成影响,或至少对一些事物造成影响。 + + +通常来说,技巧术会消耗魔力。有消耗的图案下方画有一个涡旋。将鼠标悬停在其上可查看消耗量的计算方式。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/tricks.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/tricks.md index c06686e0b480..2c53213c173f 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/tricks.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/tricks.md @@ -1,12 +1,12 @@ -```json -{ - "title": "戏法", - "icon": "trickster:written_scroll", - "ordinal": 1 -} -``` - -戏法是法术的基本构成单元。 - - +```json +{ + "title": "戏法", + "icon": "trickster:written_scroll", + "ordinal": 1 +} +``` + +戏法是法术的基本构成单元。 + + 戏法会接收输入、输出、或二者均取,并对其执行一定的操作,或是产生些许副作用。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/tutorials.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/tutorials.md index dc984ed4de90..9b774a789ee0 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/tutorials.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/categories/tome_of_tomfoolery/zh_cn/tutorials.md @@ -1,10 +1,10 @@ -```json -{ - "title": "教程", - "icon": "minecraft:filled_map", - "ordinal": 2 -} -``` - -圆环魔术就此开始。 -本分类下有若干按序排布的教程,以手把手教导最为重要的概念。 +```json +{ + "title": "教程", + "icon": "minecraft:filled_map", + "ordinal": 2 +} +``` + +圆环魔法就此开始。 +本分类下有若干按序排布的教程,用以手把手教导最为重要的概念。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/fragment_decay.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/fragment_decay.md new file mode 100644 index 000000000000..d085849234fd --- /dev/null +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/fragment_decay.md @@ -0,0 +1,27 @@ +```json +{ + "title": "Fragment Decay", + "icon": "minecraft:glow_lichen", + "category": "trickster:concepts" +} +``` + +Some types of fragments, such as {#338888}Entities{}, have a rather loose connection to their targets. +While these fragments can generally be handled and used just fine, this imparts some restrictions that other types do not suffer from. + +;;;;; + +If at any point these so-called ephemeral fragments are inscribed, messaged, or otherwise transferred between spells, +they tend to decay into a unique fragment type referred to as {#444444}##Zalgo##{}. + + +This process makes them completely useless for their original purpose, +but these {#444444}##Zalgo##{} fragments do have a few unique properties that make them potentially useful in other ways. + +;;;;; + +To begin with, any one {#444444}##Zalgo##{} fragment will never be equal to any other fragment, not even itself. + + +Additionally, feeding a {#444444}##Zalgo##{} fragment into [Decaying Distortion](^trickster:distortions/misc#3) +seems to produce a completely random and unique result every single time. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/macro.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/macro.md index 687db5a902e0..8af2d7040557 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/macro.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/macro.md @@ -1,30 +1,30 @@ -```json -{ - "title": "Macros", - "icon": "trickster:macro_ring", - "category": "trickster:concepts" -} -``` - -Macros allow you to create your own revisions to aid with spell scribing. - - -A [map](^trickster:distortions/map) that links a set of patterns to a set of spells is used to define macros. -These maps, when inscribed into any ring and worn in a ring slot, will be checked for keys matching any drawn patterns. - -;;;;; - -A simple [Macro Ring](^trickster:items/ring) can be used for this purpose if no other rings are available. - - -If a macro for a drawn pattern is found, the associated spell will be cast and given one argument: -A copy of the circle it is drawn in. -The spell is then expected to return a new spell fragment to replace the fragment given. - - -This effectively lets anyone create their own set of revisions. - -;;;;; - -Note: Macro spells are not capable of [long casting](^trickster:concepts/multi_tick). -This means they do not take a spell slot, but also can't run more than about 64 circles. +```json +{ + "title": "Macros", + "icon": "trickster:macro_ring", + "category": "trickster:concepts" +} +``` + +Macros allow you to create your own revisions to aid with spell scribing. + + +A [map](^trickster:distortions/map) that links a set of patterns to a set of spells is used to define macros. +These maps, when inscribed into any ring and worn in a ring slot, will be checked for keys matching any drawn patterns. + +;;;;; + +A simple [Macro Ring](^trickster:items/ring) can be used for this purpose if no other rings are available. + + +If a macro for a drawn pattern is found, the associated spell will be cast and given one argument: +A copy of the circle it is drawn in. +The spell is then expected to return a new spell fragment to replace the fragment given. + + +This effectively lets anyone create their own set of revisions. + +;;;;; + +Note: Macro spells are not capable of [long casting](^trickster:concepts/multi_tick). +This means they do not take a spell slot, but also can't run more than about 64 circles. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/mana.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/mana.md index 823a4fb41b3a..ecb15d22977c 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/mana.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/mana.md @@ -9,12 +9,12 @@ Mana is what fuels ploys. It is the cost of manipulating the world. -As is tradition, amounts of Mana are measured in Gandalfs, or G, named after a certain famous wizard. +As is tradition, amounts of Mana are measured in Gandalfs, or G. One Gandalf being defined as the amount of magical energy required to light a candle. ;;;;; -Any amount of Mana that is lesser than one kiloGandalf, or kG is generally considered negligible. +Any amount of Mana that is lesser than one G is generally considered negligible. Draw rate, or any change in Mana, is measured in Merlins, or M. @@ -22,9 +22,9 @@ Merlins are defined as Gandalfs per Tick, Ticks being the smallest unit of meaningful time, at 1/20th of a second. -For example, a spell drawing 50 M would consume 1 kiloGandalf per second. +For example, a spell drawing 50 milliMerlins would consume 1 Gandalf per second. ;;;;; Mana can be persistently stored and acquired via Knots. -See [this entry](^trickster:items/knots) for more information on those. \ No newline at end of file +See [this entry](^trickster:items/knots) for more information on those. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/multi_tick.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/multi_tick.md index ba8c96d520aa..d80680115346 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/multi_tick.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/multi_tick.md @@ -1,37 +1,37 @@ -```json -{ - "title": "Long Spells", - "icon": "minecraft:clock", - "category": "trickster:concepts" -} -``` - -Spells do not all execute instantly. Unless cast through a mirror, a big enough spell limits execution to a certain amount of circles per second. -It may even run forever, -provided its caster remains alive, the spell does not blunder, and it never runs out of circles to execute. - -;;;;; - -To cast a spell capable of running long, a free spell slot is required, even if the spell completes within one twentieth of a second. - - -Without an empty spell slot, no spells can be cast except through a mirror. Spell slots may be viewed from the caster's inventory. - -;;;;; - -Spell slots have the following states: - -- inactive (collapsed) -- inactive and blundered (red) -- active and okay (green) -- active and at maximum executions per second (orange) -- active but waiting (white) - -;;;;; - -Patterns that execute spell fragments create sub-spells within their current spell. -A spell may not have a sub-spell more than 255 spells deep, -and will blunder if such a thing is attempted. - - +```json +{ + "title": "Long Spells", + "icon": "minecraft:clock", + "category": "trickster:concepts" +} +``` + +Spells do not all execute instantly. Unless cast through a mirror, a big enough spell limits execution to a certain amount of circles per second. +It may even run forever, +provided its caster remains alive, the spell does not blunder, and it never runs out of circles to execute. + +;;;;; + +To cast a spell capable of running long, a free spell slot is required, even if the spell completes within one twentieth of a second. + + +Without an empty spell slot, no spells can be cast except through a mirror. Spell slots may be viewed from the caster's inventory. + +;;;;; + +Spell slots have the following states: + +- inactive (collapsed) +- inactive and blundered (red) +- active and okay (green) +- active and at maximum executions per second (orange) +- active but waiting (white) + +;;;;; + +Patterns that execute spell fragments create sub-spells within their current spell. +A spell may not have a sub-spell more than 255 spells deep, +and will blunder if such a thing is attempted. + + If a so-called forking pattern is *effectively* the final pattern in the current spell, **this limit is ignored**. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/signatures.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/signatures.md index 8afd3f97f678..b8f258f3b922 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/signatures.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/signatures.md @@ -6,4 +6,70 @@ } ``` -Coming soon! Ask for help in Discord if you get stuck! +The Tricks section of this book contains descriptions and usage details of all operations that spells can perform. +These details include so-called Signatures. + + +Signatures are short and standardized descriptions of the inputs and outputs a certain trick may take and provide. + +;;;;; + +An example Signature might look like this: + + +{#aa7711}Vector{}, {#ddaa00}Number{} -> {#aa3355}Boolean{} + + +This describes a trick that expects a {#aa7711}Vector{} as the first argument and a {#ddaa00}Number{} as the second, +as counted clockwise from the circle's Divider Pin. + + +This trick would also provide a {#aa3355}Boolean{} as output, potentially for its parent circle to use. + +;;;;; + +Aside from commas (,) to separate arguments, and the arrow (->) to distinguish input from output, +a few other symbols might show up in signatures, as outlined below: + + +{#ddaa00}Number?{} -> {#aa4444}Any{} + + +A question mark (?) after an argument indicates that providing the value is optional. +One can either leave the argument out completely, or provide void. + +;;;;; + +{#ddaa00}Number{} | {#aa7711}Vector{} -> {#aa4444}Any{} | {#4400aa}Void{} + + +Often times, one may see two argument or return types being separated by a pipe symbol. (|) + + +For arguments, these indicate that either of the two types may be used in that position. +In return types, it means the trick may return either of the given types, depending on the situation. + +;;;;; + +[{#aa4444}Any{}], {#ddaa00}Number{} -> [{#aa3355}Boolean{}] + + +Some inputs or outputs may be wrapped in square brackets. ([]) +These indicate that the trick expects or returns a list of exclusively this type of fragment. + +;;;;; + +{{#aa4444}Any{}: {#aa3355}Boolean{}}, {#aa4444}Any{} -> {#aa3355}Boolean{} + + +In other cases, signatures will have two types wrapped in curly braces ({}) and split by a colon. (:) +This represents a map with keys of the first type, and values of the second. + +;;;;; + +{#aa44aa}Spell{}, {#aa4444}Any{}... -> {#aa4444}Any{} + + +Sometimes, three trailing periods (...) will be used after a type. +This indicates that after the previous argument, +the trick will accept *any number of additional arguments* of this type. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/trace.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/trace.md index c52efb8e0fe0..b85c26c6821a 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/trace.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/trace.md @@ -11,14 +11,20 @@ signifying *where* in the spell the failure occurred. Stack traces are colon-sep - # (pound/hashtag) - \> (chevron/angle bracket) +- & (ampersand symbol) - any number ;;;;; The numbers are input indexes, -while both the chevrons and hashtags indicate a change of context into a different spell fragment. -The former indicates a fragment provided by the current spell, -while the latter means the fragment came from elsewhere. +while the chevrons, hashtags, and ampersands all indicate a change of context into a different spell fragment. + + +Chevrons indicate a fragment provided by the current spell, +while hashtags mean the fragment came from elsewhere. + + +Ampersands on the other hand represent a successful infinite recursion of any kind. ;;;;; diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/tricks_explanation.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/tricks_explanation.md index 8f7d86e3a0e7..f0c64bde70ff 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/tricks_explanation.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/tricks_explanation.md @@ -1,23 +1,23 @@ -```json -{ - "title": "Trick Types", - "icon": "minecraft:oak_leaves", - "category": "trickster:concepts" -} -``` - -All tricks fit in the following categories: - -- Delusion: tricks that gather information purely from context -- Ingress: tricks that gather information based on input -- Distortion: fixed-input pure tricks -- Stratagem: variable-input pure tricks - -;;;;; - -- Ploy: world-manipulating and/or mana-consuming tricks -- Deviation: tricks which modify the state of the spell itself -- Revision: scribing patterns - -These categories are roughly followed, but in many cases, -tricks will be sorted based more on intention than rigid definition. +```json +{ + "title": "Trick Types", + "icon": "minecraft:oak_leaves", + "category": "trickster:concepts" +} +``` + +All tricks fit in the following categories: + +- Delusion: tricks that gather information purely from context +- Ingress: tricks that gather information based on input +- Distortion: fixed-input pure tricks +- Stratagem: variable-input pure tricks + +;;;;; + +- Ploy: world-manipulating and/or mana-consuming tricks +- Deviation: tricks which modify the state of the spell itself +- Revision: scribing patterns + +These categories are roughly followed, but in many cases, +tricks will be sorted based more on intention than rigid definition. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/trigger_items.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/trigger_items.md index c23b870ca253..974cb322392d 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/trigger_items.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/trigger_items.md @@ -1,26 +1,26 @@ -```json -{ - "title": "Trigger Items", - "icon": "minecraft:diamond_sword", - "category": "trickster:concepts" -} -``` - -While the [Wand](^trickster:items/wand) is the most common, and most versatile, way of quickly casting spells, it is not the only one available. -Other items may cast their inscribed spell upon certain criteria being met. These items and their criteria are described here. - -;;;;; - -<|page-title@lavender:book_components|title=Warrior's Rage|>On tools and melee weapons, -the Warrior's Rage executes the inscribed spell when bringing harm to an entity. The targeted entity is received as the first argument. - -;;;;; - -<|page-title@lavender:book_components|title=Prospector's Glee|>Prior to destroying a block, -the Prospector's Glee begins the spell inscribed on the held tool. The position of the breaking block is received as the first argument. - -;;;;; - -<|page-title@lavender:book_components|title=Performer's Grace|>Moments before touching down on a block, -the Performer's Grace triggers a spell inscribed in footwear. The distance that the wearer fell is passed as the first argument. -When held back by water, there is no Grace to the Performer. +```json +{ + "title": "Trigger Items", + "icon": "minecraft:diamond_sword", + "category": "trickster:concepts" +} +``` + +While the [Wand](^trickster:items/wand) is the most common, and most versatile, way of quickly casting spells, it is not the only one available. +Other items may cast their inscribed spell upon certain criteria being met. These items and their criteria are described here. + +;;;;; + +<|page-title@lavender:book_components|title=Warrior's Rage|>On tools and melee weapons, +the Warrior's Rage executes the inscribed spell when bringing harm to an entity. The targeted entity is received as the first argument. + +;;;;; + +<|page-title@lavender:book_components|title=Prospector's Glee|>Prior to destroying a block, +the Prospector's Glee begins the spell inscribed on the held tool. The position of the breaking block is received as the first argument. + +;;;;; + +<|page-title@lavender:book_components|title=Performer's Grace|>Moments before touching down on a block, +the Performer's Grace triggers a spell inscribed in footwear. The distance that the wearer fell is passed as the first argument. +When held back by water, there is no Grace to the Performer. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/ward.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/ward.md index fa393a8f63a8..c2c55e3b5a09 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/ward.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/concepts/ward.md @@ -1,20 +1,20 @@ -```json -{ - "title": "Wards", - "icon": "minecraft:shield", - "category": "trickster:concepts" -} -``` - -Wards are defensive spells that are cast when you are the target of a ploy. -Your ward receives the caster, and a list containing the inputs the caster is passing to the triggering glyph. -The expected signature for a ward is the following: - ---- - -entity | vector, any[] -> - -;;;;; - -The ward used is retrieved from the combined maps of all charms worn by the target, where the key is the triggering glyph. -The triggered ward requires an empty spell slot to be run, but begins prior to the execution of the triggering glyph. +```json +{ + "title": "Wards", + "icon": "minecraft:shield", + "category": "trickster:concepts" +} +``` + +Wards are defensive spells that are cast when you are the target of a ploy. +Your ward receives the caster, and a list containing the inputs the caster is passing to the triggering glyph. +The expected signature for a ward is the following: + +--- + +entity | vector, any[] -> + +;;;;; + +The ward used is retrieved from the combined maps of all charms worn by the target, where the key is the triggering glyph. +The triggered ward requires an empty spell slot to be run, but begins prior to the execution of the triggering glyph. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/constants.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/constants.md index 2a53f53826b4..0857a18136a1 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/constants.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/constants.md @@ -1,38 +1,38 @@ -```json -{ - "title": "Constants", - "icon": "minecraft:bedrock" -} -``` - -Described here are scribing patterns which set the glyph they are drawn in to a literal value. - -;;;;; - -<|pattern@trickster:templates|pattern=1\,4\,7,title=Foundational Revision|> - -{gray}(Scribing pattern){} - ---- - -Replaces the glyph with the number two. - -;;;;; - -<|pattern@trickster:templates|pattern=6\,3\,0\,2\,5\,8,title=Catalogue Revision|> - -{gray}(Scribing pattern){} - ---- - -Replaces the glyph with an empty list. - -;;;;; - -<|pattern@trickster:templates|pattern=2\,5\,8\,6\,3\,0,title=Atlas Revision|> - -{gray}(Scribing pattern){} - ---- - -Replaces the glyph with an empty map. +```json +{ + "title": "Constants", + "icon": "minecraft:bedrock" +} +``` + +Described here are scribing patterns which set the glyph they are drawn in to a literal value. + +;;;;; + +<|pattern@trickster:templates|pattern=1\,4\,7,title=Foundational Revision|> + +{gray}(Scribing pattern){} + +--- + +Replaces the glyph with the number two. + +;;;;; + +<|pattern@trickster:templates|pattern=6\,3\,0\,2\,5\,8,title=Catalogue Revision|> + +{gray}(Scribing pattern){} + +--- + +Replaces the glyph with an empty list. + +;;;;; + +<|pattern@trickster:templates|pattern=2\,5\,8\,6\,3\,0,title=Atlas Revision|> + +{gray}(Scribing pattern){} + +--- + +Replaces the glyph with an empty map. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/arguments.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/arguments.md index f994d967aa5d..92f73631542e 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/arguments.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/arguments.md @@ -17,97 +17,61 @@ } ``` -Fragments can be passed into executed [spell fragments](^trickster:distortions/functions) as arguments. +Fragments can be passed into most [Deviations](^trickster:tricks/functions) as arguments. -These fragments can be retrieved within the executed spell either directly or as a list of all arguments. +These fragments can then be retrieved within the cast spell, either directly or as a list of all arguments. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_all_arguments,title=Hoarder's Delusion|> - --> any[] - ---- +<|trick@trickster:templates|trick-id=trickster:get_all_arguments|> Returns all arguments as a list. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:load_argument_1,title=Primary Delusion|> - --> any +<|trick@trickster:templates|trick-id=trickster:load_argument_1|> ---- - -Returns the first argument passed, if available. +Returns the first argument passed. Blunders if it is unavailable. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:load_argument_2,title=Secondary Delusion|> - --> any +<|trick@trickster:templates|trick-id=trickster:load_argument_2|> ---- - -Returns the second argument passed, if available. +Returns the second argument passed. Blunders if it is unavailable. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:load_argument_3,title=Tertiary Delusion|> - --> any +<|trick@trickster:templates|trick-id=trickster:load_argument_3|> ---- - -Returns the third argument passed, if available. +Returns the third argument passed. Blunders if it is unavailable. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:load_argument_4,title=Quaternary Delusion|> - --> any +<|trick@trickster:templates|trick-id=trickster:load_argument_4|> ---- - -Returns the fourth argument passed, if available. +Returns the fourth argument passed. Blunders if it is unavailable. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:load_argument_5,title=Quinary Delusion|> - --> any - ---- +<|trick@trickster:templates|trick-id=trickster:load_argument_5|> -Returns the fifth argument passed, if available. +Returns the fifth argument passed. Blunders if it is unavailable. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:load_argument_6,title=Senary Delusion|> - --> any - ---- +<|trick@trickster:templates|trick-id=trickster:load_argument_6|> -Returns the sixth argument passed, if available. +Returns the sixth argument passed. Blunders if it is unavailable. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:load_argument_7,title=Septenary Delusion|> +<|trick@trickster:templates|trick-id=trickster:load_argument_7|> --> any - ---- - -Returns the seventh argument passed, if available. +Returns the seventh argument passed. Blunders if it is unavailable. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:load_argument_8,title=Octonary Delusion|> - --> any - ---- +<|trick@trickster:templates|trick-id=trickster:load_argument_8|> -Returns the eighth argument passed, if available. +Returns the eighth argument passed. Blunders if it is unavailable. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/block.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/block.md index 339a4b939c95..34ac344511ff 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/block.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/block.md @@ -8,71 +8,51 @@ "Ingress of Hardness", "Ingress of Suitability", "Ingress of Logic", - "Ingress of Resonance" + "Ingress of Resonance", + "Ingress of Luminance" ] } ``` -This entry contains tricks that query or inspect blocks in the world. +Via these Ingresses, one can query blocks in the world and their properties. -;;;;; -<|glyph@trickster:templates|trick-id=trickster:check_block,title=Ingress of Validation|> +These tricks will blunder if their target is not being observed. -vector -> block +;;;;; ---- +<|trick@trickster:templates|trick-id=trickster:check_block|> -Returns the block type at the given position. +Returns the type of the block at the given position. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_block_hardness,title=Ingress of Hardness|> - -vector -> number - ---- +<|trick@trickster:templates|trick-id=trickster:get_block_hardness|> -Returns the hardness of the block at the given position. +Returns the hardness of the block at the given position or of the given block type. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:can_place_block,title=Ingress of Suitability|> +<|trick@trickster:templates|trick-id=trickster:can_place_block|> -vector, [block] -> boolean - ---- - -Returns whether the given block can be placed at the given position. If no block is given, returns whether the position is replaceable. +Returns whether the given block can be placed at the given position. If no block is given, returns whether the position is generally replaceable. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_redstone_power,title=Ingress of Logic|> - -vector -> number - ---- +<|trick@trickster:templates|trick-id=trickster:get_redstone_power|> Returns the redstone power level inputted into the given block position. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:check_resonator,title=Ingress of Resonance|> - -vector -> number - ---- +<|trick@trickster:templates|trick-id=trickster:check_resonator|> Returns the power level of the [Spell Resonator](^trickster:items/spell_resonator) at the given position. - +Blunders if no resonator is present. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:light_level,title=Ingress of Luminance|> - -vector, [boolean] -> number - ---- +<|trick@trickster:templates|trick-id=trickster:light_level|> Returns the light level at the given position. A boolean can be specified to check only sky light (if true) or block light (if false). diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/caster_tricks.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/caster_tricks.md index a58b999ec195..3b897b5ff90c 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/caster_tricks.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/caster_tricks.md @@ -17,94 +17,80 @@ } ``` -This entry contains delusion tricks that retrieve context about the casting entity or block. +*"More often than not, casting a spell will start from the Self."* -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:reflection,title=Positioning Delusion|> --> vector +*"Whether it be a human caster, a construct, or something else entirely,* +*the Self is how we perceive the world, and as such, it is the lens through which we view our magic."* ---- -Returns the location the spell is being cast from. +-- An excerpt from a lecture by Prof. Citrine. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:facing_reflection,title=Directional Delusion|> - --> vector - ---- +<|trick@trickster:templates|trick-id=trickster:reflection|> -Returns the direction the casting block or entity is facing as a unit vector, if available. +Returns the location the spell is being cast from. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:caster_reflection,title=Reflection Delusion|> - --> entity - ---- +<|trick@trickster:templates|trick-id=trickster:facing_reflection|> -Returns the entity casting the spell. +Returns the direction the caster is facing as a unit vector. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_dimension,title=Dimensional Delusion|> +<|trick@trickster:templates|trick-id=trickster:caster_reflection|> --> dimension +Returns the entity casting the spell, if available. ---- +;;;;; -Returns the dimension which the caster is in. +<|trick@trickster:templates|trick-id=trickster:mana_reflection|> -;;;;; +Returns the amount of mana directly available to the spell. -<|glyph@trickster:templates|trick-id=trickster:mana_reflection,title=Authority Delusion|> +;;;;; --> number +This delusion counts the amount of mana in all mana-carrying items the caster is holding or wearing, +including [Knots](^trickster:items/knots) and [Whorls](^trickster:items/amethyst_whorl). ---- -Returns the amount of mana directly available to the spell. +When cast from a [Spell Construct](^trickster:items/spell_construct), only the mana in the Construct's one Knot slot is counted. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:max_mana_reflection,title=Crowning Delusion|> +<|trick@trickster:templates|trick-id=trickster:max_mana_reflection|> --> number +Returns the maximum amount of mana that the caster of the spell can store. Works similarly to the previous delusion. + +;;;;; ---- +<|trick@trickster:templates|trick-id=trickster:current_thread|> -Returns the maximum amount of mana that *could be* available to the spell. +Returns the spell slot running this spell, or void if this spell is not running in a spell slot. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:current_thread,title=Delusion of Order|> +<|trick@trickster:templates|trick-id=trickster:read_macro_ring|> --> number | void +Returns a map containing the combined maps of all rings worn, with any entries that aren't valid macros filtered out. ---- +;;;;; -Returns the spell slot running this spell, or void if spell slots are not supported. +The result of this trick is equal to the map used when evaluating macros. -;;;;; -<|glyph@trickster:templates|trick-id=trickster:hotbar_reflection,title=Framed Delusion|> +See the entry on [Macros](^trickster:concepts/macro) for more details. --> number +;;;;; ---- +<|trick@trickster:templates|trick-id=trickster:hotbar_reflection|> Returns the selected hotbar slot of the caster, if available. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:read_macro_ring,title=Macro Delusion|> - --> {pattern: spell} - ---- +<|trick@trickster:templates|trick-id=trickster:get_dimension|> -Retrieves a map containing the combined maps of all rings worn. +Returns the dimension where this spell is being cast. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/entity.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/entity.md index 2032acd055ac..8a9e1dce4e88 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/entity.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/entity.md @@ -25,174 +25,119 @@ } ``` -Various tricks related to gathering data about entities. +This collection of tricks provides options to gather information from entities in the world. -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_entity_type,title=Motive Verification Ingress|> -entity -> entity_type +These tricks will blunder if their target is not being observed. ---- -Given an entity, returns its type. +Keep in mind that entity fragments may [decay](^trickster:concepts/fragment_decay). ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_position,title=Locational Ingress|> - -entity -> vector - ---- +<|trick@trickster:templates|trick-id=trickster:get_entity_type|> -Given an entity, returns its position in the world. +Given an entity, returns its type. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_eye_position,title=Perspective Ingress|> +<|trick@trickster:templates|trick-id=trickster:get_position|> + +Given an entity, returns the position of its feet. -entity -> vector +;;;;; ---- +<|trick@trickster:templates|trick-id=trickster:get_eye_position|> Given an entity, returns the position of its head. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_facing,title=Directional Ingress|> - -entity -> vector +<|trick@trickster:templates|trick-id=trickster:get_facing|> ---- - -Given an entity, returns its facing as a vector. +Given an entity, returns the facing of its head as a unit vector. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_velocity,title=Movement Ingress|> - -entity -> vector - ---- +<|trick@trickster:templates|trick-id=trickster:get_velocity|> -Given an entity, returns its current velocity as a vector. +Given an entity, returns its current velocity as a vector in blocks per tick. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:height_reflection,title=Stature Ingress|> - -entity -> number - ---- +<|trick@trickster:templates|trick-id=trickster:height_reflection|> Given an entity, returns its height in blocks. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:sneaking_reflection,title=Alternative Ingress|> +<|trick@trickster:templates|trick-id=trickster:sneaking_reflection|> -entity -> boolean - ---- - -Given an entity, returns whether the entity is crouching. +Given an entity, returns whether the entity is crouching. +If the entity is unable to crouch, false will always be given. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:burning_reflection,title=Hearth's Ingress|> - -entity -> boolean - ---- +<|trick@trickster:templates|trick-id=trickster:burning_reflection|> Given an entity, returns whether the entity is on fire. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:sprinting_reflection,title=Trekking Ingress|> - -entity -> boolean - ---- +<|trick@trickster:templates|trick-id=trickster:sprinting_reflection|> Given an entity, returns whether the entity is sprinting. +If the entity is incapable of sprinting, false will always be given. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:blocking_reflection,title=Guard Ingress|> - -entity -> boolean - ---- +<|trick@trickster:templates|trick-id=trickster:blocking_reflection|> Given an entity, returns whether the entity is blocking using a shield. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_max_health,title=Vigor Ingress|> - -entity -> number - ---- +<|trick@trickster:templates|trick-id=trickster:get_max_health|> Given an entity, returns its maximum health. +Blunders if the entity does not have health. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_health,title=Fettle Ingress|> - -entity -> number - ---- +<|trick@trickster:templates|trick-id=trickster:get_health|> Given an entity, returns its current health. +Blunders if the entity does not have health. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_armour,title=Bulwark Ingress|> - -entity -> number - ---- +<|trick@trickster:templates|trick-id=trickster:get_armour|> Given an entity, returns its total armor value. +Blunders if the entity cannot have armor. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_scale,title=Ingress of Occupation|> - -entity -> number - ---- +<|trick@trickster:templates|trick-id=trickster:get_scale|> Returns the scale of the given entity. +Blunders if the entity cannot scale. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_flecks,title=Observer's Ingress|> - -[entity] -> number[] - ---- +<|trick@trickster:templates|trick-id=trickster:get_flecks|> -Returns the identifiers of all the flecks the caster or the given player can see. +Returns the identifiers of all the flecks the given player can see. +If no player is supplied, the caster is queried for this information instead. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_player_food,title=Ingress of Appetite|> - -entity -> number - ---- +<|trick@trickster:templates|trick-id=trickster:get_player_food|> Given a player, returns their current food level. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_player_saturation,title=Ingress of Fulfilment|> - -entity -> number - ---- +<|trick@trickster:templates|trick-id=trickster:get_player_saturation|> Given a player, returns their current saturation. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/entity_locating.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/entity_locating.md index 7225d614135c..0f476fa44aa3 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/entity_locating.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/entity_locating.md @@ -10,24 +10,23 @@ } ``` -Tricks to help find and target entities in the world. May be optionally restricted by entity types. +These tricks may help to find and target entities in the world. +Both of them may be optionally restricted to certain entity types by providing either a set of individual types, or a list. -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:block_find_entity,title=Embracing Ingress|> -vector, entity_type... | entity_type[] -> entity +They may give nothing when the position they target is not being observed. ---- -Finds an entity at a specific block position. +Keep in mind that entity fragments may [decay](^trickster:concepts/fragment_decay). ;;;;; -<|glyph@trickster:templates|trick-id=trickster:range_find_entity,title=Ingress of Shared Fate|> +<|trick@trickster:templates|trick-id=trickster:block_find_entity|> -vector, number, entity_type... | entity_type[] -> entity[] +Finds and returns an entity at a specific block position. + +;;;;; ---- +<|trick@trickster:templates|trick-id=trickster:range_find_entity|> -Finds all entities in the provided range around a specific block position. +Finds and returns a list of all entities in the provided range around a specific block position. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/inventory.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/inventory.md index a778a46edd16..d986fb68f2aa 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/inventory.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/inventory.md @@ -11,97 +11,87 @@ "Cranium Delusion", "Ingress of Authority", "Crowning Ingress", - "Ingress of Plenitude" + "Ingress of Plenitude", + "Collector's Ingress", + "Ingress of Extent" ] } ``` -Tricks that pull information from the caster's inventory. +These are tricks that pull information from an inventory. +This can either be the caster's own, or an external block or entity. -;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_item_in_slot,title=Fence's Ingress|> +It is not possible to interact with the inventories of players that are not the caster. -slot -> item +;;;;; ---- +<|trick@trickster:templates|trick-id=trickster:get_item_in_slot|> Returns the type of item that the given slot contains. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:other_hand,title=Juggling Delusion|> - --> item - ---- +<|trick@trickster:templates|trick-id=trickster:other_hand|> -Returns the type of item in the caster's other hand. +Returns the type of item in the caster's offhand. ;;;;; <|page-title@lavender:book_components|title=Note: Slot References|>Item slots may be referenced by spells. Creating such a reference comes at no cost. However, using the reference in a way that moves the items within the slot, will incur a move cost. -This cost is equivalent to (distance * amount * 0.5kG). Slot references will always point to a block position, or use the *current caster at the time of move*. +This cost is equivalent to (distance * amount * 0.5G). +Slot references either use the position of the caster at the time of move, or the position of their target when calculating cost. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:other_hand_slot,title=Catch Delusion|> +<|trick@trickster:templates|trick-id=trickster:other_hand_slot|> --> slot - ---- - -Returns a slot reference of the caster's other hand. +Returns a slot reference of the caster's offhand. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_inventory_slot,title=Intrusive Ingress|> +<|trick@trickster:templates|trick-id=trickster:get_inventory_slot|> -number, [vector | entity] -> slot +Constructs and returns a slot from an index and an inventory source, using the caster if no source is given. + +;;;;; ---- +<|trick@trickster:templates|trick-id=trickster:get_inventory_slots|> -Constructs a slot from an index and an inventory source, using the caster by default. +Returns a list of slots from an inventory source. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:check_hat,title=Cranium Delusion|> +If no source is given, the caster's inventory is used. +An item or list of items may be passed as a filter to get only relevant slots from the inventory source. --> number | void +;;;;; ---- +<|trick@trickster:templates|trick-id=trickster:get_inventory_size|> -Returns the selected slot in the caster's [Top Hat](^trickster:items/top_hat). +Returns the number of slots in an inventory source, using the caster if no source is given. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_mana_in_slot,title=Ingress of Authority|> +<|trick@trickster:templates|trick-id=trickster:check_hat|> + +Returns the selected slot in the caster's [Hat](^trickster:items/top_hat). -slot... -> number +;;;;; ---- +<|trick@trickster:templates|trick-id=trickster:get_mana_in_slot|> Returns the amount of mana in the given slots. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_max_mana_in_slot,title=Crowning Ingress|> - -slot... -> number +<|trick@trickster:templates|trick-id=trickster:get_max_mana_in_slot|> ---- - -Returns the maximum amount of mana which may be stored in the given slots. +Returns the maximum amount of mana which may be stored in total in the given slots. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_count_in_slot,title=Ingress of Plenitude|> - -slot -> number - ---- +<|trick@trickster:templates|trick-id=trickster:get_count_in_slot|> Returns the amount of items stored in the given slot. - -;;;;; \ No newline at end of file diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/raycast.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/raycast.md index 05ce057a25a5..f9296814ff7e 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/raycast.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/delusions_ingresses/raycast.md @@ -11,44 +11,36 @@ } ``` -Raycasting tricks take either an entity or a position and a direction, and will return what the entity is looking at, +Raycasting tricks take either an entity or a position and a direction, and will give what the entity is looking at, or what the vectors are pointing to. -Raycasts which target blocks may optionally be made to hit fluids if their last argument is true. +When using vectors, the first vector is interpreted as the position to start from, +while the second is seen as a unit vector representing the look direction. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:raycast,title=Pinpoint Ingress|> - -entity, [boolean] -> vector | - -vector, vector, [boolean] -> vector +Raycasts which target blocks may optionally be made to hit fluids if their last argument is true. ---- -Returns the block that is hit. +If a raycast misses and does not hit anything of relevance within 64 blocks, void will be given. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:raycast_side,title=Bearing Ingress|> +<|trick@trickster:templates|trick-id=trickster:raycast|> -entity, [boolean] -> vector | +Returns the position of the block that is hit. -vector, vector, [boolean] -> vector +;;;;; ---- +<|trick@trickster:templates|trick-id=trickster:raycast_entity|> -Returns a vector representing the side of the block that is hit. +Returns the entity that is hit. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:raycast_entity,title=Mark Ingress|> - -entity -> entity | +<|trick@trickster:templates|trick-id=trickster:raycast_side|> -vector, vector -> entity - ---- +;;;;; -Returns the entity that is hit. \ No newline at end of file +Returns a unit vector representing the side of the block that is hit. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/arithmetic.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/arithmetic.md index a4d0ec219483..93ba10bd3ddd 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/arithmetic.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/arithmetic.md @@ -10,6 +10,7 @@ "Submission Stratagem", "Distortion of Wholes", "Distortion of Supremacy", + "Distortion of Inferiority", "Noble Stratagem", "Insignificance Stratagem", "Distortion of Grandeur", @@ -29,221 +30,163 @@ } ``` -The following patterns regard basic arithmetic and simple mathematical operations. +The following patterns regard basic arithmetic and mathematical operations. -Many base arithmetical operations, though not all, will work on both single numbers and vectors. +Some of the base arithmetic tricks accept a combination of types of fragment. +These will have their signatures labelled with, for example, {#aa4444}Addable{} or {#aa4444}Roundable{}. +These terms are shorthands for a combination of options: ;;;;; -<|glyph@trickster:templates|trick-id=trickster:add,title=Annexation Stratagem|> +{#aa4444}Addable{} and {#aa4444}Subtractable{} are either {#ddaa00}Numbers{}, {#aa7711}Vectors{}, or {#6644aa}Patterns{}. -(number | vec)... | (number | vec)[] -> (number | vec) ---- - -Adds many numbers or vectors into a single value. -A number and a vector will combine into a vector. +{#aa4444}Multiplicable{}, {#aa4444}Divisible{}, and {#aa4444}Roundable{} +are only {#ddaa00}Numbers{} or {#aa7711}Vectors{}. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:subtract,title=Desertion Stratagem|> +Distortions here that take many arguments at once will apply their operation cumulatively. +For example: -(number | vec)... | (number | vec)[] -> (number | vec) ---- +1, 2, 3 into Annexation Stratagem = 1 + 2 + 3 = 6 -Subtracts many numbers or vectors into a single value. -A number and a vector will combine into a vector. -;;;;; +or -<|glyph@trickster:templates|trick-id=trickster:multiply,title=Domination Stratagem|> -(number | vec)... | (number | vec)[] -> (number | vec) +1, 2, 3 into Submission Stratagem = 1 / 2 / 3 = 0.1666... ---- +;;;;; -Multiplies many numbers or vectors into a single value. -A number and a vector will combine into a vector. +<|trick@trickster:templates|trick-id=trickster:add|> + +Adds fragments together. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:divide,title=Submission Stratagem|> +<|trick@trickster:templates|trick-id=trickster:subtract|> + +Subtracts multiple fragments from the first fragment. -(number | vec)... | (number | vec)[] -> (number | vec) +;;;;; ---- +<|trick@trickster:templates|trick-id=trickster:multiply|> -Divides many numbers or vectors into a single value. -A number and a vector will combine into a vector. +Multiplies a bunch of fragments. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:modulo,title=Distortion of Wholes|> +<|trick@trickster:templates|trick-id=trickster:divide|> + +Divides fragments sequentially, starting from the first. -number, number -> number +;;;;; ---- +<|trick@trickster:templates|trick-id=trickster:modulo|> Returns the remainder of dividing the first number by the second number. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:power,title=Distortion of Supremacy|> - -number, number -> number - ---- +<|trick@trickster:templates|trick-id=trickster:power|> Returns the first number raised to the power of the second. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:max,title=Noble Stratagem|> +<|trick@trickster:templates|trick-id=trickster:logarithm|> -number... | number[] -> number - ---- - -Returns the highest of many input values. +Given two numbers, returns the power that the first number must be raised by to equal the second. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:min,title=Insignificance Stratagem|> - -number... | number[] -> number +<|trick@trickster:templates|trick-id=trickster:max|> ---- - -Returns the lowest of many input values. +Returns the highest of its input values. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:ceil,title=Distortion of Grandeur|> +<|trick@trickster:templates|trick-id=trickster:min|> + +Returns the lowest of its input values. -number -> number +;;;;; ---- +<|trick@trickster:templates|trick-id=trickster:ceil|> Returns the value of the input rounded up. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:floor,title=Distortion of Humility|> - -number -> number - ---- +<|trick@trickster:templates|trick-id=trickster:floor|> Returns the value of the input rounded down. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:round,title=Distortion of Objectivity|> - -number -> number - ---- +<|trick@trickster:templates|trick-id=trickster:round|> Returns the rounded value of the input. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:sqrt,title=Distortion of Decline|> - -number -> number - ---- +<|trick@trickster:templates|trick-id=trickster:sqrt|> Returns the square root of the input. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:invert,title=Negation Distortion|> - -number -> number | vec -> vec - ---- +<|trick@trickster:templates|trick-id=trickster:invert|> Inverts the given number or vector. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:abs,title=Absolutist's Distortion|> - -number -> number +<|trick@trickster:templates|trick-id=trickster:abs|> ---- - -If the given number is negative, returns its positive equivalent. Otherwise, does nothing. +If the given number is negative, returns its positive equivalent. Otherwise, returns the number as-is. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:sin,title=Primary Distortion of Geometry|> - -number -> number - ---- +<|trick@trickster:templates|trick-id=trickster:sin|> Returns the sine of the given number. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:cos,title=Secondary Distortion of Geometry|> - -number -> number - ---- +<|trick@trickster:templates|trick-id=trickster:cos|> Returns the cosine of the given number. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:tan,title=Tertiary Distortion of Geometry|> - -number -> number - ---- +<|trick@trickster:templates|trick-id=trickster:tan|> Returns the tangent of the given number. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:arcsin,title=Primary Inverse Distortion of Geometry|> - -number -> number - ---- +<|trick@trickster:templates|trick-id=trickster:arcsin|> Returns the arcsine of the given number. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:arccos,title=Secondary Inverse Distortion of Geometry|> - -number -> number - ---- +<|trick@trickster:templates|trick-id=trickster:arccos|> Returns the arccosine of the given number. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:arctan,title=Tertiary Inverse Distortion of Geometry|> - -number -> number - ---- +<|trick@trickster:templates|trick-id=trickster:arctan|> Returns the arctangent of the given number. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:arctan2,title=Cartesian Angle Distortion|> - -number, number -> number - ---- +<|trick@trickster:templates|trick-id=trickster:arctan2|> -Returns the angle measure between positive X axis and the ray from the origin to the point (y, x). \ No newline at end of file +Returns the angle measure between positive X axis and the ray from the origin to the point (y, x). diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/boolean.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/boolean.md index 69b0aae01fee..fcbffc0bf6fc 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/boolean.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/boolean.md @@ -19,86 +19,87 @@ This chapter describes a few patterns that can be used to perform boolean logic operations. -While glyphs here may indicate they require a boolean input, -it is worth noting that any fragment will be automatically coerced into a boolean value when required. +While glyphs here indicate they require a boolean input, +it is worth noting that **any fragment will be automatically coerced into a boolean value** when required. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:if_else,title=Decision Distortion|> +Boolean values are created from any fragment based on the following logic: -(any, any)..., any -> any +- If the fragment is {#4400aa}Void{}, it is **false**. +- If the fragment is {#444444}##Zalgo##{}, it is **false**. +- If the fragment is **false**, it is **false**. +- Otherwise, it is **true**. ---- +;;;;; + +<|trick@trickster:templates|trick-id=trickster:if_else|> -Returns one of two provided options based on a boolean value. -If true, the first option is returned. Otherwise, the second. +This trick allows spells to use different fragments or even branch their behaviour based on certain criteria. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:equals,title=Parity Stratagem|> +Decision Distortion takes one or multiple pairs of booleans and values. +The value after the first boolean that is true will be returned. +If all booleans are false, a fallback value that *must* be specified at the end is returned instead. -any... -> boolean ---- +For example: -Checks for equality between many inputs. Will only return true if all inputs are equal. + +Giving this trick the arguments of **true, 1, 2** will make it return **1**, +as the boolean forms a pair with **1**, and evaluates to **true**. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:not_equals,title=Disparity Stratagem|> +Alternatively: -any... -> boolean ---- +Giving Decision Distortion the arguments of **false, 1, false, 2, 3** is also valid, +and will see it return the fallback value, which is **3**. -Checks for inequality between many inputs. Will return false if any input is equal to any other. + +And since any fragment counts as a boolean, giving it **void, 1, 2, 3, 4** will have it return **3**, +since the **2** and **3** form a pair where the **2** evaluates to **true**. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:all,title=Stratagem Bar None|> +<|trick@trickster:templates|trick-id=trickster:equals|> -boolean... -> boolean +Checks for equality between many inputs. Will only return true if all inputs are equal. ---- +;;;;; -Will only return true if all inputs are true. +<|trick@trickster:templates|trick-id=trickster:not_equals|> + +Checks for inequality between many inputs. Will return false if any input is equal to any other. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:any,title=Stratagem In General|> +<|trick@trickster:templates|trick-id=trickster:all|> -boolean... -> boolean +Will only return true if all inputs are true. ---- +;;;;; + +<|trick@trickster:templates|trick-id=trickster:any|> Will return true if any provided input is true. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:none,title=Stratagem In Absence|> - -boolean... -> boolean - ---- +<|trick@trickster:templates|trick-id=trickster:none|> Will return true if none of the provided inputs are true. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:lesser_than,title=Lesser Distortion|> - -number, number -> boolean - ---- +<|trick@trickster:templates|trick-id=trickster:lesser_than|> Returns whether the first number is lesser than the second. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:greater_than,title=Greater Distortion|> - -number, number -> boolean - ---- +<|trick@trickster:templates|trick-id=trickster:greater_than|> -Returns whether the first number is greater than the second. \ No newline at end of file +Returns whether the first number is greater than the second. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/inventory.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/inventory.md index 6ef0bc582a9b..bf3f34ab9457 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/inventory.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/inventory.md @@ -1,34 +1,33 @@ -```json -{ - "title": "Items", - "icon": "minecraft:grass_block", - "category": "trickster:distortions", - "additional_search_terms": [ - "Placement Distortion", - "Pickup Distortion" - ] -} -``` - -Tricks that transform item-related fragments. - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:block_from_item,title=Placement Distortion|> - -item -> block | void - ---- - -Returns the block type the given item type can be placed as, or void if the item is not a block. - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:item_from_block,title=Pickup Distortion|> - -block -> item | void - ---- - -Returns the item type that can be used to place the given block type, -or void if the block doesn't have a corresponding item. \ No newline at end of file +```json +{ + "title": "Items", + "icon": "minecraft:grass_block", + "category": "trickster:distortions", + "additional_search_terms": [ + "Placement Distortion", + "Pickup Distortion", + "Distortion of Breadth" + ] +} +``` + +Tricks that transform item-related fragments. + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:block_from_item|> + +Returns the block type the given item type can be placed as, or void if the item is not a block. + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:item_from_block|> + +Returns the item type that can be used to place the given block type, +or void if the block doesn't have a corresponding item. + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_max_count|> + +Returns the maximum stack size of the given item. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/list.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/list.md index c7eb72580074..770aa4296b52 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/list.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/list.md @@ -4,6 +4,7 @@ "icon": "minecraft:string", "category": "trickster:distortions", "additional_search_terms": [ + "Catalogue Delusion", "Tally Distortion", "Expansion Stratagem", "Collection Stratagem", @@ -22,114 +23,76 @@ Within spells, it is possible to create lists of an arbitrary amount of fragments merged into a single value. -Lists are zero indexed. To acquire an empty list constant, see the relevant [revision](^trickster:constants#3). +Lists are zero indexed. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:list_size,title=Tally Distortion|> +<|trick@trickster:templates|trick-id=trickster:list_create|> -any[] -> number +Creates a new empty list. ---- +;;;;; + +<|trick@trickster:templates|trick-id=trickster:list_size|> Returns the amount of elements in the given list. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:list_add,title=Expansion Stratagem|> - -any[], any... -> any[] - ---- +<|trick@trickster:templates|trick-id=trickster:list_add|> Appends one or many elements to the end of the given list. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:list_add_range,title=Collection Stratagem|> - -any[], any[]... -> any[] - ---- +<|trick@trickster:templates|trick-id=trickster:list_add_range|> Creates a new list containing the elements of all given lists. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:list_take_range,title=Isolation Distortion|> - -any[], number, [number] -> any[] - ---- +<|trick@trickster:templates|trick-id=trickster:list_take_range|> Returns a list containing the elements of the given list with indexes starting at the first number and ending before the second. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:list_reverse,title=Counter Distortion|> - -any[] -> any[] - ---- +<|trick@trickster:templates|trick-id=trickster:list_reverse|> Returns the given list, reversed. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:list_insert,title=Inflation Stratagem|> - -any[], number, any... -> any[] - ---- +<|trick@trickster:templates|trick-id=trickster:list_insert|> Inserts one or many elements at a specific position in the given list. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:list_get,title=Extraction Distortion|> - -any[], number -> any - ---- +<|trick@trickster:templates|trick-id=trickster:list_get|> Finds and returns an element from the given list based on index. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:list_index_of,title=Locating Distortion|> - -any[], any -> number | void - ---- +<|trick@trickster:templates|trick-id=trickster:list_index_of|> Finds and returns the index of a specific element in the given list, or void if the element is not in the list. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:list_remove,title=Expulsion Stratagem|> - -any[], number... -> any[] - ---- +<|trick@trickster:templates|trick-id=trickster:list_remove|> Removes one or many elements from the given list by their index. Indexes do not move around mid-removal. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:list_remove_element,title=Eviction Stratagem|> - -any[], any... -> any[] - ---- +<|trick@trickster:templates|trick-id=trickster:list_remove_element|> Removes one or many elements from the given list by checking their equality with the set of given fragments. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:create_number_range,title=Interlude Distortion|> - -number, number -> number[] - ---- +<|trick@trickster:templates|trick-id=trickster:create_number_range|> -Returns a list containing the range of integer numbers starting at the first given number and ending before the second. \ No newline at end of file +Returns a list containing the range of integer numbers starting at the first given number and ending before the second. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/map.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/map.md index b56fb44f9828..df833f393230 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/map.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/map.md @@ -4,6 +4,7 @@ "icon": "minecraft:filled_map", "category": "trickster:distortions", "additional_search_terms": [ + "Cartographer's Delusion", "Charting Stratagem", "Navigator's Distortion", "Admiral's Stratagem", @@ -14,47 +15,34 @@ This chapter describes patterns that can be used to work with maps. Maps allow for an association between one fragment and another, -similarly to how a dictionary associates a word to a definition. - - -To acquire an empty map constant, see the relevant [revision](^trickster:constants#4). +similarly to how a dictionary associates a word with a definition. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:map_insert,title=Charting Stratagem|> +<|trick@trickster:templates|trick-id=trickster:map_create|> -{any: any}, [any, any]... -> any +Creates a new empty map. ---- +;;;;; + +<|trick@trickster:templates|trick-id=trickster:map_insert|> Inserts key-value pairs into the given map. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:map_get,title=Navigator's Distortion|> - -{any: any}, any -> any - ---- +<|trick@trickster:templates|trick-id=trickster:map_get|> If there is a value associated with the given fragment, returns it. Otherwise, returns void. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:map_merge,title=Admiral's Stratagem|> - -{any: any}, {any: any}... -> {any: any} - ---- +<|trick@trickster:templates|trick-id=trickster:map_merge|> Combines many maps into one. Duplicate entries are prioritized by input index. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:map_remove,title=Stratagem of Annulment|> - -{any: any}, any... -> {any: any} - ---- +<|trick@trickster:templates|trick-id=trickster:map_remove|> Removes entries from the given map which have any of the given keys. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/misc.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/misc.md index 75b2f58ed0d0..bdb0528088ba 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/misc.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/misc.md @@ -6,7 +6,8 @@ "additional_search_terms": [ "Argumentative Distortion", "Decaying Distortion", - "Interpretation Distortion" + "Interpretation Distortion", + "Distortion of Memory" ] } ``` @@ -15,30 +16,24 @@ A few miscellaneous distortions that don't fit into any other category. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:type_fragment,title=Argumentative Distortion|> - -any -> type - ---- +<|trick@trickster:templates|trick-id=trickster:type_fragment|> Returns the type of the given fragment. Can be used to validate inputs, among other things. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:hash_values,title=Decaying Distortion|> - -[any]... -> number - ---- +<|trick@trickster:templates|trick-id=trickster:hash_values|> -Combines all given inputs into a single number. The same inputs will always produce the same number. +Combines all given inputs into a single, arbitrary number. The same inputs will always produce the same number. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:escape_pattern,title=Interpretation Distortion|> +<|trick@trickster:templates|trick-id=trickster:escape_pattern|> -pattern -> pattern_literal +Converts a pattern into a literal representation of itself, to be used when constructing spells. + +;;;;; ---- +<|trick@trickster:templates|trick-id=trickster:weight|> -Converts a pattern into a literal representation of itself, to be used when constructing spells. +Returns a number from zero to one indicating how close the given fragment is to being overweight. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/tree.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/tree.md index 4f3673115124..15c66cb425cb 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/tree.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/tree.md @@ -5,7 +5,7 @@ "category": "trickster:distortions", "additional_search_terms": [ "Supply Distortion", - "Closure Stratagem", + "Distortion of Closure", "Pinpoint Distortion", "Discovering Distortion", "Retrieval Distortion", @@ -24,23 +24,24 @@ the following patterns allow for a spell to modify other spells *during* the cas ;;;;; -<|glyph@trickster:templates|trick-id=trickster:supplier,title=Supply Distortion|> - -any -> spell - ---- +<|trick@trickster:templates|trick-id=trickster:supplier|> Creates a new spell fragment which returns the previously provided fragment when executed. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:closure,title=Closure Stratagem|> +<|trick@trickster:templates|trick-id=trickster:closure|> + +Replaces the keys of the map that are in the given spell with the value they map to. + +;;;;; -spell, {any: any} -> spell +Any values anywhere in the given spell will be replaced. +This could be constants in glyphs, patterns, and inner circles, +but also entire subtrees of the spell. ---- -Replaces the keys of the map that are in the given spell with the value they map to. +Values that are a part of inner circles or subspells will *also* be replaced. ;;;;; @@ -48,100 +49,73 @@ Replaces the keys of the map that are in the given spell with the value they map parts of a spell are accessed by their address. An address is a list of integers that forms a path to a specific circle in a spell. + +Addresses can be found using [Address Revision](^trickster:editing#29). + + +To manually find the address of a circle, start at the central circle in the spell. + ;;;;; -To find the address of a circle, start at the central circle in the spell. Next, find the sub-circle attached to the central circle that is in the +Next, find the sub-circle attached to the central circle that is in the path to the circle you are finding the address of. Take the index of that circle, which is the number of circles that come before it, counterclockwise. + + Repeat this process, adding each index to the list until you reach the circle you are finding the address of. The list you constructed is the address to that circle. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:locate_glyph,title=Pinpoint Distortion|> - -spell, any -> number[] | void - ---- +<|trick@trickster:templates|trick-id=trickster:locate_glyph|> Returns the address of the first circle in the given spell with a glyph matching the given fragment. The spell is searched using [BFS](https://en.wikipedia.org/wiki/Breadth-first_search). ;;;;; -<|glyph@trickster:templates|trick-id=trickster:locate_glyphs,title=Discovering Distortion|> - -spell, any -> number[][] - ---- +<|trick@trickster:templates|trick-id=trickster:locate_glyphs|> Returns a list of all the addresses of circles in the given spell with a glyph matching the given fragment. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:retrieve_glyph,title=Retrieval Distortion|> - -spell, number[] -> any - ---- +<|trick@trickster:templates|trick-id=trickster:retrieve_glyph|> Returns the glyph of the circle at the given address. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:set_glyph,title=Replacement Distortion|> - -spell, number[], any -> spell - ---- +<|trick@trickster:templates|trick-id=trickster:set_glyph|> Replaces the glyph of the circle at the given address with the given fragment. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_subparts,title=Bundle Distortion|> - -spell -> spell[] - ---- +<|trick@trickster:templates|trick-id=trickster:get_subparts|> Returns the branches of a spell as a list. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:retrieve_subtree,title=Felling Distortion|> - -spell, number[] -> spell | void - ---- +<|trick@trickster:templates|trick-id=trickster:retrieve_subtree|> Returns the circle (and its branches) at the given address. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:set_subtree,title=Grafting Distortion|> - -spell, number[], spell -> spell - ---- +<|trick@trickster:templates|trick-id=trickster:set_subtree|> Grafts the latter spell into the former, replacing the circle at the given address. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:add_subtree,title=Branching Distortion|> - -spell, number[], spell -> spell - ---- +<|trick@trickster:templates|trick-id=trickster:add_subtree|> Attaches the latter spell to the circle at the given address as a new branch. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:remove_subtree,title=Pruning Distortion|> - -spell, number[] -> spell | void - ---- +<|trick@trickster:templates|trick-id=trickster:remove_subtree|> Removes the circle at the given address. Returns void if the root node is removed. + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/vector.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/vector.md index 22619d295325..cf475d00ec3f 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/vector.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/distortions/vector.md @@ -23,90 +23,54 @@ This chapter provides some of these. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:extract_x,title=Primary Distortion|> - -vector -> number - ---- +<|trick@trickster:templates|trick-id=trickster:extract_x|> Returns the X component of the given vector. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:extract_y,title=Secondary Distortion|> - -vector -> number - ---- +<|trick@trickster:templates|trick-id=trickster:extract_y|> Returns the Y component of the given vector. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:extract_z,title=Tertiary Distortion|> - -vector -> number - ---- +<|trick@trickster:templates|trick-id=trickster:extract_z|> Returns the Z component of the given vector. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:merge_vector,title=Absorption Distortion|> - -number, number, number -> vector - ---- +<|trick@trickster:templates|trick-id=trickster:merge_vector|> Merges three input numbers into a vector. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:length,title=Magnitude Distortion|> - -vector -> number - ---- +<|trick@trickster:templates|trick-id=trickster:length|> Returns the length of the given vector. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:dot_product,title=Alignment Distortion|> - -vector, vector -> number - ---- +<|trick@trickster:templates|trick-id=trickster:dot_product|> Returns the dot product of the given vectors. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:cross_product,title=Perpendicular Distortion|> - -vector, vector -> vector - ---- +<|trick@trickster:templates|trick-id=trickster:cross_product|> Returns the cross product of the given vectors. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:normalize,title=Regularity Distortion|> - -vector -> vector - ---- +<|trick@trickster:templates|trick-id=trickster:normalize|> Normalizes the given vector to a length of one. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:align_vector,title=Aligned Regularity Distortion|> - -vector -> vector - ---- +<|trick@trickster:templates|trick-id=trickster:align_vector|> Normalizes the given vector to a length of one and aligns it to the nearest cardinal axis. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/editing.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/editing.md index 96d7c4e65e79..266db0fdaa7a 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/editing.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/editing.md @@ -6,11 +6,7 @@ } ``` -<|pattern@trickster:templates|pattern=0\,4\,8\,7,title=Extensive Revision|> - -{gray}(Scribing pattern){} - ---- +<|revision@trickster:templates|pattern=0\,4\,8\,7,title=Extensive Revision|> Can be used to add a new subcircle to any circle. @@ -22,11 +18,7 @@ When Extensive Revision is drawn in the blue circle, the green circle will be cr ;;;;; -<|pattern@trickster:templates|pattern=0\,4\,8\,5,title=Inner Revision|> - -{gray}(Scribing pattern){} - ---- +<|revision@trickster:templates|pattern=0\,4\,8\,5,title=Inner Revision|> Adds a new inner circle to an existing circle. Inner circles act like glyphs, and can be activated as such. @@ -60,11 +52,7 @@ as inner circles and spell fragments are the only way to move fragments back to ;;;;; -<|pattern@trickster:templates|pattern=3\,0\,4\,8,title=Split Revision|> - -{gray}(Scribing pattern){} - ---- +<|revision@trickster:templates|pattern=3\,0\,4\,8,title=Split Revision|> Replaces the circle it is drawn in with a new circle, with the old circle as a subcircle. @@ -76,11 +64,7 @@ When Split Revision is drawn in the blue circle, it adds it as a subcircle to th ;;;;; -<|pattern@trickster:templates|pattern=1\,0\,4\,8,title=Growth Revision|> - -{gray}(Scribing pattern){} - ---- +<|revision@trickster:templates|pattern=1\,0\,4\,8,title=Growth Revision|> Nests the circle it is drawn in inside another circle as its inner circle. @@ -92,11 +76,7 @@ When Growth is drawn in the blue circle, it adds it as an inner circle to the ne ;;;;; -<|pattern@trickster:templates|pattern=0\,4\,8,title=Grafting Revision|> - -{gray}(Scribing pattern){} - ---- +<|revision@trickster:templates|pattern=0\,4\,8,title=Grafting Revision|> Removes the circle it is drawn in. Will replace it with the original circle's first subcircle if available. @@ -108,11 +88,7 @@ When Grafting is drawn in the yellow circle, it and the red circle are deleted a ;;;;; -<|pattern@trickster:templates|pattern=0\,4\,8\,5\,2\,1\,0\,3\,6\,7\,8,title=Pruning Revision|> - -{gray}(Scribing pattern){} - ---- +<|revision@trickster:templates|pattern=0\,4\,8\,5\,2\,1\,0\,3\,6\,7\,8,title=Pruning Revision|> Removes the circle it is drawn in and any attached subcircles. @@ -124,11 +100,7 @@ When Pruning Revision is drawn in the yellow circle, it and the red circles are ;;;;; -<|pattern@trickster:templates|pattern=1\,2\,4\,6,title=Ascension Revision|> - -{gray}(Scribing pattern){} - ---- +<|revision@trickster:templates|pattern=1\,2\,4\,6,title=Ascension Revision|> Expands the circle it is drawn in to replace its outer circle. @@ -140,11 +112,7 @@ When Ascension Revision is drawn in the blue circle, it deletes and replaces the ;;;;; -<|pattern@trickster:templates|pattern=6\,3\,0\,4\,8,title=Devotion Revision|> - -{gray}(Scribing pattern){} - ---- +<|revision@trickster:templates|pattern=6\,3\,0\,4\,8,title=Devotion Revision|> Adds a new subcircle to the outer circle. @@ -156,92 +124,56 @@ When Devotion Revision is drawn in the blue circle, the green circle is created. ;;;;; -<|pattern@trickster:templates|pattern=1\,2\,5,title=Shifting Revision|> - -{gray}(Scribing pattern){} - ---- +<|revision@trickster:templates|pattern=1\,2\,5,title=Shifting Revision|> Shifts the subcircles of the circle it is drawn in, clockwise, so that the last subcircle is now the first. ;;;;; -<|pattern@trickster:templates|pattern=1\,0\,3,title=Reverse Shifting Revision|> - -{gray}(Scribing pattern){} - ---- +<|revision@trickster:templates|pattern=1\,0\,3,title=Reverse Shifting Revision|> Accomplishes the opposite of the Shifting Revision, moving subcircles counter-clockwise. ;;;;; -<|pattern@trickster:templates|pattern=2\,4\,3,title=Shuffling Revision|> - -{gray}(Scribing pattern){} - ---- +<|revision@trickster:templates|pattern=2\,4\,3,title=Shuffling Revision|> Swaps the first subcircle with the second subcircle. ;;;;; -<|pattern@trickster:templates|pattern=4\,0\,1\,4\,2\,1,title=Notulist's Revision|> - -{gray}(Scribing pattern){} - ---- +<|revision@trickster:templates|pattern=4\,0\,1\,4\,2\,1,title=Notulist's Revision|> Reads a spell from the user's offhand and grafts it onto the spell currently being edited, replacing the circle it is drawn in. ;;;;; -<|pattern@trickster:templates|pattern=1\,2\,4\,1\,0\,4\,7,title=Inner Notulist's Revision|> - -{gray}(Scribing pattern){} - ---- +<|revision@trickster:templates|pattern=1\,2\,4\,1\,0\,4\,7,title=Inner Notulist's Revision|> Reads a spell from the user's offhand and places it as a glyph in the center of the circle it is drawn in. ;;;;; -<|pattern@trickster:templates|pattern=4\,3\,0\,4\,5\,2\,4\,1,title=Grand Revision|> - -{gray}(Scribing pattern){} - ---- +<|revision@trickster:templates|pattern=4\,3\,0\,4\,5\,2\,4\,1,title=Grand Revision|> Replaces the glyph of the circle it is drawn in with the result of executing the user's offhand spell. Requires possession of a [Mirror](^trickster:items/mirror_of_evaluation). ;;;;; -<|pattern@trickster:templates|pattern=1\,4\,7\,6\,4\,8\,7,title=Plagiarist's Revision|> - -{gray}(Scribing pattern){} - ---- +<|revision@trickster:templates|pattern=1\,4\,7\,6\,4\,8\,7,title=Plagiarist's Revision|> Copies the circle it is drawn in to the user's offhand. ;;;;; -<|pattern@trickster:templates|pattern=1\,8\,6\,1,title=Interpretation Revision|> - -{gray}(Scribing pattern){} - ---- +<|revision@trickster:templates|pattern=1\,8\,6\,1,title=Interpretation Revision|> Creates a pattern literal of the pattern contained within the circle it is drawn in. ;;;;; -<|pattern@trickster:templates|pattern=1\,0\,4\,8\,7\,6\,4\,2\,1\,4,title=Address Revision|> - -{gray}(Scribing pattern){} - ---- +<|revision@trickster:templates|pattern=1\,0\,4\,8\,7\,6\,4\,2\,1\,4,title=Address Revision|> When this scribing pattern is drawn, the [address](^trickster:distortions/tree#2) of the circle this pattern was drawn in is written to the item in your other hand. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/intro.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/intro.md index 67f74ae67377..5f258a7f4208 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/intro.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/intro.md @@ -1,23 +1,23 @@ -```json -{ - "title": "Introduction", - "icon": "minecraft:written_book", - "ordinal": 0 -} -``` - -Welcome to the **Tome of Tomfoolery**! Your guide to magic, trickery, and applied mathematics. - - -This book consists of many chapters spread out over a few categories. -Aside from the tutorials section, these chapters are intended to be read in no particular order and only when required. - -;;;;; - -If you run into particular trouble using the mod, have trouble understanding something, -or encounter any bugs or other issues, please let us know via **[Discord](https://discord.gg/WcYsDDQtyR)**. - - -More importantly though, have fun! - -![](trickster:textures/gui/img/catstare.png) +```json +{ + "title": "Introduction", + "icon": "minecraft:written_book", + "ordinal": 0 +} +``` + +Welcome to the **Tome of Tomfoolery**! Your guide to magic, trickery, and applied mathematics. + + +This book consists of many chapters spread out over a few categories. +Aside from the tutorials section, these chapters are intended to be read in no particular order and only when required. + +;;;;; + +If you run into particular trouble using the mod, have trouble understanding something, +or encounter any bugs or other issues, please let us know via **[Discord](https://discord.gg/WcYsDDQtyR)**. + + +More importantly though, have fun! + +![](trickster:textures/gui/img/catstare.png) diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/amethyst_whorl.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/amethyst_whorl.md index 38b0ae600e80..9ac241c811a9 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/amethyst_whorl.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/amethyst_whorl.md @@ -1,19 +1,19 @@ -```json -{ - "title": "Amethyst Whorl", - "icon": "trickster:amethyst_whorl", - "category": "trickster:items", - "ordinal": 0 -} -``` - -The Amethyst Whorl is little more than a cheap trinket, but it serves its purpose: it may contain up to 256kG, and will fill at a constant rate of 1kM when worn around the neck. - - -Just like a [Knot](^trickster:items/knots), the stored mana is available to the wearer's spells. - -;;;;; - -An Amethyst Whorl may be carved from a single shard, and worn around the neck by use of a simple copper and string attachment. - - \ No newline at end of file +```json +{ + "title": "Amethyst Whorl", + "icon": "trickster:amethyst_whorl", + "category": "trickster:items", + "ordinal": 0 +} +``` + +The Amethyst Whorl is little more than a cheap trinket, but it serves its purpose: it may contain up to 512 G, and will fill at a constant rate of 0.5 M when worn around the neck. + + +Just like a [Knot](^trickster:items/knots), the stored mana is available to the wearer's spells. + +;;;;; + +An Amethyst Whorl may be carved from a single shard, and worn around the neck by use of a simple copper and string attachment. + + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/astral_hint.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/astral_hint.md index 84e1eda4a1a0..5fe087d3e23d 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/astral_hint.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/astral_hint.md @@ -1,21 +1,21 @@ -```json -{ - "title": "Of Stars Below...", - "icon": "minecraft:nether_star", - "category": "trickster:items", - "required_advancements": [ - "trickster:trigger/nether_star" - ], - "ordinal": 24 -} -``` - -Upon the vanquishing of a terrible foe, a sliver of its power remains. -This star from down below, where flame burns eternal and magma forever flows, has never seen the sky's light. -Now freed of its host, it is the light of the abyss. It is unyielding in its might. - -;;;;; - -One would require quettaGandalfs to construct such a potent font of power. -It is unimagineable that the Wither could even be vanquished, with such strength at its disposal. -The Nether's Stars must have limitations that are not immediately evident... \ No newline at end of file +```json +{ + "title": "Of Stars Below...", + "icon": "minecraft:nether_star", + "category": "trickster:items", + "required_advancements": [ + "trickster:trigger/nether_star" + ], + "ordinal": 21 +} +``` + +Upon the vanquishing of a terrible foe, a sliver of its power remains. +This star from down below, where flame burns eternal and magma forever flows, has never seen the sky's light. +Now freed of its host, it is the light of the abyss. It is unyielding in its might. + +;;;;; + +One would require quettaGandalfs to construct such a potent font of power. +It is unimagineable that the Wither could even be vanquished, with such strength at its disposal. +The Nether's Stars must have limitations that are not immediately evident... diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/astral_knot.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/astral_knot.md index 549a2ca8e4dd..6a2e707f2364 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/astral_knot.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/astral_knot.md @@ -1,21 +1,21 @@ -```json -{ - "title": "Astral Knot", - "icon": "trickster:astral_knot", - "category": "trickster:items", - "required_advancements": [ - "trickster:astral_knot" - ], - "ordinal": 26 -} -``` - -Of a Nether Star, the Astral [Knot](^trickster:items/knots) is made. -With a capacity multiple orders of magnitude greater than a Diamond Knot, -the Astral Knot has a strange quirk: similarly to the Amethyst Knot, -the moonlight does not replenish its stores. Instead, it replenishes itself. - -;;;;; - -The Astral Knot generates mana passively with regard to its current stores. -The fuller it is, the faster it fills. However, it does not generate mana when completely empty. \ No newline at end of file +```json +{ + "title": "Astral Knot", + "icon": "trickster:astral_knot", + "category": "trickster:items", + "required_advancements": [ + "trickster:astral_knot" + ], + "ordinal": 22 +} +``` + +Of a Nether Star, the Astral [Knot](^trickster:items/knots) is made. +With a capacity multiple orders of magnitude greater than a Diamond Knot, +the Astral Knot has a strange quirk: similarly to the Amethyst Knot, +the moonlight does not replenish its stores. Instead, it replenishes itself. + +;;;;; + +The Astral Knot generates mana passively with regard to its current stores. +The fuller it is, the faster it fills. However, it does not generate mana when completely empty. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/charging_array.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/charging_array.md index fe706b61ac66..9894112f95d5 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/charging_array.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/charging_array.md @@ -1,20 +1,20 @@ -```json -{ - "title": "Charging Array", - "icon": "trickster:charging_array", - "category": "trickster:items", - "ordinal": 80 -} -``` - -A Charging Array is a simple stone plate with nine slots for holding [Knots](^trickster:items/knots). -They can be placed in any orientation. -Knots stored in the Array can be charged by the moon as if they were thrown on the ground. - -;;;;; - -While they may look similar to a [Spell Construct](^trickster:items/spell_construct), -Charging Arrays are not capable of casting spells. -However, external spells may interact with the stored Knots just like they would any other inventory. - - \ No newline at end of file +```json +{ + "title": "Charging Array", + "icon": "trickster:charging_array", + "category": "trickster:items", + "ordinal": 80 +} +``` + +A Charging Array is a simple stone plate with nine slots for holding [Knots](^trickster:items/knots). +They can be placed in any orientation. +Knots stored in the Array can be charged by the moon as if they were thrown on the ground. + +;;;;; + +While they may look similar to a [Spell Construct](^trickster:items/spell_construct), +Charging Arrays are not capable of casting spells. +However, external spells may interact with the stored Knots just like they would any other inventory. + + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/cracked_amethyst_knot.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/cracked_amethyst_knot.md new file mode 100644 index 000000000000..16f0b67acade --- /dev/null +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/cracked_amethyst_knot.md @@ -0,0 +1,19 @@ +```json +{ + "title": "Cracked Amethyst Knot", + "icon": "trickster:cracked_amethyst_knot", + "category": "trickster:items", + "required_advancements": [ + "trickster:cracked_amethyst_knot" + ], + "ordinal": 26 +} +``` + +It seems that Amethyst had a little more potential than imagined! +By cracking an Amethyst Knot, this potential is unlocked, instantly recharging the Knot back to twice its original capacity. +This means its mana output can be effectively tripled before it becomes obsolete. + +;;;;; + +It's unclear why this happens. Amethyst may hold more mysteries than initially expected. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/cracked_astral_knot.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/cracked_astral_knot.md new file mode 100644 index 000000000000..fe879ebb333f --- /dev/null +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/cracked_astral_knot.md @@ -0,0 +1,19 @@ +```json +{ + "title": "Cracked Astral Knot", + "icon": "trickster:cracked_astral_knot", + "category": "trickster:items", + "required_advancements": [ + "trickster:cracked_astral_knot" + ], + "ordinal": 29 +} +``` + +Somehow, cracking an Astral Knot has increased its capacity by a truly staggering amount. +Its original capacity of 1048 kG has been multiplied by a factor of sixteen, to roughly 16.8 MG. + +;;;;; + +However, the Knot's inherent mana regeneration ability has been completely crippled. +It now **drains** mana at a rate proportional to its current supply, making it ill-suited for long-term storage. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/cracked_echo_knot.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/cracked_echo_knot.md index 23aedeae5a0c..d3a330b59726 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/cracked_echo_knot.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/cracked_echo_knot.md @@ -6,19 +6,20 @@ "required_advancements": [ "trickster:cracked_echo_knot" ], - "ordinal": 15 + "ordinal": 28 } ``` Found in the remnants of an ancient civilization, these [Knots](^trickster:items/knots) are broken, and yet still usable. They recharge naturally at only twice the rate of an Emerald Knot, but have a capacity twice that of a Diamond Knot. + There is something else that is strange about this Knot. ;;;;; When a slot which contains a Cracked Echo Knot is given as the second argument to a [Ploy of Receipt](^trickster:ploys/message#3), -it behaves rather queerly. Similarly, doing the same with a [Dispatch Ploy](^trickster:ploys/message#2) appears to alter *something*. +it behaves rather queerly. Doing the same with a [Dispatch Ploy](^trickster:ploys/message#2) appears to alter *something*. It is uncertain how exactly these two ploys interact with the Cracked Echo Knot. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/cracked_quartz_knot.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/cracked_quartz_knot.md new file mode 100644 index 000000000000..d59074c7a465 --- /dev/null +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/cracked_quartz_knot.md @@ -0,0 +1,35 @@ +```json +{ + "title": "Cracked Quartz Knot", + "icon": "trickster:cracked_quartz_knot", + "category": "trickster:items", + "required_advancements": [ + "trickster:cracked_quartz_knot" + ], + "ordinal": 27 +} +``` + +When cracked, a Quartz Knot retains a lot of its unique qualities, +though they become greatly exaggerated, and are arguably even more interesting. + + +Quartz Knots already aren't known for their mana-related capabilities, +but their cracked variant holds **no mana at all**. + +;;;;; + +On the other hand, its ability to accelerate constructs is enhanced. +When inserted into a construct, its casting speed is increased by 50%. + + +However, doing so will vastly limit the construct's capabilities, as it will have no access to mana. + +;;;;; + +Additionally, the timekeeping abilities of the Knot also change. +It still keeps a counter that ticks up about 20 times per second, but it no longer starts at zero from its creation. + + +Instead, the number it seems to be keeping track of is significantly larger, and now unable to be offset. +It might even be in the same ballpark as the age of the world itself... diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/echo_knot.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/echo_knot.md index c05f59ba6bf1..17a6d32a5776 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/echo_knot.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/echo_knot.md @@ -6,7 +6,7 @@ "required_advancements": [ "trickster:echo_knot" ], - "ordinal": 20 + "ordinal": 18 } ``` @@ -18,4 +18,8 @@ Fill one, and its twin is filled as well, no matter where in the world it may be ;;;;; -TODO: explain message behaviour +Furthermore, with the use of the [Dispatch Ploy](^trickster:ploys/message#2), +messages can be sent directly into Echo Knots. +Fragments sent in this way can be received from anywhere, +just by listening to the Knot's twin using the [Ploy of Receipt](^trickster:ploys/message#3), +making for an excellent method of long-distance, private communication. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/knots.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/knots.md index c68f30c6b0fa..41a21156eac4 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/knots.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/knots.md @@ -46,13 +46,13 @@ A few known Knot types are: - __Amethyst__\ Creation cost: none -Capacity: 128 kG +Capacity: 128 G - __Emerald__\ -Creation cost: 512 kG -Capacity: 1024 kG +Creation cost: 512 G +Capacity: 1024 G - __Diamond__\ -Creation cost: 8192 kG -Capacity: 16384 kG +Creation cost: 8192 G +Capacity: 16384 G ;;;;; diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/leash_and_collar.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/leash_and_collar.md index 6e25ad3f9b4d..eea5d534396b 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/leash_and_collar.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/leash_and_collar.md @@ -1,35 +1,35 @@ -```json -{ - "title": "The Acolyte's Pledge", - "icon": "trickster:collar", - "category": "trickster:items", - "required_advancements": [ - "trickster:trigger/collar" - ], - "secret": true, - "ordinal": 200 -} -``` - -*The Bindings were offered, simply made of dyed leather, but the magic was known [...]* --- Sanin - - - -;;;;; - -The Acolyte's Bindings and the Archmage's Tether serve a unique purpose: to allow someone to start a spell as another caster. - - - -When the unlinked Bindings are worn and their wearer is crouching, the Tether may be used on them to link the two. - -;;;;; - -Once bound, using the Tether with a spell inscribed will execute that spell as the wearer of the Bindings. -The spell will take one of their spell slots, consume their mana, and be at their position. -However, it will receive as its first argument the entity which made use of the Tether. - - -*[...] and he accepted it graciously, his freedom a small price for the teachings of his Archmage.* --- Sanin +```json +{ + "title": "The Acolyte's Pledge", + "icon": "trickster:collar", + "category": "trickster:items", + "required_advancements": [ + "trickster:trigger/collar" + ], + "secret": true, + "ordinal": 200 +} +``` + +*The Bindings were offered, simply made of dyed leather, but the magic was known [...]* +-- Sanin + + + +;;;;; + +The Acolyte's Bindings and the Archmage's Tether serve a unique purpose: to allow someone to start a spell as another caster. + + + +When the unlinked Bindings are worn and their wearer is crouching, the Tether may be used on them to link the two. + +;;;;; + +Once bound, using the Tether with a spell inscribed will execute that spell as the wearer of the Bindings. +The spell will take one of their spell slots, consume their mana, and be at their position. +However, it will receive as its first argument the entity which made use of the Tether. + + +*[...] and he accepted it graciously, his freedom a small price for the teachings of his Archmage.* +-- Sanin diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/mirror_of_evaluation.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/mirror_of_evaluation.md index d567a0fa966e..0eda83190a78 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/mirror_of_evaluation.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/mirror_of_evaluation.md @@ -1,35 +1,35 @@ -```json -{ - "title": "Mirror of Evaluation", - "icon": "trickster:mirror_of_evaluation", - "category": "trickster:items", - "ordinal": 35 -} -``` - -A Mirror of Evaluation is a tool very similar to the ever-useful [Scroll and Quill](^trickster:items/scroll_and_quill). -The main difference is that it greedily casts any part of the spell it can while it is being written. - - -Say for example you write a subcircle with two more subcircles, each containing a [Foundational Delusion](^trickster:constants#1). - -;;;;; - -When drawn, the glyphs of these subcircles will become literals for the number 2. - - -Then, you can draw say, an [Annexation Stratagem](^trickster:distortions/arithmetic#2) in the parent circle of the two twos. -This will immediately consume the two subcircles and evaluate to a literal 4 as a glyph in the parent circle. - -;;;;; - -The best way to understand these workings is absolutely to try them out for yourself: - - - -It's worth noting that, while it casts any part of the spell it can, the mirror still stores the spell its holding -inside itself as an inscribed spell. - -;;;;; - -Thus making it accessible to all conventional spell reading and writing methods. +```json +{ + "title": "Mirror of Evaluation", + "icon": "trickster:mirror_of_evaluation", + "category": "trickster:items", + "ordinal": 35 +} +``` + +A Mirror of Evaluation is a tool very similar to the ever-useful [Scroll and Quill](^trickster:items/scroll_and_quill). +The main difference is that it greedily casts any part of the spell it can while it is being written. + + +Say for example you write a subcircle with two more subcircles, each containing a [Foundational Delusion](^trickster:constants#1). + +;;;;; + +When drawn, the glyphs of these subcircles will become literals for the number 2. + + +Then, you can draw say, an [Annexation Stratagem](^trickster:distortions/arithmetic#2) in the parent circle of the two twos. +This will immediately consume the two subcircles and evaluate to a literal 4 as a glyph in the parent circle. + +;;;;; + +The best way to understand these workings is absolutely to try them out for yourself: + + + +It's worth noting that, while it casts any part of the spell it can, the mirror still stores the spell its holding +inside itself as an inscribed spell. + +;;;;; + +Thus making it accessible to all conventional spell reading and writing methods. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/modular_spell_construct.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/modular_spell_construct.md index d462c41b65ff..a621528ae8d0 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/modular_spell_construct.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/modular_spell_construct.md @@ -1,20 +1,20 @@ -```json -{ - "title": "Modular Spell Construct", - "icon": "trickster:modular_spell_construct", - "category": "trickster:items", - "ordinal": 100 -} -``` - -A Modular Spell Construct, unlike the simple [Spell Construct](^trickster:items/spell_construct), does not execute the spell inscribed onto it. -Instead, up to four [Spell Cores](^trickster:items/spell_core) may be inserted into the Construct's corner slots, where they will be executed concurrently. -The Spell Cores draw mana from the [Knot](^trickster:items/knots) placed in the Construct's center, and share the same [Crow Mind](^trickster:tricks/basic#7). - -;;;;; - -The multiple cores in this Construct type can access and delegate tasks to one -another using the same tricks as the ones used for player spell slot manipulation. -This lets advanced spell casters design persistent multithreaded spells. - - +```json +{ + "title": "Modular Spell Construct", + "icon": "trickster:modular_spell_construct", + "category": "trickster:items", + "ordinal": 100 +} +``` + +A Modular Spell Construct, unlike the simple [Spell Construct](^trickster:items/spell_construct), does not execute the spell inscribed onto it. +Instead, up to four [Spell Cores](^trickster:items/spell_core) may be inserted into the Construct's corner slots, where they will be executed concurrently. +The Spell Cores draw mana from the [Knot](^trickster:items/knots) placed in the Construct's center, and share the same [Crow Mind](^trickster:tricks/basic#7). + +;;;;; + +The multiple cores in this Construct type can access and delegate tasks to one +another using the same tricks as the ones used for player spell slot manipulation. +This lets advanced spell casters design persistent multithreaded spells. + + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/ominous_spell_core.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/ominous_spell_core.md index a0434c5cad4f..7b2f1c024470 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/ominous_spell_core.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/ominous_spell_core.md @@ -1,15 +1,15 @@ -```json -{ - "title": "Ominous Spell Core", - "icon": "trickster:ominous_spell_core", - "category": "trickster:items", - "required_advancements": [ - "trickster:ominous_spell_core" - ], - "ordinal": 130 -} -``` - -A variant of the [Spell Core](^trickster:items/spell_core) found in the vaults of Trial Chambers. -They execute their inscribed spell at a rate equal to that of player spells. -It's not clear how they're made, though only the shimmer of diamond differentiates them from the typical Spell Core. +```json +{ + "title": "Ominous Spell Core", + "icon": "trickster:ominous_spell_core", + "category": "trickster:items", + "required_advancements": [ + "trickster:ominous_spell_core" + ], + "ordinal": 130 +} +``` + +A variant of the [Spell Core](^trickster:items/spell_core) found in the vaults of Trial Chambers. +They execute their inscribed spell at a rate equal to that of player spells. +It's not clear how they're made, though only the shimmer of diamond differentiates them from the typical Spell Core. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/quartz_knot.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/quartz_knot.md index c43e5b94bbde..d60906332087 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/quartz_knot.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/quartz_knot.md @@ -1,45 +1,55 @@ -```json -{ - "title": "Quartz Knot", - "icon": "trickster:quartz_knot", - "category": "trickster:items", - "required_advancements": [ - "trickster:quartz_knot" - ], - "ordinal": 13 -} -``` - -Aha, a [Knot](^trickster:items/knots) based on Nether Quartz crystals! It seems more than just gems can be turned into mana containers. - - -This one however, has a rather abysmal capacity, on par with its Amethyst sibling. -Its natural recharge rate is also pitifully at the levels of an Emerald Knot of its same capacity. Not terrible, but definitely not great. - -;;;;; - -It seems to have one redeeming quality though. -Augmenting a [Ploy of Receipt](^trickster:ploys/message#3) with a slot as a second argument, it is possible to listen -for messages from an item. - - -Most items do not react at all, but trying the same on this knot, it responds! - -;;;;; - -When a Quartz Knot is queried in this way, it replies with an ever-incrementing number, -starting at zero at its initial creation, and counting up by about twenty every second. - - -A message can also be sent into the Knot using a similar method to resynchronize it, -and offset its counter by a given number. - -;;;;; - -If one listens closely, the faint ticking of a clock can be heard coming from within the Quartz Knot... - - -Yet, the Knot contains no moving parts... - - -What a strange object... +```json +{ + "title": "Quartz Knot", + "icon": "trickster:quartz_knot", + "category": "trickster:items", + "required_advancements": [ + "trickster:quartz_knot" + ], + "ordinal": 14 +} +``` + +Aha, a [Knot](^trickster:items/knots) based on Nether Quartz crystals! It seems more than just gems can be turned into mana containers. + + +This one however, has a rather abysmal capacity, on par with its Amethyst sibling. +Its natural recharge rate is also pitifully at the levels of an Emerald Knot of its same capacity. Not terrible, but definitely not great. + +;;;;; + +Regardless, it has some redeeming qualities. + + +For one, inserting this Knot into a construct accelerates its casting ever so slightly. +It really isn't much, but even a few extra circles can vastly improve a spell's effectiveness. + +;;;;; + +Its second uniqueness is far more interesting though. + + +By augmenting the [Ploy of Receipt](^trickster:ploys/message#3) with a slot as a second argument, it is possible to listen +for messages from an item. + + +Most items do not react to this at all, but trying the same on this Knot, it responds! + +;;;;; + +When a Quartz Knot is queried in this way, it replies with an ever-incrementing number, +starting at zero at its initial creation, and counting up by about twenty every second. + + +A message can also be sent into the Knot using a similar method to resynchronize it, +and offset its counter by a given number. + +;;;;; + +If one listens closely, the faint ticking of a clock can be heard coming from within the Quartz Knot... + + +Yet, the Knot contains no moving parts... + + +What a strange object... diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/ring.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/ring.md index 6e478fdae979..910fe9e55c8e 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/ring.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/ring.md @@ -1,12 +1,12 @@ -```json -{ - "title": "Macro Ring", - "icon": "trickster:macro_ring", - "category": "trickster:items", - "ordinal": 50 -} -``` - -A plain gold ring used for containing [Macros](^trickster:concepts/macro). - - +```json +{ + "title": "Macro Ring", + "icon": "trickster:macro_ring", + "category": "trickster:items", + "ordinal": 50 +} +``` + +A plain gold ring used for containing [Macros](^trickster:concepts/macro). + + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/rusted_spell_core.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/rusted_spell_core.md index f1ff481e5f69..3f15368f0d50 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/rusted_spell_core.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/rusted_spell_core.md @@ -1,14 +1,14 @@ -```json -{ - "title": "Rusted Spell Core", - "icon": "trickster:rusted_spell_core", - "category": "trickster:items", - "required_advancements": [ - "trickster:rusted_spell_core" - ], - "ordinal": 120 -} -``` - -Old and worn, these [Spell Cores](^trickster:items/spell_core) are found in abandoned chests throughout the Overworld. -Unlike others, they are forged of metal and have begun to rust. It is highly inadvisable to utilize them without great caution. +```json +{ + "title": "Rusted Spell Core", + "icon": "trickster:rusted_spell_core", + "category": "trickster:items", + "required_advancements": [ + "trickster:rusted_spell_core" + ], + "ordinal": 120 +} +``` + +Old and worn, these [Spell Cores](^trickster:items/spell_core) are found in abandoned chests throughout the Overworld. +Unlike others, they are forged of metal and have begun to rust. It is highly inadvisable to utilize them without great caution. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/scroll_and_quill.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/scroll_and_quill.md index 775ba43f27ae..47870851524f 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/scroll_and_quill.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/scroll_and_quill.md @@ -13,7 +13,7 @@ The Scroll and Quill can be used to easily write and store complex and reusable Right-clicking it opens the [Spell-Scribing](^trickster:editing) interface, letting you directly modify the contained spell. -Scrolls can be stored in a [Top Hat](^trickster:items/top_hat) for easy access and safe-keeping. +Scrolls can be stored in a [Hat](^trickster:items/top_hat) for easy access and safe-keeping. ;;;;; diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/scroll_shelf.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/scroll_shelf.md index 6edf8e9ef733..38c7b7df3d46 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/scroll_shelf.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/scroll_shelf.md @@ -1,23 +1,23 @@ -```json -{ - "title": "Scroll Shelves", - "icon": "trickster:scroll_shelf", - "category": "trickster:items", - "ordinal": 70 -} -``` - -Scroll Shelves are a nice way to store and visually display your collection of spells in the world. -These blocks function similarly to Chiseled Bookshelves, -you can right-click a scroll into any of the empty slots on its front side, -and take it out with another click. - -;;;;; - -Scrolls on a shelf will display in the color they're dyed as, if applicable, -and when targeted with your crosshair, will show their name for easy browsing. - - -Shelves can interact with hoppers. - - +```json +{ + "title": "Scroll Shelves", + "icon": "trickster:scroll_shelf", + "category": "trickster:items", + "ordinal": 70 +} +``` + +Scroll Shelves are a nice way to store and visually display your collection of spells in the world. +These blocks function similarly to Chiseled Bookshelves, +you can right-click a scroll into any of the empty slots on its front side, +and take it out with another click. + +;;;;; + +Scrolls on a shelf will display in the color they're dyed as, if applicable, +and when targeted with your crosshair, will show their name for easy browsing. + + +Shelves can interact with hoppers. + + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/spawner_spell_core.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/spawner_spell_core.md index be4baa5bc577..bee490eab7d3 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/spawner_spell_core.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/spawner_spell_core.md @@ -1,15 +1,15 @@ -```json -{ - "title": "Torment Spell Core", - "icon": "trickster:spawner_spell_core", - "category": "trickster:items", - "required_advancements": [ - "trickster:spawner_spell_core" - ], - "ordinal": 150 -} -``` - -A variant of the [Spell Core](^trickster:items/spell_core) powered by a spawner. -They execute their inscribed spell at one and a half times the rate of player spells. -However, if no player is within 16 blocks, they will pause completely. +```json +{ + "title": "Torment Spell Core", + "icon": "trickster:spawner_spell_core", + "category": "trickster:items", + "required_advancements": [ + "trickster:spawner_spell_core" + ], + "ordinal": 141 +} +``` + +A variant of the [Spell Core](^trickster:items/spell_core) powered by a spawner. +They execute their inscribed spell at one and a half times the rate of player spells. +However, if no player is within 16 blocks, they will pause completely. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/spell_construct.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/spell_construct.md index baff21bb7c89..7efc4cca6e2e 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/spell_construct.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/spell_construct.md @@ -1,24 +1,24 @@ -```json -{ - "title": "Spell Construct", - "icon": "trickster:spell_construct", - "category": "trickster:items", - "ordinal": 90 -} -``` - -A Spell Construct is a relatively simple device that, -when inscribed with a spell and placed into the world, will persistently cast said spell. - - -Constructs are most useful for [long-running](^trickster:concepts/multi_tick) -spells that respond to happenings in the world, or trigger periodically. - -;;;;; - -If a source of mana is required, any [Knot](^trickster:items/knots) -may be inserted into the center of the Construct with a right-click. -They may also be shift-right-clicked to reset the currently running spell, -ignoring any previous blunders. - - +```json +{ + "title": "Spell Construct", + "icon": "trickster:spell_construct", + "category": "trickster:items", + "ordinal": 90 +} +``` + +A Spell Construct is a relatively simple device that, +when inscribed with a spell and placed into the world, will persistently cast said spell. + + +Constructs are most useful for [long-running](^trickster:concepts/multi_tick) +spells that respond to happenings in the world, or trigger periodically. + +;;;;; + +If a source of mana is required, any [Knot](^trickster:items/knots) +may be inserted into the center of the Construct with a right-click. +They may also be shift-right-clicked to reset the currently running spell, +ignoring any previous blunders. + + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/spell_core.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/spell_core.md index 5fa2835ab4e4..ce437293c536 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/spell_core.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/spell_core.md @@ -14,4 +14,4 @@ where they will run the spell inscribed onto them at 75% the speed of a player's To construct a Spell Core, one must have a shard of amethyst as a *channel*, a pearl of the End as a *heart*, a thread of gold as a *mind*, and a wrapping of leather as a *guard*. - \ No newline at end of file + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/spell_resonator.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/spell_resonator.md index 1b6cc6d4496b..22de43a12418 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/spell_resonator.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/spell_resonator.md @@ -3,7 +3,7 @@ "title": "Spell Resonator", "icon": "trickster:spell_resonator", "category": "trickster:items", - "ordinal": 140 + "ordinal": 150 } ``` diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/top_hat.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/top_hat.md index ba2e8dc4ccbe..18c64b76263a 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/top_hat.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/top_hat.md @@ -1,42 +1,42 @@ -```json -{ - "title": "Hats", - "icon": "trickster:top_hat", - "category": "trickster:items", - "ordinal": 40 -} -``` - -The caster's hat is quite an ingenious accessory. -After equipping it on their head, a caster can press the -button to take the hat into their offhand quickly. - - -When a hat is held in your offhand, you can right-click to open it, and insert up to 27 scrolls. -These scrolls can then be selected by shift-scrolling while holding the hat. - -;;;;; - -Now, when a running spell tries to access the spell in your other hand via [Notulist's Delusion](^trickster:tricks/basic#3), -it will read the spell from the selected scroll in the held hat instead. - - -You can also access the spell in any slot of your hat directly using [Cranium Stratagem](^trickster:delusions_ingresses/imports#3), -or read the selected slot using [Cranium Delusion](^trickster:delusions_ingresses/inventory#7). - -;;;;; - -A few different types of hat are available depending on your likes and preferences! -They all function the exact same though. - - -The classic Top Hat: - - -;;;;; - -A mysterious Witch Hat: - - -And even the humble (but very cool) Fez: - +```json +{ + "title": "Hats", + "icon": "trickster:top_hat", + "category": "trickster:items", + "ordinal": 40 +} +``` + +The caster's hat is quite an ingenious accessory. +After equipping it on their head, a caster can press the +button to take the hat into their offhand quickly. + + +When a hat is held in your offhand, you can right-click to open it, and insert up to 27 scrolls. +These scrolls can then be selected by shift-scrolling while holding the hat. + +;;;;; + +Now, when a running spell tries to access the spell in your other hand via [Notulist's Delusion](^trickster:tricks/basic#3), +it will read the spell from the selected scroll in the held hat instead. + + +You can also access the spell in any slot of your hat directly using [Cranium Stratagem](^trickster:delusions_ingresses/imports#3), +or read the selected slot using [Cranium Delusion](^trickster:delusions_ingresses/inventory#7). + +;;;;; + +A few different types of hat are available depending on your likes and preferences! +They all function the exact same though. + + +The classic Top Hat: + + +;;;;; + +A mysterious Witch Hat: + + +And even the humble (but very cool) Fez: + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/wand.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/wand.md index 5f1a5934abd1..9eacf9259161 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/wand.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/wand.md @@ -1,14 +1,14 @@ -```json -{ - "title": "Wand", - "icon": "trickster:wand", - "category": "trickster:items", - "ordinal": 30 -} -``` - -A wand is a very simple magical tool that will cast a spell inscribed into it when right-clicked. - - - -Spells can be inscribed into a wand using [Notulist's Ploy](^trickster:tricks/basic#4). +```json +{ + "title": "Wand", + "icon": "trickster:wand", + "category": "trickster:items", + "ordinal": 30 +} +``` + +A wand is a very simple magical tool that will cast a spell inscribed into it when right-clicked. + + + +Spells can be inscribed into a wand using [Notulist's Ploy](^trickster:tricks/basic#4). diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/warding_charm.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/warding_charm.md index c766f279fae5..746548ee7207 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/warding_charm.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/items/warding_charm.md @@ -1,12 +1,12 @@ -```json -{ - "title": "Warding Charm", - "icon": "trickster:warding_charm", - "category": "trickster:items", - "ordinal": 60 -} -``` - -A basic magical trinket capable of holding spells to be used for [Warding](^trickster:concepts/ward). - - +```json +{ + "title": "Warding Charm", + "icon": "trickster:warding_charm", + "category": "trickster:items", + "ordinal": 60 +} +``` + +A basic magical trinket capable of holding spells to be used for [Warding](^trickster:concepts/ward). + + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/landing_page.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/landing_page.md index 58033f105c45..dbbbfe17b0e5 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/landing_page.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/landing_page.md @@ -1,7 +1,7 @@ -```json -{ - "title": "Tome of Tomfoolery" -} -``` - -<|spell-preview@trickster:templates|spell=YwyT9+Z3YJjPxgRiMLg4cDGDGIwMDgyMIAZHCAMDg9azL5ogToCHQydYdIMPA0RakYGJEcwI4HHoxKcQaGAnE4TBwAEWYWBUQLICjxkLGhwaoVqZIArBDAYAAInoArsAAAA=|> +```json +{ + "title": "Tome of Tomfoolery" +} +``` + +<|spell-preview@trickster:templates|spell=YwyT9+Z3YJjPxgRiMLg4cDGDGIwMDgyMIAZHCAMDg9azL5ogToCHQydYdIMPA0RakYGJEcwI4HHoxKcQaGAnE4TBwAEWYWBUQLICjxkLGhwaoVqZIArBDAYAAInoArsAAAA=|> diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/block.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/block.md index 437f02b8dbde..63c98ec738f9 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/block.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/block.md @@ -23,29 +23,26 @@ This entry contains tricks that operate directly on blocks in the world. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:break_block,title=Ploy of Destruction|> - -vector -> vector - -<|cost-rule@trickster:templates|formula=max(hardness * 1kG\, 8kG)|> +<|ploy@trickster:templates|trick-id=trickster:break_block,cost=max(hardness * 1G\, 8G)|> Breaks the block at the given position. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:place_block,title=Ploy of Creation|> +<|ploy@trickster:templates|trick-id=trickster:place_block,cost=max(distance * 1G\, 8G)|> + +Places a block at the given position. -vector, slot, [vector, vector] | +;;;;; -vector, block, [vector, vector] -> vector +The block to place is determined based on a slot reference or block type fragment. -<|cost-rule@trickster:templates|formula=max(distance * 1kG\, 8kG)|> -Places the given block at the given position. Will consume its respective item. +If given a block type, the first available item of that type in the caster's inventory will be consumed. ;;;;; -This ploy optionally takes two additional arguments. +Ploy of Creation optionally takes two additional arguments. - The first defines the direction to place from. - The second defines what side of an adjacent block is interacted with when placing. @@ -54,21 +51,26 @@ Some blocks may change their facing or other properties based on these values. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:change_weight,title=Ploy of Featherweight|> +<|ploy@trickster:templates|trick-id=trickster:change_weight,cost=10G + 30G * (1 - multiplier)|> + +Given a number between zero and one, levitates the block at the given position, using the number as its gravity multiplier. + +;;;;; -vector, number -> entity +The gravity manipulation of Ploy of Featherweight usually wears off after about a second if not reapplied. -<|cost-rule@trickster:templates|formula=60kG * (1 - multiplier)|> -Given a number between zero and one, levitates the block at the given position, using the number as its gravity multiplier. +Applying it again to an already levitating block with a multiplier below one +might be used to keep the block in its levitating state for longer, even while touching the ground. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:swap_block,title=Ploy of Exchange|> +If one instead wants to force the block to solidify regardless of its position or state, +a featherweight of exactly one may be applied. -vector, vector -> +;;;;; -<|cost-rule@trickster:templates|formula=60kG + distance * 1kG|> +<|ploy@trickster:templates|trick-id=trickster:swap_block,cost=60G + distance * 1G|> Exchanges the blocks at two positions in the world. Neither of the positions can be empty. @@ -82,11 +84,7 @@ though some collateral effects on surrounding blocks should be expected. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:heat,title=Ploy of Investiture|> - -vector -> vector - -<|cost-rule@trickster:templates|formula=80kG|> +<|ploy@trickster:templates|trick-id=trickster:heat,cost=80G|> Instantly heat up the given block significantly. @@ -95,61 +93,37 @@ Heating a furnace like this would be quite effective. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:cool,title=Ploy of Divestiture|> - -vector -> vector - -<|cost-rule@trickster:templates|formula=80kG|> +<|ploy@trickster:templates|trick-id=trickster:cool,cost=80G|> Instantly cools off the given block significantly. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:erode,title=Ploy of Attrition|> - -vector, vector -> vector - -<|cost-rule@trickster:templates|formula=80kG|> +<|ploy@trickster:templates|trick-id=trickster:erode,cost=80G|> Wears down the block at the first given position, making use of the water at the second given position. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:conjure_flower,title=Floral Ploy|> - -vector -> vector - -<|cost-rule@trickster:templates|formula=5kG|> +<|ploy@trickster:templates|trick-id=trickster:conjure_flower,cost=5G|> Conjures a random flower at the given position. The block underneath must have a solid top face. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:conjure_water,title=Aquatic Ploy|> +<|ploy@trickster:templates|trick-id=trickster:conjure_water,cost=15G|> -vector -> vector - -<|cost-rule@trickster:templates|formula=15kG|> - -Conjures a small splash of water at the given position. +Conjures a bucket's worth of water at the given position. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:conjure_light,title=Illumination Ploy|> - -vector -> vector - -<|cost-rule@trickster:templates|formula=20kG|> +<|ploy@trickster:templates|trick-id=trickster:conjure_light,cost=20G|> Conjures a permanent light source at the given position. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:power_resonator,title=Resonance Ploy|> - -vector, number -> boolean - -<|cost-rule@trickster:templates|formula=distance / 2kG|> +<|ploy@trickster:templates|trick-id=trickster:power_resonator,cost=4G|> Powers the [Spell Resonator](^trickster:items/spell_resonator) at the given position with the given power level, between 0 and 15. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/entity.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/entity.md index 639eab09d69f..8c923a613c49 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/entity.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/entity.md @@ -16,86 +16,84 @@ } ``` -Various tricks related to manipulating entities. +*"You've read up on the Manton Effect before, I expect? It's a weird one."* -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:add_velocity,title=Kinetic Ploy|> -entity, vector -> entity +*"No one is quite sure why these limitations exist as they are, or if we just haven't found the right methods yet. +Regardless, one must keep them in mind at all times."* -<|cost-rule@trickster:templates|formula=3kG + length^3 * 2kG|> -Applies the given vector as velocity to the given entity. +-- An excerpt from a lecture by Prof. Olivine. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:change_weight,title=Ploy of Featherweight|> - -entity, number -> entity - -<|cost-rule@trickster:templates|formula=60kG * (1 - multiplier)|> +<|ploy@trickster:templates|trick-id=trickster:change_weight,cost=10G + 30G * (1 - multiplier)|> Given a number between zero and one, multiplies the given entity's effective gravity by that number for one second, provided it is alive. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:displace,title=Ploy of the Usurper|> - -entity, vector -> entity +<|ploy@trickster:templates|trick-id=trickster:add_velocity,cost=3G + length^3 * 2G|> -<|cost-rule@trickster:templates|formula=20kG + 1.35^length|> - -Displaces the given entity by the given vector after two seconds. +Applies the given vector as velocity to the given entity. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:polymorph,title=Polymorph Ploy|> +Cost scaling on Kinetic Ploy is *very* aggressive. +Additional casts of the ploy within the same 1/20th of a second will incur +the cost *as if* it was cast with **the added length of both casts** in one go. -entity, entity -> -<|cost-rule@trickster:templates|formula=8000kG|> - -Polymorphs the first entity to appear to be the second in every way. **Currently only works with players.** +Because of the cubic scaling of cost on this ploy, this is very likely to be undesirable. +Consider using [Deviation of Suspension](^trickster:tricks/functions#3) +to delay the next cast before stacking it where possible. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:dispel_polymorph,title=Dispel Polymorph Ploy|> +<|ploy@trickster:templates|trick-id=trickster:set_scale,cost=abs(currentScale - newScale)^2 * 100G + newScale * 50G|> -entity -> entity +Changes the scale of the given entity. Entities cannot be scaled below 0.0625 or above 8 times their usual size. -<|cost-rule@trickster:templates|formula=1000kG|> +;;;;; -Dispels any polymorph on the given entity. +Entities scaled in this way will slowly revert back to their original scale over time, +unless the ploy is recast periodically. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:store_entity,title=Containment Ploy|> +<|ploy@trickster:templates|trick-id=trickster:displace,cost=20G + 1.35G^length|> -entity -> +Displaces the given entity by the given vector after two seconds. +This ploy has the same aggressive and stacking cost scaling as Kinetic Ploy. + +;;;;; -<|cost-rule@trickster:templates|formula=2000kG + distance ^ (distance / 5kG)|> +<|ploy@trickster:templates|trick-id=trickster:polymorph,cost=8000G|> -Stores the given entity in the caster's offhand item. -The item must support entity storage, and the entity must not be a player. +Changes the first entity's appearance to match the second. +Both entities must be players. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:release_entity,title=Extrication Ploy|> +<|ploy@trickster:templates|trick-id=trickster:dispel_polymorph,cost=1000G|> -vector -> entity | void +Dispels any polymorph applied to the given entity. -<|cost-rule@trickster:templates|formula=2000kG + distance ^ (distance / 5kG)|> +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:store_entity,cost=2000G + 1G * distance ^ (distance / 5)|> -Releases the entity stored in the caster's offhand item to the given position, returning it. -Returns void if there is no entity. +Stores the given entity in the caster's [Hat](^trickster:items/top_hat). +The hat must be held in the caster's offhand, and the entity must not be a player. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:set_scale,title=Ploy of Occupation|> +Some entities cannot be stored into a hat, usually because they are too large. +Trying to store such entities will result in a blunder. -entity, number -> entity +;;;;; -<|cost-rule@trickster:templates|formula=abs(currentScale - newScale)^2 * 100kG + newScale * 50kG|> +<|ploy@trickster:templates|trick-id=trickster:release_entity,cost=2000G + 1G * distance ^ (distance / 5)|> -Changes the scale of the given entity. Entities cannot be scaled below 0.0625 or above 8 times their usual size. \ No newline at end of file +Releases the entity stored in the caster's [Hat](^trickster:items/top_hat) to the given position, returning a reference to it. +Returns void if there is no entity to release. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/flecks.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/flecks.md index 96abac86eaee..4dbf735a0677 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/flecks.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/flecks.md @@ -45,30 +45,18 @@ All flecks can also take an optional list of players, or a sole player, for whic ;;;;; -<|glyph@trickster:templates|trick-id=trickster:draw_spell,title=Marketer's Ploy|> - -number, vector, vector, spell, [number], [entity[] | entity] -> number - ---- +<|trick@trickster:templates|trick-id=trickster:draw_spell|> At the given position, with the given facing, display a spell, optionally scaled. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:draw_line,title=Artist's Ploy|> - -number, vector, vector, [entity[] | entity] -> number - ---- +<|trick@trickster:templates|trick-id=trickster:draw_line|> Draws a line between the given positions. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:delete_fleck,title=Orwell's Ploy|> - -number, [entity[] | entity] -> number - ---- +<|trick@trickster:templates|trick-id=trickster:delete_fleck|> Removes any fleck with the given id. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/inventory.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/inventory.md index 30c1d6003da7..67976fc49591 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/inventory.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/inventory.md @@ -6,6 +6,7 @@ "additional_search_terms": [ "Ploy of Offering", "Swindler's Ploy", + "Organizer's Ploy", "Cranial Shift Ploy" ] } @@ -15,30 +16,24 @@ Listed here are ploys that interact with inventory slots or other inventory feat ;;;;; -<|glyph@trickster:templates|trick-id=trickster:drop_stack_from_slot,title=Ploy of Offering|> - -slot, vector, [number] -> entity - ---- +<|trick@trickster:templates|trick-id=trickster:drop_stack_from_slot|> Drops items from the given slot at a position, returning their entity. Optionally, an amount can be specified. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:swap_slot,title=Swindler's Ploy|> - -slot, slot -> - ---- +<|trick@trickster:templates|trick-id=trickster:swap_slot|> Swaps the item stacks within the given slots. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:set_hat,title=Cranial Shift Ploy|> +<|trick@trickster:templates|trick-id=trickster:move_stack|> + +Moves items from one slot into another, optionally limiting the amount. Can merge and split stacks. -number -> boolean +;;;;; ---- +<|trick@trickster:templates|trick-id=trickster:set_hat|> -Sets the selected slot in the caster's [Top Hat](^trickster:items/top_hat), returning a boolean based on success. +Sets the selected slot in the caster's [Hat](^trickster:items/top_hat), returning a boolean based on success. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/mana.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/mana.md index e56d19aa698f..b2c977fdb248 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/mana.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/mana.md @@ -11,34 +11,48 @@ } ``` -Ploys for creating [Knots](^trickster:items/knots) and moving mana between them. +*mun en kon suli o lawa e mi* + + +*o pana tawa mi* -;;;;; -<|glyph@trickster:templates|trick-id=trickster:battery_creation,title=Ploy of the Moon Watcher|> +*o pona e mi* -[slot], [slot] -> ---- +-- jan Enali + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:battery_creation|> -Creates a Knot of the type of the given item using a Glass Block. Uses amethyst if no slot is provided. +Creates a [Knot](^trickster:items/knots) using the crystal in the given slot and a Glass Block. Uses amethyst if no first slot is provided. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:push_mana,title=Benevolent Conduit's Ploy|> +<|page-title@lavender:book_components|title=Note: Mana Transfers|>Mana can only ever be moved between the caster's +reserves and external slots, never between two arbitrary external slots. +When pushing to or pulling from multiple slots at once, load is equally split between all of them. -number, slot... | slot[] -> number ---- +When pulling or pushing mana over a distance lesser than 16 blocks, transfers are lossless. + +;;;;; + +Over greater distances though, +a loss is incurred proportional to the amount of mana transferred multiplied by distance. -Pushes mana into the given slots, up to an amount, and returns the amount moved. + +This loss follows a roughly exponential scale, reaching around 50% at or near 100 blocks of distance. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:pull_mana,title=Malevolent Conduit's Ploy|> +<|trick@trickster:templates|trick-id=trickster:push_mana|> + +Pushes mana into the given slots from the caster's reserves, up to an amount. Returns the amount moved. -number, slot... | slot[] -> number +;;;;; ---- +<|trick@trickster:templates|trick-id=trickster:pull_mana|> -Pulls mana from the given slots, up to an amount, and returns the amount moved. \ No newline at end of file +Pulls mana from the given slots into the caster's reserves, up to an amount. Returns the amount moved. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/mana_generation.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/mana_generation.md index 00d8ad404d24..0442d473b9da 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/mana_generation.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/mana_generation.md @@ -1,23 +1,19 @@ -```json -{ - "title": "Mana Generation", - "icon": "minecraft:wheat_seeds", - "category": "trickster:ploys", - "additional_search_terms": [ - "Cultivator's Ploy" - ] -} -``` - -Listed here are ploys which may be used to generated mana. -They will generally return the amount of excess mana that was generated but lost due to storage limitations. - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:drain_matter,title=Cultivator's Ploy|> - -vector -> number - ---- - -Absorbs soft plant matter at the given position into mana. +```json +{ + "title": "Mana Generation", + "icon": "minecraft:wheat_seeds", + "category": "trickster:ploys", + "additional_search_terms": [ + "Cultivator's Ploy" + ] +} +``` + +Listed here are ploys which may be used to generated mana. +They return the amount of excess mana that was generated but lost due to storage limitations. + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:drain_matter|> + +Absorbs soft plant matter at the given position into mana. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/message.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/message.md index 375656014752..2bf98f8670f1 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/message.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/message.md @@ -10,24 +10,27 @@ } ``` -Utilizing the following tricks, spells may communicate with each other. +Utilizing the following tricks, otherwise separate spells may communicate with each other. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:message_send,title=Dispatch Ploy|> +<|ploy@trickster:templates|trick-id=trickster:message_send,cost=max(0G\, range - 16G)|> -any, [number] -> any +Sends the given fragment to all spells within 16 blocks. Range may be extended by the given number at the cost of mana. -<|cost-rule@trickster:templates|formula=max(0kG\, range - 16kG)|> +;;;;; -Sends the given fragment to all spells within 16 blocks. Range may be extended by the given number at the cost of mana. +<|trick@trickster:templates|trick-id=trickster:message_listen|> + +Returns all messages received on the tick after they were received. Must be provided with a timeout after which to return anyway. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:message_listen,title=Ploy of Receipt|> +A slot fragment may be supplied as the second argument to Dispatch Ploy instead of a number, +which will send the message *into* the item present in that slot, if possible. -number -> any[] ---- +Ploy of Receipt works similarly for receiving messages *from* items. -Returns all messages received on the tick after they were received. Must be provided with a timeout after which to return anyway. + +Not all items are able to channel messages. \ No newline at end of file diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/misc.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/misc.md index bda1318fc3ae..c76613003d1c 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/misc.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/misc.md @@ -15,17 +15,13 @@ A few miscellaneous ploys that don't fit into any other category. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:pin_chunk,title=Ploy of Celestial Pin|> - -vector -> vector - -<|cost-rule@trickster:templates|formula=4kG|> +<|ploy@trickster:templates|trick-id=trickster:pin_chunk,cost=4G|> Fully loads the chunk containing the given position for exactly 4 seconds. ;;;;; -<|page-title@lavender:book_components|title=Note: Bars|>Spells can display arbitrary values on the caster's screen as bars. +<|page-title@lavender:book_components|title=Note: Bars|>Spells can display arbitrary values on the caster's view as bars. Bars are identified by a number and can be overwritten at any time by using the same number again. @@ -37,24 +33,16 @@ A bar can either be given one number, which will be interpreted on a scale of 0 which means it will interpret the first as the current and the second as the maximum value. -It also always returns the given value to its parent circle when updated, allowing for easy chaining. +Ploy of Clarity returns the given value to its parent circle when used, allowing for easy chaining. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:show_bar,title=Ploy of Clarity|> - -number, number, [number] -> number +<|trick@trickster:templates|trick-id=trickster:show_bar|> ---- - -Shows a bar on the caster's screen identified by the first number displaying the second number. +Shows a bar on the caster's view identified by the first number displaying the second number. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:clear_bar,title=Ploy of Obfuscation|> - -number -> number - ---- +<|trick@trickster:templates|trick-id=trickster:clear_bar|> -Immediately clears a bar from the caster's screen identified by the given number. +Immediately clears a bar identified by the given number from the caster's view. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/particle.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/particle.md index bfbcf0d13405..e9e20a809c6b 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/particle.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/particle.md @@ -13,10 +13,6 @@ Various ploys for displaying particles in the world. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:highlight,title=Flourish Ploy|> +<|trick@trickster:templates|trick-id=trickster:highlight|> -vector... | vector[] -> vector - ---- - -Highlights the given blocks and returns the first input unmodified. \ No newline at end of file +Highlights the given blocks for a second and returns the first input unmodified. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/projectile.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/projectile.md index b9d86f2dadcd..2c18180d602d 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/projectile.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/ploys/projectile.md @@ -15,46 +15,34 @@ Tricks for manipulating projectiles. Tricks in this category will take the required item from their caster's inventory, or optionally a specific slot. -;;;;; -<|glyph@trickster:templates|trick-id=trickster:summon_arrow,title=Ballista's Ploy|> +These all have very aggressive cost scaling with distance. +They should ideally be used at positions as near to the caster as possible. -vector, [slot] -> entity +;;;;; -<|cost-rule@trickster:templates|formula=20kG + distance ^ (distance / 3kG)|> +<|ploy@trickster:templates|trick-id=trickster:summon_arrow,cost=20G + 1G * distance ^ (distance / 3)|> Summons an arrow at the given position, returning it. Requires an arrow. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:summon_fireball,title=Pyromancer's Ploy|> - -vector, [slot] -> entity - -<|cost-rule@trickster:templates|formula=20kG + distance ^ (distance / 3kG)|> +<|ploy@trickster:templates|trick-id=trickster:summon_fireball,cost=20G + 1G * distance ^ (distance / 3)|> Summons a fireball at the given position, returning it. Requires a fire charge. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:summon_dragon_breath,title=Dragon's Ploy|> - -vector, [slot], [slot] -> entity - -<|cost-rule@trickster:templates|formula=20kG + distance ^ (distance / 3kG)|> +<|ploy@trickster:templates|trick-id=trickster:summon_dragon_breath,cost=20G + 1G * distance ^ (distance / 3)|> Summons a ball of dragon's breath at the given position, returning it. Requires a bottle of dragon's breath and a fire charge. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:summon_tnt,title=Demolitionist's Ploy|> - -vector, [slot] -> entity - -<|cost-rule@trickster:templates|formula=20kG + distance ^ (distance / 3kG)|> +<|ploy@trickster:templates|trick-id=trickster:summon_tnt,cost=20G + 1G * distance ^ (distance / 3)|> Summons lit TNT at the given position, returning it. Requires TNT. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/basic.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/basic.md index e077919e77e1..80eafc611c00 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/basic.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/basic.md @@ -15,8 +15,11 @@ } ``` -Here listed are the most basic but useful general purpose tricks. -Any aspiring magician is recommended to learn these. +*"The foundations are arguably the most important part of any skillset. +There is no shame in revisiting them every now and then."* + + +-- An excerpt from a lecture by Prof. Olivine. ;;;;; @@ -29,53 +32,33 @@ Some items may have additional interactions when inscribed with fragments, ;;;;; -<|glyph@trickster:templates|trick-id=trickster:read_spell,title=Notulist's Ingress|> - -[slot] -> any +<|trick@trickster:templates|trick-id=trickster:read_spell|> ---- - -Reads the fragment from the item in the given slot or in the caster's offhand. -Returns void if there is none. +Reads the fragment from the item in the given slot, or in the caster's offhand if no slot is given. +Returns void if no fragment is inscribed. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:write_spell,title=Notulist's Ploy|> - -any, [slot] -> any +<|trick@trickster:templates|trick-id=trickster:write_spell|> ---- - -Inscribes a fragment onto the item in the given slot or in the caster's offhand. -Returns its input, after ephemeral decay. +Inscribes a fragment onto the item in the given slot, or in the caster's offhand if no slot is given. +Returns its input, after [decay](^trickster:concepts/fragment_decay). ;;;;; -<|glyph@trickster:templates|trick-id=trickster:write_closed_spell,title=Proprietary Notulist's Ploy|> - -any, [slot] -> any - ---- +<|trick@trickster:templates|trick-id=trickster:write_closed_spell|> Same as Notulist's Ploy, but the fragment cannot be read by conventional means. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:clear_spell,title=Alethophobe's Ploy|> - -[slot] -> +<|trick@trickster:templates|trick-id=trickster:clear_spell|> ---- - -Clears any fragment inscribed onto the item in the given slot or in the caster's offhand. +Clears any inscribed fragment from the item in the given slot, or in the caster's offhand if no slot is given. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:reveal,title=Showcase Ploy|> - -any... -> any - ---- +<|trick@trickster:templates|trick-id=trickster:reveal|> Shows all given values as a chat message to the caster and returns the first. @@ -90,22 +73,12 @@ marking locations, and selecting targets. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:read_crow_mind,title=Crow Mind Delusion|> - --> any - ---- +<|trick@trickster:templates|trick-id=trickster:read_crow_mind|> Returns the value currently stored in the caster's crow mind. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:write_crow_mind,title=Crow Mind Ploy|> - -any -> any - ---- +<|trick@trickster:templates|trick-id=trickster:write_crow_mind|> Stores the supplied value in the caster's Crow Mind, overwriting any value that might already be present. - -;;;;; diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/cost.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/cost.md index 42cb34c76545..740d0240e7b1 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/cost.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/cost.md @@ -1,31 +1,27 @@ -```json -{ - "title": "Casting Cost", - "icon": "minecraft:amethyst_shard", - "category": "trickster:tricks", - "required_advancements": [ - "trickster:cost_ploy" - ], - "secret": true, - "additional_search_terms": [ - "Cost Ploy" - ] -} -``` - -After receiving multiple complaints at Tomfoolery Inc. HQ about the balance of this mod, -we've decided to properly implement material spell casting costs. - - -However, player freedom and choice is also very important to us. -As such, this system operates on an opt-in basis. - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:cost,title=Cost Ploy|> - --> - ---- - -Consumes one amethyst shard from the caster's inventory. Will blunder if none are available. +```json +{ + "title": "Casting Cost", + "icon": "minecraft:amethyst_shard", + "category": "trickster:tricks", + "required_advancements": [ + "trickster:cost_ploy" + ], + "secret": true, + "additional_search_terms": [ + "Cost Ploy" + ] +} +``` + +After receiving multiple complaints at Tomfoolery Inc. HQ about the balance of this mod, +we've decided to properly implement material spell casting costs. + + +However, player freedom and choice is also very important to us. +As such, this system operates on an opt-in basis. + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:cost|> + +Consumes one amethyst shard from the caster's inventory. Will blunder if none are available. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/functions.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/functions.md index 4c187e6d388f..102cff1018e5 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/functions.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/functions.md @@ -11,7 +11,9 @@ "Folding Deviation", "Cautious Deviation", "Deviation of Singularity", - "Executioner's Deviation" + "Executioner's Deviation", + "Ingress of Origin", + "Turtle's Ingress" ] } ``` @@ -20,75 +22,85 @@ Just as values can be created, passed around, and used by spells, so can parts o When nesting one circle as a glyph inside another, -but not immediately providing any subcircles to the upper circle, -the upper circle will return the inner circle as a fragment. +but not immediately providing any subcircles to the outer circle, +the outer circle will return the entire inner circle with all its subcircles and glyphs as a fragment. ;;;;; -This fragment can then be used in a number of ways, including being written to an item using [Notulist's Ploy](^trickster:tricks/basic#4), -and being cast later or even multiple times within the same spell. +This fragment can be used in a number of ways, including being written to an item using [Notulist's Ploy](^trickster:tricks/basic#4), +and being cast later or reused multiple times within the same spell. -It is also very possible to pass a spell fragment inside of itself, and execute it again there, -using recursion to create what is essentially a loop. +It is also very possible to pass a spell fragment inside of itself, and cast it again there, +using recursion to create repeating behaviour. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:delay_execution,title=Deviation of Suspension|> - -[number] -> number - ---- +<|trick@trickster:templates|trick-id=trickster:delay_execution|> Delays the execution of the current spell by the given number of ticks, or until the next tick. Returns the delay. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:execute,title=Grand Deviation|> +<|trick@trickster:templates|trick-id=trickster:execute|> -spell, any... -> any +Casts the given spell fragment, +providing it with all additional given fragments as arguments, in order of their appearance. ---- +;;;;; + +<|trick@trickster:templates|trick-id=trickster:execute_same_scope|> -A powerful trick indeed, it executes the passed in spell fragment, -providing it with all other passed in fragments as arguments. +Casts the given spell with the current spell's arguments. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:execute_same_scope,title=Quiet Deviation|> +<|trick@trickster:templates|trick-id=trickster:try_catch|> -spell -> any +Attempts to execute the first spell. If it blunders, the second spell is run and the blunder is silenced. Excess values are arguments to both. ---- +;;;;; + +<|trick@trickster:templates|trick-id=trickster:atomic|> -Executes the given spell with the current spell's arguments. +Executes the given spell in a single tick, blundering if this cannot be guaranteed due to spell size or illegal operations. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:fork,title=Utensil Deviation|> +If there are not enough circle evaluations available in the tick that this trick is used, +there will be a one tick delay before the entirety of the given spell is run at once. -spell, any... -> number ---- +Illegal operations include the following: +- [Deviation of Suspension](^trickster:tricks/functions#3). +- [Ploy of Receipt](^trickster:ploys/message#3). +- Any Deviation which evaluates a sub-spell. +- Implicit sub-spell evaluation. + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:fork|> -Dispatches the given spell to a free spell slot. The used spell slot is returned, or a negative if it failed. +Dispatches the given spell to another spell slot. ;;;;; -<|page-title@lavender:book_components|title=Note: Collections|>Collections are fragments which contain other fragments and may be accessed using a specific key. -Lists are collections where the key is a whole number between zero and the size of the list, exclusive. -Maps are also collections, though their keys may be any value and aren't automatically determined by order of insertion. +If the caster doesn't support spell slots, this trick will blunder. +If there are no free spell slots, this trick will return void. +Otherwise, the index of the spell slot which was dispatched to is returned. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:fold,title=Folding Deviation|> +<|page-title@lavender:book_components|title=Note: Foldables|>{#aa4444}Foldables{} are fragments which contain other fragments and may be accessed using a specific key. +Lists are {#aa4444}Foldables{} where the key is a whole number between zero and the size of the list, exclusive. +Maps are also {#aa4444}Foldables{}, though their keys may be any value and aren't automatically determined by order of insertion. -spell, collection, any -> any +;;;;; ---- +<|trick@trickster:templates|trick-id=trickster:fold|> -For each entry in the collection, execute the given spell, with the given fragment as the first result. +For each entry in the {#aa4444}Foldable{}, execute the given spell, with the given fragment as the first result. ;;;;; @@ -96,50 +108,42 @@ Each iteration receives four arguments: --- -any, any, any, collection +{#aa4444}Any{}, {#aa4444}Any{}, {#aa4444}Any{}, {#aa4444}Foldable{} --- -Where the first argument is the result of the last iteration, the second is the current value, the third is its key, -and the fourth is the given collection. +These represent the following values, in order: + +- The result of the last iteration. +- The current value. +- The key of the current value. +- The full {#aa4444}Foldable{}. ;;;;; -The result of each execution is passed as the first argument to the next, where the last's result is the return of this trick. +The result of each execution is passed as the first argument to the next, where the last's result is the return value of this trick overall. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:try_catch,title=Cautious Deviation|> - -spell, spell, any... -> any +<|page-title@lavender:book_components|title=Note: Arguments|>Fragments can be passed into executed spell fragments as arguments. ---- -Attempts to execute the first spell. If it blunders, the second spell is run and the blunder is silenced. Excess values are arguments to both. +See the chapter on [arguments](^trickster:delusions_ingresses/arguments) for more information. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:atomic,title=Deviation of Singularity|> +<|trick@trickster:templates|trick-id=trickster:kill_thread|> -spell, any... -> any - ---- - -Executes the given spell in a single tick, blundering if it's not possible due to spell size or illegal operations. +Ends the spell running in the given spell slot or the current slot if none is provided. Returns whether it succeeded. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:kill_thread,title=Executioner's Deviation|> - -[number] -> boolean - ---- +<|trick@trickster:templates|trick-id=trickster:thread_root|> -Ends the spell running in the given spell slot or the current slot if not provided. Returns whether it succeeded. +Fetches the original spell that spawned the given spell slot, or the current slot if none is provided. ;;;;; -<|page-title@lavender:book_components|title=Note: Arguments|>Fragments can be passed into executed spell fragments as arguments. - +<|trick@trickster:templates|trick-id=trickster:spell_state|> -See the chapter on [arguments](^trickster:delusions_ingresses/arguments) for more information. +Returns the number of circles that were executed in the last tick in a given spell slot, or the current slot if none is provided. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/imports.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/imports.md index 03d5763d75cc..a4f7d6a24ba7 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/imports.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/imports.md @@ -19,21 +19,13 @@ or have other side effects. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:import,title=Assistance Deviation|> +<|trick@trickster:templates|trick-id=trickster:import|> -item, any... -> any - ---- - -Searches the caster's inventory for a specific item. -The first item found with an inscribed spell will be cast with the provided arguments. +Searches the caster's inventory for a specific item type. +The first item of this type found to have an inscribed spell will be cast with the provided arguments. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:import_hat,title=Cranium Deviation|> - -number, any... -> any - ---- +<|trick@trickster:templates|trick-id=trickster:import_hat|> -Grabs the spell from the specified slot in the caster's [Top Hat](^trickster:items/top_hat), casts it with the provided arguments, and returns the result. +Grabs the spell from the specified slot in the caster's [Hat](^trickster:items/top_hat), casts it with the provided arguments, and returns the result. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/transmog.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/transmog.md index 62ad18ce3700..690d55928b97 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/transmog.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tricks/transmog.md @@ -26,40 +26,24 @@ keeping all their attributes and other behaviour intact. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:transmog,title=Ploy of Transmogrification|> - -slot, item -> boolean - -<|cost-rule@trickster:templates|formula=20kG|> +<|trick@trickster:templates|trick-id=trickster:transmog|> Transmogrifies the item in the given slot to appear as the given item. Returns true if changes were made. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:hidden_transmog,title=Ploy of Subterfuge|> - -slot -> boolean - -<|cost-rule@trickster:templates|formula=30kG|> +<|trick@trickster:templates|trick-id=trickster:hidden_transmog|> Applies a void transmogrification to the item in the given slot. Returns true if changes were made. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:remove_transmog,title=Ploy of Origin|> - -slot -> boolean - -<|cost-rule@trickster:templates|formula=10kG|> +<|trick@trickster:templates|trick-id=trickster:remove_transmog|> Removes any transmogrification from the item in the given slot. Returns true if changes were made. ;;;;; -<|glyph@trickster:templates|trick-id=trickster:get_transmog,title=Ingress of Transmogrification|> - -slot -> item - ---- +<|trick@trickster:templates|trick-id=trickster:get_transmog|> Returns the transmogrification on the item in the given slot, or void if none is applied. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/1_getting_started.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/1_getting_started.md index a1fbfc8ea3df..d121638b1ae4 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/1_getting_started.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/1_getting_started.md @@ -48,4 +48,4 @@ which can then be embedded into other spells, written in scrolls. Aside from these essential items, a few other things may be worth gathering: - A [Wand](^trickster:items/wand) can be inscribed with any spell to directly cast it, as explained later. -- A [Top Hat](^trickster:items/top_hat) holds multiple scrolls in one item, and can serve as a form of memory for more advanced spells. +- A [Hat](^trickster:items/top_hat) holds multiple scrolls in one item, and can serve as a form of memory for more advanced spells. diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/2_mana_basics.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/2_mana_basics.md index 4954debecf29..f93365b142e6 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/2_mana_basics.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/2_mana_basics.md @@ -16,9 +16,6 @@ Amounts of Mana can be measured in Gandalfs, or G, named after a certain famous ;;;;; One Gandalf is defined as the amount of magical energy required to light a candle. -As such, many spell costs will be measured in kiloGandalfs, or kG, -since one Gandalf by itself is a very small amount. - Mana can be persistently stored in Knots, like the one below: diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/3_first_spell.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/3_first_spell.md index 3dc93a9f0d64..cef5bdb1a6ce 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/3_first_spell.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/3_first_spell.md @@ -1,115 +1,115 @@ -```json -{ - "title": "3. Your First Spell", - "icon": "minecraft:paper", - "ordinal": 2, - "category": "trickster:tutorials" -} -``` - -Now that you've got a [Scroll](^trickster:items/scroll_and_quill) you can right-click it to open the spell-scribing interface. -Spells consist of a tree-like structure of intersecting circles, and each circle contains a center glyph to denote its function. - -;;;;; - -When first opening a new scroll, you will see just one circle. This is the **root node**. -Every other circle in your spell originates from it. - - -To begin writing a spell, so-called scribing patterns or revisions can be used to add, remove, and move around circles. -The most basic scribing pattern is [Extensive Revision](^trickster:editing#1), -which adds one extra subcircle to the circle it's drawn in. - -;;;;; - -Unlike most patterns, revisions activate instantly when drawn at any point in either a scroll or mirror. -They are the only way to directly affect the shape of your spell. - - -Another scribing pattern that may be useful for basic spells is [Grafting Revision](^trickster:editing#12), -which removes excess circles from the hierarchy. - - -With that out of the way, try to recreate the following spell in your scroll: - -;;;;; - -<|spell-preview-unloadable@trickster:templates|spell=YwyT9+YP6GBjZQQxGFwOMIAZHCEMDAwA8vUGkRwAAAA=|> - -{gray}(Drag to pan and scroll to zoom){} - -;;;;; - -Once that's done, hold the scroll in your offhand, and draw the following spell in your mirror: - -<|spell-preview-unloadable@trickster:templates|spell=YwyT9+bf6MPEyghiMLo0tTIAADybrxgTAAAA|> - -;;;;; - -You may notice that, while drawing, the top pattern gets replaced with the spell from your scroll. - - -Afterward, if you did everything correctly, the spell should have targeted and broken the block you were looking at! -This is the most basic way of spellcasting, write the spell in a scroll, and cast it using your mirror. - - -**But why did this work?** - -;;;;; - -When a spell is cast, drawn glyphs will take the output from connected subcircles as input, -perform an operation, and output to their parent circle. - - -Think of a spell like a tree with many splitting branches. -First, the leaves of the tree (the most deeply nested circles) create or read values from the world. -These can be constants or, for example, a reference to the caster. -These are called [Delusions](^trickster:delusions_ingresses). - -;;;;; - -After this, intermediate glyphs process the information into an appropriate format, -for example taking a reference to a creature, and returning its position. -These are either [Distortions](^trickster:distortions) or [Ingresses](^trickster:delusions_ingresses). - - -Some glyphs may not return a value, often called [Ploys](^trickster:ploys). -These glyphs will affect the world, which is usually the end goal of the entire spell. - -;;;;; - -With this information in mind, we can take a look back at the spell in our scroll, -and recognise three types of glyphs (also known as tricks). - - -The most deeply nested glyph must be a Delusion, as it takes no inputs. -Meanwhile, the glyph in the root node has to be a Ploy, since it only takes inputs, and provides no output. -Which means the intermediate circle must contain either a Distortion or an Ingress. - -;;;;; - -If you were to look up these patterns in the [Tricks](^trickster:tricks) section of this book, -you'd see this assessment is correct. From smallest to largest circle, this spell is made up of: - -- [Reflection Delusion](^trickster:delusions_ingresses/caster_tricks#4) -- [Archer's Ingress](^trickster:delusions_ingresses/raycast#2) -- and [Ploy of Destruction](^trickster:ploys/block#2) - -Take a look at the inputs and outputs listed for these tricks, and try to understand how this spell combines them! - -;;;;; - -**Okay, but how did we cast it?** - - -Well, we took advantage of the mirror's tendency to cast anything it touches. -The patterns we drew in the mirror are [Notulist's Delusion](^trickster:tricks/basic#3) and [Grand Stratagem](^trickster:distortions/functions#3). -The former returns any spell held in the caster's offhand as data, while the latter takes a spell as data and casts it. - - -Yes, spells can cast other spells. - -;;;;; - -This chapter covered the basic concepts you need to know to start making simple spells of your own. -Go experiment, and see what's possible! +```json +{ + "title": "3. Your First Spell", + "icon": "minecraft:paper", + "ordinal": 2, + "category": "trickster:tutorials" +} +``` + +Now that you've got a [Scroll](^trickster:items/scroll_and_quill) you can right-click it to open the spell-scribing interface. +Spells consist of a tree-like structure of intersecting circles, and each circle contains a center glyph to denote its function. + +;;;;; + +When first opening a new scroll, you will see just one circle. This is the **root node**. +Every other circle in your spell originates from it. + + +To begin writing a spell, so-called scribing patterns or revisions can be used to add, remove, and move around circles. +The most basic scribing pattern is [Extensive Revision](^trickster:editing#1), +which adds one extra subcircle to the circle it's drawn in. + +;;;;; + +Unlike most patterns, revisions activate instantly when drawn at any point in either a scroll or mirror. +They are the only way to directly affect the shape of your spell. + + +Another scribing pattern that may be useful for basic spells is [Grafting Revision](^trickster:editing#12), +which removes excess circles from the hierarchy. + + +With that out of the way, try to recreate the following spell in your scroll: + +;;;;; + +<|spell-preview-unloadable@trickster:templates|spell=YwyT9+YP6GBjZQQxGFwOMIAZHCEMDAwA8vUGkRwAAAA=|> + +{gray}(Drag to pan and scroll to zoom){} + +;;;;; + +Once that's done, hold the scroll in your offhand, and draw the following spell in your mirror: + +<|spell-preview-unloadable@trickster:templates|spell=YwyT9+bf6MPEyghiMLo0tTIAADybrxgTAAAA|> + +;;;;; + +You may notice that, while drawing, the top pattern gets replaced with the spell from your scroll. + + +Afterward, if you did everything correctly, the spell should have targeted and broken the block you were looking at! +This is the most basic way of spellcasting, write the spell in a scroll, and cast it using your mirror. + + +**But why did this work?** + +;;;;; + +When a spell is cast, drawn glyphs will take the output from connected subcircles as input, +perform an operation, and output to their parent circle. + + +Think of a spell like a tree with many splitting branches. +First, the leaves of the tree (the most deeply nested circles) create or read values from the world. +These can be constants or, for example, a reference to the caster. +These are called [Delusions](^trickster:delusions_ingresses). + +;;;;; + +After this, intermediate glyphs process the information into an appropriate format, +for example taking a reference to a creature, and returning its position. +These are either [Distortions](^trickster:distortions) or [Ingresses](^trickster:delusions_ingresses). + + +Some glyphs may not return a value, often called [Ploys](^trickster:ploys). +These glyphs will affect the world, which is usually the end goal of the entire spell. + +;;;;; + +With this information in mind, we can take a look back at the spell in our scroll, +and recognise three types of glyphs (also known as tricks). + + +The most deeply nested glyph must be a Delusion, as it takes no inputs. +Meanwhile, the glyph in the root node has to be a Ploy, since it only takes inputs, and provides no output. +Which means the intermediate circle must contain either a Distortion or an Ingress. + +;;;;; + +If you were to look up these patterns in the [Tricks](^trickster:tricks) section of this book, +you'd see this assessment is correct. From smallest to largest circle, this spell is made up of: + +- [Reflection Delusion](^trickster:delusions_ingresses/caster_tricks#4) +- [Archer's Ingress](^trickster:delusions_ingresses/raycast#2) +- and [Ploy of Destruction](^trickster:ploys/block#2) + +Take a look at the inputs and outputs listed for these tricks, and try to understand how this spell combines them! + +;;;;; + +**Okay, but how did we cast it?** + + +Well, we took advantage of the mirror's tendency to cast anything it touches. +The patterns we drew in the mirror are [Notulist's Delusion](^trickster:tricks/basic#3) and [Grand Stratagem](^trickster:distortions/functions#3). +The former returns any spell held in the caster's offhand as data, while the latter takes a spell as data and casts it. + + +Yes, spells can cast other spells. + +;;;;; + +This chapter covered the basic concepts you need to know to start making simple spells of your own. +Go experiment, and see what's possible! diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/4_easier_casting.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/4_easier_casting.md index 657a417a5b3e..de6d2b2dff16 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/4_easier_casting.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/4_easier_casting.md @@ -1,63 +1,63 @@ -```json -{ - "title": "4. Easier Casting", - "icon": "minecraft:paper", - "ordinal": 3, - "category": "trickster:tutorials" -} -``` - -It's worth noting that casting spells through the Mirror of Evaluation has a few drawbacks. -Most obviously, it's a massive hassle drawing those two patterns every time. -Potentially more importantly though, any spell cast -happening through the mirror can only execute at most *64 circles*. -That really isn't a lot! - -;;;;; - -This is where [Wands](^trickster:items/wand) come in. -As briefly mentioned in the first chapter, -wands execute any spell inscribed onto them when right-clicked. - - -What's inscribing you may ask? Actually, you've already partially interacted with it. -[Notulist's Delusion](^trickster:tricks/basic#3), used in chapter two, is used to read an inscribed spell from an item. -This works on Scrolls because a spell written on them technically counts as being inscribed. - -;;;;; - -Spells can actually be inscribed onto *any* item, -though only Scrolls and Mirrors let you directly edit them. - - -Writing a spell to an item can be done by using [Notulist's Ploy](^trickster:tricks/basic#4). -Similarly to [Grand Stratagem](^trickster:distortions/functions#3), it only takes one input, and provides no output. - - -You can use a spell like the following in a mirror to read and inscribe a spell. - -;;;;; - -First draw the small pattern while holding your spell, -then swap to the item you want to inscribe, and draw the other pattern. -<|spell-preview-unloadable@trickster:templates|spell=YwyT9+bf6MPEwAhiMLo0tTIAAH43+GkTAAAA|> - -;;;;; - -Inscribing a spell onto a Wand will give it an enchanted glint, -and show the inscribed spell in its tooltip. - - -When you use your new Wand, -a [Spell Slot](^trickster:concepts/multi_tick) is consumed while the spell runs, -allowing the spell to run for as long as needed to complete. - - -Combining all this, try inscribing the following spell onto a Wand: - -;;;;; - -<|spell-preview@trickster:templates|spell=YwyT9+ZnYDjAwwhiMDI4dDKBRVwOMIBFOEIYGBhADCEUEQDelYOZNwAAAA==|> - -Once you have it inscribed, try it out to see what it does. -After that, try looking up the tricks to see *how*! +```json +{ + "title": "4. Easier Casting", + "icon": "minecraft:paper", + "ordinal": 3, + "category": "trickster:tutorials" +} +``` + +It's worth noting that casting spells through the Mirror of Evaluation has a few drawbacks. +Most obviously, it's a massive hassle drawing those two patterns every time. +Potentially more importantly though, any spell cast +happening through the mirror can only execute at most *64 circles*. +That really isn't a lot! + +;;;;; + +This is where [Wands](^trickster:items/wand) come in. +As briefly mentioned in the first chapter, +wands execute any spell inscribed onto them when right-clicked. + + +What's inscribing you may ask? Actually, you've already partially interacted with it. +[Notulist's Delusion](^trickster:tricks/basic#3), used in chapter two, is used to read an inscribed spell from an item. +This works on Scrolls because a spell written on them technically counts as being inscribed. + +;;;;; + +Spells can actually be inscribed onto *any* item, +though only Scrolls and Mirrors let you directly edit them. + + +Writing a spell to an item can be done by using [Notulist's Ploy](^trickster:tricks/basic#4). +Similarly to [Grand Stratagem](^trickster:distortions/functions#3), it only takes one input, and provides no output. + + +You can use a spell like the following in a mirror to read and inscribe a spell. + +;;;;; + +First draw the small pattern while holding your spell, +then swap to the item you want to inscribe, and draw the other pattern. +<|spell-preview-unloadable@trickster:templates|spell=YwyT9+bf6MPEwAhiMLo0tTIAAH43+GkTAAAA|> + +;;;;; + +Inscribing a spell onto a Wand will give it an enchanted glint, +and show the inscribed spell in its tooltip. + + +When you use your new Wand, +a [Spell Slot](^trickster:concepts/multi_tick) is consumed while the spell runs, +allowing the spell to run for as long as needed to complete. + + +Combining all this, try inscribing the following spell onto a Wand: + +;;;;; + +<|spell-preview@trickster:templates|spell=YwyT9+ZnYDjAwwhiMDI4dDKBRVwOMIBFOEIYGBhADCEUEQDelYOZNwAAAA==|> + +Once you have it inscribed, try it out to see what it does. +After that, try looking up the tricks to see *how*! diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/5_spell_structure.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/5_spell_structure.md index f3c7a81489e2..cdb7332e6824 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/5_spell_structure.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/5_spell_structure.md @@ -1,64 +1,64 @@ -```json -{ - "title": "5. Spell Structure", - "icon": "minecraft:paper", - "ordinal": 4, - "category": "trickster:tutorials" -} -``` - -While chapter two covered the basics of spell-scribing, -there are a few important elements it doesn't mention. - - -Most importantly, some tricks may take multiple inputs, -as seen in the example spell in the last chapter. -Unlike there though, tricks sometimes also require inputs -to be of specific types, in a specific order. - -;;;;; - -The inputs a trick takes, in addition to the output it provides, -are called its **Signature**. -These signatures are used all across this book -whenever a pattern for a trick is shown. - - -If you're having trouble understanding the format used for signatures, -check out [the entry explaining them in more detail](^trickster:concepts/signatures)! - - -**But how do we know which circle comes first?** - -;;;;; - -<|spell-preview-unloadable@trickster:templates|spell=YwyT9+ZnAAIW9/lWJxhgAMSx/4DEcUCWceCAcgC7HdBfPgAAAA==|> - -Take a look at the spell above. -Its subcircles are labelled with the order they're cast, from 0 to 3. - -;;;;; - -This is the same order they'll be inputted into the parent circle in. -How do we know this? -That's what the **Divider Pin** is for. - - -All circles with at least one subcircle will have a transparent blue -Divider Pin somewhere on their ring. -Starting from this pin, subcircles are cast in a clockwise fashion, -and may be numbered starting from zero. - - -See if you can spot the pin on this spell! - -;;;;; - -One last thing! -Aside from [Extensive Revision](^trickster:editing#1) and [Grafting Revision](^trickster:editing#12), -a lot of additional scribing patterns are also available, -ranging from simple conveniences to actual gamechangers. - - -If you haven't already, be sure to check out the [Spell-Scribing](^trickster:editing) +```json +{ + "title": "5. Spell Structure", + "icon": "minecraft:paper", + "ordinal": 4, + "category": "trickster:tutorials" +} +``` + +While chapter two covered the basics of spell-scribing, +there are a few important elements it doesn't mention. + + +Most importantly, some tricks may take multiple inputs, +as seen in the example spell in the last chapter. +Unlike there though, tricks sometimes also require inputs +to be of specific types, in a specific order. + +;;;;; + +The inputs a trick takes, in addition to the output it provides, +are called its **Signature**. +These signatures are used all across this book +whenever a pattern for a trick is shown. + + +If you're having trouble understanding the format used for signatures, +check out [the entry explaining them in more detail](^trickster:concepts/signatures)! + + +**But how do we know which circle comes first?** + +;;;;; + +<|spell-preview-unloadable@trickster:templates|spell=YwyT9+ZnAAIW9/lWJxhgAMSx/4DEcUCWceCAcgC7HdBfPgAAAA==|> + +Take a look at the spell above. +Its subcircles are labelled with the order they're cast, from 0 to 3. + +;;;;; + +This is the same order they'll be inputted into the parent circle in. +How do we know this? +That's what the **Divider Pin** is for. + + +All circles with at least one subcircle will have a transparent blue +Divider Pin somewhere on their ring. +Starting from this pin, subcircles are cast in a clockwise fashion, +and may be numbered starting from zero. + + +See if you can spot the pin on this spell! + +;;;;; + +One last thing! +Aside from [Extensive Revision](^trickster:editing#1) and [Grafting Revision](^trickster:editing#12), +a lot of additional scribing patterns are also available, +ranging from simple conveniences to actual gamechangers. + + +If you haven't already, be sure to check out the [Spell-Scribing](^trickster:editing) chapter in its entirety! \ No newline at end of file diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/6_functions.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/6_functions.md index 7e0b03394a48..45e3d7db076f 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/6_functions.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/6_functions.md @@ -1,10 +1,10 @@ -```json -{ - "title": "7. Spell Fragments", - "icon": "minecraft:paper", - "ordinal": 6, - "category": "trickster:tutorials" -} -``` - -Coming soon! +```json +{ + "title": "7. Spell Fragments", + "icon": "minecraft:paper", + "ordinal": 6, + "category": "trickster:tutorials" +} +``` + +Coming soon! diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/7_recursion.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/7_recursion.md index 902785926a67..a4bee4c21415 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/7_recursion.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/tutorials/7_recursion.md @@ -1,10 +1,10 @@ -```json -{ - "title": "6. Recursion", - "icon": "minecraft:paper", - "ordinal": 5, - "category": "trickster:tutorials" -} -``` - -Coming soon! +```json +{ + "title": "6. Recursion", + "icon": "minecraft:paper", + "ordinal": 5, + "category": "trickster:tutorials" +} +``` + +Coming soon! diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/fragment_decay.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/fragment_decay.md new file mode 100644 index 000000000000..fabd49b59fce --- /dev/null +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/fragment_decay.md @@ -0,0 +1,23 @@ +```json +{ + "title": "片段衰退", + "icon": "minecraft:glow_lichen", + "category": "trickster:concepts" +} +``` + +{#338888}实体{}等某些类型的片段与其目标间的联系较弱。虽然在处理和使用的方法上,这些片段和其他片段通常没有区别,但它们受到的限制实际上比其他类型多。 + +;;;;; + +这些所谓“瞬息万变”的片段一旦被抄写、或作为交流消息收发、或通过其他任意方式在法术间转移,就有可能衰退成一类特殊的片段,也即{#444444}##Zalgo##{}。 + + +变化得到的{#444444}##Zalgo##{}片段无法再用到原本的地方去,不过它们也确实有些特殊的性质,也许能在其他情况下派得上用场。 + +;;;;; + +首先,{#444444}##Zalgo##{}片段永远不会等于其他片段,甚至不等于它自己。 + + +此外,将{#444444}##Zalgo##{}片段传入[衰退之曲变](^trickster:distortions/misc#3)似乎会产出完全随机但独一无二的结果,而且每一次都是这样。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/macro.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/macro.md index 409b478c9997..5deaceaca1f7 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/macro.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/macro.md @@ -1,26 +1,26 @@ -```json -{ - "title": "宏", - "icon": "trickster:macro_ring", - "category": "trickster:concepts" -} -``` - -宏可用来新造修订术,以协助法术抄绘。 - - -宏是图案到法术的[映射](^trickster:distortions/map)。将此类映射抄入任意戒指并佩戴;后续在编写法术时,就会检索其中有无键与绘制的图案一致。 - -;;;;; - -如果没有其他戒指,有简易的[宏戒指](^trickster:items/ring)可供使用。 - - -如果找到了对应的宏键,即会执行对应的法术,并传入绘制处圆的副本作为唯一参数。该法术应当返回一个新法术片段,用以替代传入的片段。 - - -每一位戏法师都能借此制造他们自己的修订术。 - -;;;;; - -注意:宏法术无法[长时施法](^trickster:concepts/multi_tick)。也即,它们不会占用法术槽,因此无法包含超过64个圆。 +```json +{ + "title": "宏", + "icon": "trickster:macro_ring", + "category": "trickster:concepts" +} +``` + +宏可用来新造修订术,以协助法术抄绘。 + + +宏是图案到法术的[映射](^trickster:distortions/map)。将此类映射抄入任意戒指并佩戴;后续在编写法术时,就会检索其中有没有和所绘制图案一致的键。 + +;;;;; + +如果没有其他戒指,有简易的[宏戒指](^trickster:items/ring)可供使用。 + + +所绘制图案若与某个宏键对应,绘制后即会执行对应的法术,并传入绘制处圆的副本作为唯一参数。该法术应当返回一个新法术片段,用以替代传入的片段。 + + +每一位戏法师都能借此制造他们自己的修订术。 + +;;;;; + +注意:宏法术无法[长时施法](^trickster:concepts/multi_tick)。也即,它们不会占用法术槽,因此无法包含超过64个圆。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/mana.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/mana.md index 51fa583dd682..e959eb9e3cb4 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/mana.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/mana.md @@ -1,26 +1,26 @@ -```json -{ - "title": "魔力", - "icon": "minecraft:glow_ink_sac", - "category": "trickster:concepts" -} -``` - -魔力是技巧术的动力,也是操纵世界的代价。 - - -依照传统,为纪念一位著名巫师,魔力量的单位为甘道夫(Gandalf),简称为“甘”,符号为“G”。此单位的定义为:点亮一根蜡烛需要1甘的魔法能量。 - -;;;;; - -少于1千甘道夫(或“千甘”和“kG”)的魔力量通常可以忽略不计。 - - -消耗速率,或者魔力的变化率,使用梅林(Merlin)作为单位,简称为“梅”,符号为“M”。此单位的定义为甘道夫每刻;其中,刻是有意义时间的最小单位,相当于1/20秒。 - - -比如,50梅的法术每秒即消耗1千甘。 - -;;;;; - -魔力可持久存储于晶结中。更多有关信息参见[此条目](^trickster:items/knots)。 \ No newline at end of file +```json +{ + "title": "魔力", + "icon": "minecraft:glow_ink_sac", + "category": "trickster:concepts" +} +``` + +魔力是技巧术的动力,也是操纵世界的代价。 + + +依照传统,魔力量的单位为甘道夫(Gandalf),简称为“甘”,符号为“G”。此单位的定义为:点亮一根蜡烛需要1甘的魔法能量。 + +;;;;; + +少于1甘道夫的魔力量通常可以忽略不计。 + + +消耗速率,或者魔力的变化率,使用梅林(Merlin)作为单位,简称为“梅”,符号为“M”。此单位的定义为甘道夫每刻;其中,刻是有意义时间的最小单位,相当于1/20秒。 + + +比如,50毫梅的法术每秒消耗1甘的魔力。 + +;;;;; + +魔力可持久存储于晶结中。更多有关信息参见[此条目](^trickster:items/knots)。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/multi_tick.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/multi_tick.md index 0f84326260bb..df2e7c5e3ef0 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/multi_tick.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/multi_tick.md @@ -1,33 +1,33 @@ -```json -{ - "title": "长时法术", - "icon": "minecraft:clock", - "category": "trickster:concepts" -} -``` - -不是所有法术都能立即执行完毕。除非通过手镜施放,足够大的法术每秒只能执行一定数量的圆。只要施法者不死亡,法术本身不产生失策,并且仍有待执行的圆,这类法术甚至可以永远执行下去。 - -;;;;; - -为施放能够长时运行的法术,需要先留出一个法术槽;就算1/20秒内能执行结束也不可省去这一步骤。 - - -若法术槽均被占用,则除手镜外的施放方式不可用。法术槽可在施法者物品栏中查看。 - -;;;;; - -法术槽有如下几个状态: - -- 不活跃(缩回) -- 不活跃且出现失策(红色) -- 活跃且状态正常(绿色) -- 活跃且达到最大执行速度(橙色) -- 活跃但在等待(白色) - -;;;;; - -执行法术片段的图案会在其所处法术中创造子法术,计作1层。法术中不可存在超出255层深的子法术,若有即产生失策。 - - +```json +{ + "title": "长时法术", + "icon": "minecraft:clock", + "category": "trickster:concepts" +} +``` + +不是所有法术都能立即执行完毕。除非通过手镜施放,足够大的法术每秒只能执行一定数量的圆。只要施法者不死亡,法术本身不产生失策,并且仍有待执行的圆,这类法术甚至可以永远执行下去。 + +;;;;; + +为施放能够长时运行的法术,需要先留出一个法术槽;就算1/20秒内能执行结束也不可省去这一步骤。 + + +法术槽全部被占用的情况下,手镜是唯一的施法方式。法术槽可在施法者物品栏中查看。 + +;;;;; + +法术槽有如下几个状态: + +- 不活跃(缩回) +- 不活跃且出现失策(红色) +- 活跃且状态正常(绿色) +- 活跃且达到最大执行速度(橙色) +- 活跃但在等待(白色) + +;;;;; + +执行法术片段的图案会在其所处法术中创造子法术,计作1层。法术中不可存在超出255层深的子法术,若有即产生失策。 + + 如果子法术的创建位于当前法术*实质上*的最后一个图案,**此限制无效**。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/signatures.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/signatures.md index 4c0cb2d8943d..f408e4372681 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/signatures.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/signatures.md @@ -1,9 +1,66 @@ -```json -{ - "title": "戏法签名", - "icon": "minecraft:writable_book", - "category": "trickster:concepts" -} -``` - -即将到来!碰到困难可以来Discord寻求帮助! +```json +{ + "title": "戏法签名", + "icon": "minecraft:writable_book", + "category": "trickster:concepts" +} +``` + +本书的戏法章节中记述了法术能执行的所有操作,且给出了使用这些操作时需注意的细节,其中就包括了戏法签名。 + + +签名是对戏法输入输出的标准化简短描述。 + +;;;;; + +这里给出一则示例: + + +{#aa7711}向量{}, {#ddaa00}数{} -> {#aa3355}布尔值{} + + +它代表戏法接受一个{#aa7711}向量{}作为第一参数,且接受一个{#ddaa00}数{}作为第二参数。参数从圆上分隔销开始顺时针排序。 + + +该戏法还会传出一个{#aa3355}布尔值{}作为输出,可供其父圆使用。 + +;;;;; + +除去分隔参数所用的逗号(,),以及区分输入输出所用的箭头(->)外,签名中还可能出现其他几种符号,具体见后文。 + + +{#ddaa00}数?{} -> {#aa4444}任意{} + + +参数后出现问号(?)表示该参数可选,可以不传入参数,也可以传入void。 + +;;;;; + +{#ddaa00}数{} | {#aa7711}向量{} -> {#aa4444}任意{} | {#4400aa}空类型{} + + +签名中经常会出现由管道符(|)分隔开的两个参数,返回类型也可能使用该符号分隔。 + + +对于参数而言,该符号代表其所处位置两种类型都接受。在返回值中,则代表法术会视情况返回两种类型中的一种。 + +;;;;; + +[{#aa4444}任意{}], {#ddaa00}数{} -> [{#aa3355}布尔值{}] + + +某些输入和输出会被方括号([])括起,这代表法术需接受或会返回仅由该类型片段组成的列表。 + +;;;;; + +{{#aa4444}任意{}: {#aa3355}布尔值{}}, {#aa4444}任意{} -> {#aa3355}布尔值{} + + +签名中还可能出现两种类型被花括号({})括起,且中间使用冒号(:)分隔的情况。这代表键为第一类型、值为第二类型的映射。 + +;;;;; + +{#aa44aa}法术{}, {#aa4444}任意{}... -> {#aa4444}任意{} + + +某些情况下,类型后方会跟随三个点(...)。这代表法术会接受在该参数后方、同为该类型的*任意多个参数*。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/trace.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/trace.md index 7474679bf6b2..e7fd17995450 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/trace.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/trace.md @@ -1,21 +1,28 @@ -```json -{ - "title": "栈追踪", - "icon": "minecraft:tripwire_hook", - "category": "trickster:concepts" -} -``` - -法术中产生的故障称作“失策”。失策的法术会打印栈追踪,以标明故障出现的*位置*。栈追踪是由冒号分隔的字符列表,各段可分为三类: - -- #(井号) -- \>(角括号、尖括号) -- 任意数 - -;;;;; - -其中,数是输入的索引,尖括号和井号则表示上下文切换到了另一个法术片段中去。尖括号指新片段由当前法术提供,井号指片段来自其他地方。 - -;;;;; - +```json +{ + "title": "栈追踪", + "icon": "minecraft:tripwire_hook", + "category": "trickster:concepts" +} +``` + +法术中产生的故障称作“失策”。失策的法术会打印栈追踪,以标明故障出现的*位置*。栈追踪是由冒号分隔的字符列表,字符可分为四类: + +- #(井号) +- \>(角括号、尖括号) +- &(和号) +- 任意数 + +;;;;; + +其中,数是输入的索引,尖括号、井号、和号则表示上下文切换到了另一个法术片段中去。 + + +尖括号指新片段由当前法术提供,井号指片段来自其他地方。 + + +和号则代表一次无限递归,不论产生的原因如何。 + +;;;;; + <|page-title@lavender:book_components|title=笔记:索引|>法术中的所有圆都有其对应的数,即*索引*。此数用于说明圆相对其父圆的位置。父圆上的紫色销永远位于第一子圆的逆时针方向,第一子圆的索引为0。后续所有子圆的索引都比前一子圆多1。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/tricks_explanation.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/tricks_explanation.md index eb3ab83d1ae5..bd6a8b1f4651 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/tricks_explanation.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/tricks_explanation.md @@ -1,22 +1,22 @@ -```json -{ - "title": "戏法的分类", - "icon": "minecraft:oak_leaves", - "category": "trickster:concepts" -} -``` - -所有的戏法均可分到如下类别中: - -- 错觉术:完全根据上下文收集信息的戏法 -- 辑流术:根据输入收集信息的戏法 -- 曲变术:输入数目固定的纯戏法 -- 谋略术:输入数目不固定的纯戏法 - -;;;;; - -- 技巧术:仅影响世界、或仅消耗魔力、或二者兼有的戏法 -- 转离术:会修改法术自身状态的戏法 -- 修订术:抄绘图案 - -这些分类并不十分严谨;在许多情况下,戏法更常由其意图分类,而非完全采用严格定义。 +```json +{ + "title": "戏法的分类", + "icon": "minecraft:oak_leaves", + "category": "trickster:concepts" +} +``` + +所有的戏法均可分到如下类别中: + +- 错觉术:完全根据上下文收集信息的戏法 +- 辑流术:根据输入收集信息的戏法 +- 曲变术:输入数目固定的纯戏法 +- 谋略术:输入数目不固定的纯戏法 + +;;;;; + +- 技巧术:仅影响世界、或仅消耗魔力、或二者兼有的戏法 +- 转离术:会修改法术自身状态的戏法 +- 修订术:抄绘图案 + +这些分类并不十分严谨;在许多情况下,戏法更常由其意图分类,而非完全采用严格定义。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/trigger_items.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/trigger_items.md index a8e135fcb52b..6361156648cb 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/trigger_items.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/trigger_items.md @@ -1,21 +1,21 @@ -```json -{ - "title": "反应触发物品", - "icon": "minecraft:diamond_sword", - "category": "trickster:concepts" -} -``` - -尽管[魔杖](^trickster:items/wand)是快速施法最常用、最泛用的手段,它也并非是唯一的选择。其他物品会在达成特定要求时施放抄入的法术。物品的种类及其具体要求见后页。 - -;;;;; - -<|page-title@lavender:book_components|title=战士之怒|>抄入工具和近战武器后,战士之怒会在其对实体造成伤害时执行法术。所攻击的实体传入为第一参数。 - -;;;;; - -<|page-title@lavender:book_components|title=勘探工之喜|>在破坏方块之前,抄入手持工具的勘探工之喜即会开始执行法术。所破坏方块的位置传入为第一参数。 - -;;;;; - -<|page-title@lavender:book_components|title=表演家之赦|>在摔落到方块上的前一瞬,表演家之赦即会触发足部装备中抄有的法术。穿戴者摔落过的距离传入为第一参数。倘若落到水中接受了缓冲,表演家便不会前来赦免痛苦。 +```json +{ + "title": "反应触发物品", + "icon": "minecraft:diamond_sword", + "category": "trickster:concepts" +} +``` + +尽管[魔杖](^trickster:items/wand)是快速施法最常用、最泛用的手段,它也并非是唯一的选择。其他物品会在达成特定要求时施放抄入的法术。物品的种类及其具体要求见后页。 + +;;;;; + +<|page-title@lavender:book_components|title=战士之怒|>抄入工具和近战武器后,战士之怒会在其对实体造成伤害时执行法术。所攻击的实体作为第一参数传入。 + +;;;;; + +<|page-title@lavender:book_components|title=勘探工之喜|>在破坏方块之前,抄入手持工具的勘探工之喜即会开始执行法术。所破坏方块的位置作为第一参数传入。 + +;;;;; + +<|page-title@lavender:book_components|title=表演家之赦|>在摔落到方块上的前一瞬,表演家之赦即会触发足部装备中抄有的法术。穿戴者摔落过的距离作为第一参数传入。倘若落到水中接受了缓冲,表演家便不会前来赦免痛苦。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/ward.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/ward.md index a4bc783ed9db..41487c49966c 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/ward.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/concepts/ward.md @@ -1,17 +1,17 @@ -```json -{ - "title": "戒守", - "icon": "minecraft:shield", - "category": "trickster:concepts" -} -``` - -戒守是一类防御性法术,成为技巧术的目标时即会施放。它们需接受施法者作为输入,还需传入一个参数列表,以送至触发戒守的符记。戒守法术的签名应与下述一致: - ---- - -entity | vector, any[] -> - -;;;;; - -目标佩戴的所有护符中抄有的映射全部结合,所得的映射作为戒守总集,映射中的键即为能触发戒守的符记。进入活跃状态的戒守需要占用一个空法术槽,且会在触发戒守的符记施放之前就抢先施放。 +```json +{ + "title": "戒守", + "icon": "minecraft:shield", + "category": "trickster:concepts" +} +``` + +戒守是一类防御性法术,会在戒守所有者成为技巧术的目标时施放。它们需接受施法者作为输入,还需接受一个参数列表送至触发戒守的符记。戒守法术的签名应与下述一致: + +--- + +{#338888}实体{} | {#aa7711}向量{}, [{#aa4444}任意{}] -> + +;;;;; + +将所有已佩戴护符中抄入的映射合并,得到的映射即是戒守总集,映射中的键就是能触发戒守的符记。进入活跃状态的戒守需要占用一个空法术槽,且会在触发戒守的符记施放之前抢先施放。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/constants.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/constants.md index 687ad6beb414..4bba029e7549 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/constants.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/constants.md @@ -1,38 +1,38 @@ -```json -{ - "title": "常量", - "icon": "minecraft:bedrock" -} -``` - -本节的抄绘图案能将绘制处的符记变为字面量。 - -;;;;; - -<|pattern@trickster:templates|pattern=1\,4\,7,title=基础之修订|> - -{gray}(抄绘图案){} - ---- - -将符记换为数“2”。 - -;;;;; - -<|pattern@trickster:templates|pattern=6\,3\,0\,2\,5\,8,title=目录之修订|> - -{gray}(抄绘图案){} - ---- - -将符记换为空列表。 - -;;;;; - -<|pattern@trickster:templates|pattern=2\,5\,8\,6\,3\,0,title=图册之修订|> - -{gray}(抄绘图案){} - ---- - -将符记换为空映射。 +```json +{ + "title": "常量", + "icon": "minecraft:bedrock" +} +``` + +本节的抄绘图案能将绘制处的符记变为字面量。 + +;;;;; + +<|pattern@trickster:templates|pattern=1\,4\,7,title=基础之修订|> + +{gray}(抄绘图案){} + +--- + +将符记换为数“2”。 + +;;;;; + +<|pattern@trickster:templates|pattern=6\,3\,0\,2\,5\,8,title=目录之修订|> + +{gray}(抄绘图案){} + +--- + +将符记换为空列表。 + +;;;;; + +<|pattern@trickster:templates|pattern=2\,5\,8\,6\,3\,0,title=图册之修订|> + +{gray}(抄绘图案){} + +--- + +将符记换为空映射。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/arguments.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/arguments.md index 4cf49e152c3b..868a936f35f3 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/arguments.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/arguments.md @@ -1,113 +1,77 @@ -```json -{ - "title": "参数", - "icon": "minecraft:map", - "category": "trickster:delusions_ingresses", - "additional_search_terms": [ - "囤积者之错觉", - "甲参之错觉", - "乙参之错觉", - "丙参之错觉", - "丁参之错觉", - "戊参之错觉", - "己参之错觉", - "庚参之错觉", - "辛参之错觉" - ] -} -``` - -法术片段可以作为参数传入[法术片段](^trickster:distortions/functions)。 - - -此类参数可在法术片段中直接通过特定图案获取,也可将所有参数组为列表获取。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_all_arguments,title=囤积者之错觉|> - --> any[] - ---- - -将所有参数组为列表返回。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:load_argument_1,title=甲参之错觉|> - --> any - ---- - -返回第一参数,需该参数存在。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:load_argument_2,title=乙参之错觉|> - --> any - ---- - -返回第二参数,需该参数存在。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:load_argument_3,title=丙参之错觉|> - --> any - ---- - -返回第三参数,需该参数存在。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:load_argument_4,title=丁参之错觉|> - --> any - ---- - -返回第四参数,需该参数存在。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:load_argument_5,title=戊参之错觉|> - --> any - ---- - -返回第五参数,需该参数存在。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:load_argument_6,title=己参之错觉|> - --> any - ---- - -返回第六参数,需该参数存在。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:load_argument_7,title=庚参之错觉|> - --> any - ---- - -返回第七参数,需该参数存在。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:load_argument_8,title=辛参之错觉|> - --> any - ---- - -返回第八参数,需该参数存在。 +```json +{ + "title": "参数", + "icon": "minecraft:map", + "category": "trickster:delusions_ingresses", + "additional_search_terms": [ + "囤积者之错觉", + "甲参之错觉", + "乙参之错觉", + "丙参之错觉", + "丁参之错觉", + "戊参之错觉", + "己参之错觉", + "庚参之错觉", + "辛参之错觉" + ] +} +``` + +法术片段可以作为参数传入大多数[转离术](^trickster:tricks/functions)。 + + +而后即可在法术中直接通过特定图案获取此类参数,也可获取所有参数组成的列表。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_all_arguments|> + +将所有参数组为列表返回。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:load_argument_1|> + +返回第一参数,参数不存在会导致失策。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:load_argument_2|> + +返回第二参数,参数不存在会导致失策。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:load_argument_3|> + +返回第三参数,参数不存在会导致失策。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:load_argument_4|> + +返回第四参数,参数不存在会导致失策。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:load_argument_5|> + +返回第五参数,参数不存在会导致失策。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:load_argument_6|> + +返回第六参数,参数不存在会导致失策。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:load_argument_7|> + +返回第七参数,参数不存在会导致失策。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:load_argument_8|> + +返回第八参数,参数不存在会导致失策。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/block.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/block.md index f43caf04da63..0a633df9cf48 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/block.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/block.md @@ -1,78 +1,56 @@ -```json -{ - "title": "方块查询", - "icon": "minecraft:white_wool", - "category": "trickster:delusions_ingresses", - "additional_search_terms": [ - "校验之辑流", - "硬度之辑流", - "适用之辑流", - "逻辑之辑流", - "谐振之辑流", - "光辉之辑流" - ] -} -``` - -本节的戏法能用于查询或检视世界中的方块。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:check_block,title=校验之辑流|> - -vector -> block - ---- - -返回所给位置处方块的类型。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_block_hardness,title=硬度之辑流|> - -vector -> number - ---- - -返回所给位置处方块的硬度。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:can_place_block,title=适用之辑流|> - -vector, [block] -> boolean - ---- - -检查所给位置能否放置所给方块。若未给定方块,检查该位置方块可否被替换。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_redstone_power,title=逻辑之辑流|> - -vector -> number - ---- - -返回所给位置处收到的红石信号强度。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:check_resonator,title=谐振之辑流|> - -vector -> number - ---- - -返回所给位置处[法术谐振器](^trickster:items/spell_resonator)的信号强度。 - - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:light_level,title=光辉之辑流|> - -vector, [boolean] -> number - ---- - -返回所给位置处的光照等级。可以再传入一个布尔值,用于规定光照的来源:true为天空光照,false为方块光照。 +```json +{ + "title": "方块查询", + "icon": "minecraft:white_wool", + "category": "trickster:delusions_ingresses", + "additional_search_terms": [ + "校验之辑流", + "硬度之辑流", + "适用之辑流", + "逻辑之辑流", + "谐振之辑流", + "光辉之辑流" + ] +} +``` + +本节的戏法可用于查询世界中的方块及其属性。 + + +如果无法观测到方块,这些戏法会产生失策。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:check_block|> + +返回所给位置处方块的类型。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_block_hardness|> + +返回所给位置处方块的硬度,或返回所给方块类型的硬度。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:can_place_block|> + +检查所给位置能否放置所给方块。若未给定方块,检查该位置方块在通常情况下可否被替换。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_redstone_power|> + +返回所给位置处收到的红石信号强度。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:check_resonator|> + +返回所给位置处[法术谐振器](^trickster:items/spell_resonator)的信号强度。该处没有谐振器会导致失策。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:light_level|> + +返回所给位置处的光照等级。可以再传入一个布尔值,用于规定光照的来源:true为天空光照,false为方块光照。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/caster_tricks.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/caster_tricks.md index b4b463d20626..da4ae63c5466 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/caster_tricks.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/caster_tricks.md @@ -1,110 +1,94 @@ -```json -{ - "title": "施法上下文", - "icon": "trickster:wand", - "category": "trickster:delusions_ingresses", - "additional_search_terms": [ - "定位之错觉", - "朝向之错觉", - "自审之错觉", - "维度之错觉", - "权威之错觉", - "加冕之错觉", - "序数之错觉", - "框选之错觉", - "宏之错觉" - ] -} -``` - -本节中的错觉术能获取施法实体和方块的上下文。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:reflection,title=定位之错觉|> - --> vector - ---- - -返回法术施放的位置。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:facing_reflection,title=朝向之错觉|> - --> vector - ---- - -若可行,将施法方块或实体的朝向返回为单位向量。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:caster_reflection,title=自审之错觉|> - --> entity - ---- - -返回施放法术的实体。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_dimension,title=维度之错觉|> - --> dimension - ---- - -返回法术施放的维度。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:mana_reflection,title=权威之错觉|> - --> number - ---- - -返回法术直接可用的魔力的量。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:max_mana_reflection,title=加冕之错觉|> - --> number - ---- - -返回法术最多*可能*可用的魔力的量。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:current_thread,title=序数之错觉|> - --> number | void - ---- - -返回运行此法术的法术槽;若不支持法术槽,返回void。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:hotbar_reflection,title=框选之错觉|> - --> number - ---- - -若可用,返回施法者所选中的快捷栏槽位。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:read_macro_ring,title=宏之错觉|> - --> {pattern: spell} - ---- - -获取并结合所佩戴所有戒指中的映射。 +```json +{ + "title": "施法上下文", + "icon": "trickster:wand", + "category": "trickster:delusions_ingresses", + "additional_search_terms": [ + "定位之错觉", + "朝向之错觉", + "自审之错觉", + "维度之错觉", + "权威之错觉", + "加冕之错觉", + "序数之错觉", + "框选之错觉", + "宏之错觉" + ] +} +``` + +*“在绝大多数情况下,法术的施放始于自我。* + + +*“无论施法者是人类,是组构台,还是与前两者完全不同的事物,自我都是我们认识世界的手段。因此,自我也是我们观察魔法的切入口。”* + + +——摘自黄水晶教授的讲座 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:reflection|> + +返回法术施放的位置。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:facing_reflection|> + +将施法者的朝向返回为单位向量。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:caster_reflection|> + +若可行,返回施放法术的实体。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:mana_reflection|> + +返回法术直接可用的魔力的量。 + +;;;;; + +这则错觉术会统计施法者持有和佩戴的所有魔力存储物品,如[晶结](^trickster:items/knots)和[螺坠](^trickster:items/amethyst_whorl)。 + + +若由[法术组构台](^trickster:items/spell_construct)施放,则只统计组构台中的晶结。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:max_mana_reflection|> + +返回施法对象最多能持有的魔力量,具体判断流程与前一则错觉术类似。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:current_thread|> + +返回运行此法术的法术槽;若不在法术槽中运行,则返回void。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:read_macro_ring|> + +获取施法者所佩戴所有戒指上的映射,将其合并为单个映射后返回。不是有效宏的键值对会被移除。 + +;;;;; + +此戏法的输出与判定宏用到的映射一致。 + + +更多细节参见[宏](^trickster:concepts/macro)页面。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:hotbar_reflection|> + +若可用,返回施法者选中的快捷栏槽位。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_dimension|> + +返回施法位置所处的维度。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/entity.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/entity.md index 11194c720424..90ad139226d6 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/entity.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/entity.md @@ -1,198 +1,136 @@ -```json -{ - "title": "实体查询", - "icon": "minecraft:cow_spawn_egg", - "category": "trickster:delusions_ingresses", - "additional_search_terms": [ - "动机验证之辑流", - "位置之辑流", - "视角之辑流", - "朝向之辑流", - "运动之辑流", - "身材之辑流", - "换立之辑流", - "炉灶之辑流", - "远足之辑流", - "盾护之辑流", - "活力之辑流", - "体健之辑流", - "垒墙之辑流", - "居形之辑流", - "观察者之辑流", - "食欲之辑流", - "饱足之辑流" - ] -} -``` - -各类能获取实体信息的戏法。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_entity_type,title=动机验证之辑流|> - -entity -> entity_type - ---- - -给定实体,返回其类型。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_position,title=位置之辑流|> - -entity -> vector - ---- - -给定实体,返回其在世界中的位置。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_eye_position,title=视角之辑流|> - -entity -> vector - ---- - -给定实体,返回其头部位置。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_facing,title=朝向之辑流|> - -entity -> vector - ---- - -给定实体,返回其朝向向量。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_velocity,title=运动之辑流|> - -entity -> vector - ---- - -给定实体,返回其当前的速度向量。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:height_reflection,title=身材之辑流|> - -entity -> number - ---- - -给定实体,返回其高度,以格为单位。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:sneaking_reflection,title=换立之辑流|> - -entity -> boolean - ---- - -给定实体,检查其是否在潜行。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:burning_reflection,title=炉灶之辑流|> - -entity -> boolean - ---- - -给定实体,检查其是否着火。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:sprinting_reflection,title=远足之辑流|> - -entity -> boolean - ---- - -给定实体,检查其是否在疾跑。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:blocking_reflection,title=盾护之辑流|> - -entity -> boolean - ---- - -给定实体,检查其是否在举盾防御。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_max_health,title=活力之辑流|> - -entity -> number - ---- - -给定实体,返回其最大生命值。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_health,title=体健之辑流|> - -entity -> number - ---- - -给定实体,返回其当前生命值。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_armour,title=垒墙之辑流|> - -entity -> number - ---- - -给定实体,返回其总护甲值。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_scale,title=居形之辑流|> - -entity -> number - ---- - -返回所给实体的尺寸。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_flecks,title=观察者之辑流|> - -[entity] -> number[] - ---- - -返回施法者或给定玩家可见所有视形的标识符。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_player_food,title=食欲之辑流|> - -entity -> number - ---- - -给定玩家,返回其当前饥饿值。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_player_saturation,title=饱足之辑流|> - -entity -> number - ---- - -给定玩家,返回其当前饱和度。 +```json +{ + "title": "实体查询", + "icon": "minecraft:cow_spawn_egg", + "category": "trickster:delusions_ingresses", + "additional_search_terms": [ + "动机验证之辑流", + "位置之辑流", + "视角之辑流", + "朝向之辑流", + "运动之辑流", + "身材之辑流", + "换立之辑流", + "炉灶之辑流", + "远足之辑流", + "盾护之辑流", + "活力之辑流", + "体健之辑流", + "垒墙之辑流", + "居形之辑流", + "观察者之辑流", + "食欲之辑流", + "饱足之辑流" + ] +} +``` + +这些戏法能提供世界中实体的信息。 + + +戏法无法观测到目标时会导致失策。 + + +务必注意,实体片段可能会[衰退](^trickster:concepts/fragment_decay)。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_entity_type|> + +给定实体,返回其类型。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_position|> + +给定实体,返回其足部位置。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_eye_position|> + +给定实体,返回其头部位置。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_facing|> + +给定实体,将其朝向返回为单位向量。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_velocity|> + +给定实体,返回其当前的速度向量,以格每刻为单位。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:height_reflection|> + +给定实体,返回其高度,以格为单位。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:sneaking_reflection|> + +给定实体,检查其是否在潜行。若实体不具潜行能力,则返回false。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:burning_reflection|> + +给定实体,检查其是否着火。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:sprinting_reflection|> + +给定实体,检查其是否在疾跑。若实体不具疾跑能力,则返回false。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:blocking_reflection|> + +给定实体,检查其是否在举盾防御。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_max_health|> + +给定实体,返回其最大生命值。实体无生命值会导致失策。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_health|> + +给定实体,返回其当前生命值。实体无生命值会导致失策。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_armour|> + +给定实体,返回其总护甲值。实体不具穿戴盔甲能力会导致失策。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_scale|> + +返回所给实体的尺寸。实体无法被缩放会导致失策。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_flecks|> + +返回给定玩家可见所有视形的标识符。若未传入玩家,则以施法者为主体进行判定。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_player_food|> + +给定玩家,返回其当前饥饿值。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_player_saturation|> + +给定玩家,返回其当前饱和度。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/entity_locating.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/entity_locating.md index 59697cbb22c8..5c80d2863562 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/entity_locating.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/entity_locating.md @@ -1,33 +1,31 @@ -```json -{ - "title": "实体定位", - "icon": "minecraft:chicken_spawn_egg", - "category": "trickster:delusions_ingresses", - "additional_search_terms": [ - "怀抱之辑流", - "同命之辑流" - ] -} -``` - -用于查找和定位世界中实体的戏法。可传入实体类型加以限制。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:block_find_entity,title=怀抱之辑流|> - -vector, entity_type... | entity_type[] -> entity - ---- - -查找给定位置处的实体。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:range_find_entity,title=同命之辑流|> - -vector, number, entity_type... | entity_type[] -> entity[] - ---- - -查找距所给位置处给定范围内的所有实体。 +```json +{ + "title": "实体定位", + "icon": "minecraft:chicken_spawn_egg", + "category": "trickster:delusions_ingresses", + "additional_search_terms": [ + "怀抱之辑流", + "同命之辑流" + ] +} +``` + +这些戏法可以用于寻找和定位世界中的实体,且两者都可限定到只针对特定的实体类型。为进行限定,可以传入一系列单独的实体类型,也可传入一个列表。 + + +戏法无法观测到目标位置时可能什么都不会返回。 + + +务必注意,实体片段可能会[衰退](^trickster:concepts/fragment_decay)。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:block_find_entity|> + +查找并返回给定位置处的实体。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:range_find_entity|> + +查找并返回距所给位置处给定范围内所有实体组成的列表。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/inventory.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/inventory.md index 1f347809a109..e8d87d3dcba4 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/inventory.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/inventory.md @@ -1,103 +1,92 @@ -```json -{ - "title": "物品栏信息", - "icon": "minecraft:bundle", - "category": "trickster:delusions_ingresses", - "additional_search_terms": [ - "销赃人之辑流", - "杂耍之错觉", - "抛接之错觉", - "侵入之辑流", - "颅骨之错觉", - "权威之辑流", - "加冕之辑流", - "丰裕之辑流" - ] -} -``` - -从施法者物品栏中获取信息的戏法。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_item_in_slot,title=销赃人之辑流|> - -slot -> item - ---- - -返回给定槽位中物品的类型。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:other_hand,title=杂耍之错觉|> - --> item - ---- - -返回施法者另一只手中物品的类型。 - -;;;;; - -<|page-title@lavender:book_components|title=笔记:槽位引用|>物品槽位可被法术引用。制造此类引用没有消耗。但若要使用此类引用以移动槽位中的物品,就需要付出移动所需的代价。此消耗等价于(距离 * 数量 * 0.5 kG)。槽位引用必定指向方块的位置,或是指向*移动物品时的施法者*。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:other_hand_slot,title=抛接之错觉|> - --> slot - ---- - -返回施法者另一只手的槽位引用。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_inventory_slot,title=侵入之辑流|> - -number, [vector | entity] -> slot - ---- - -根据物品栏或容器和索引构建槽位引用,默认使用施法者作为物品栏的来源。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:check_hat,title=颅骨之错觉|> - --> number | void - ---- - -返回施法者[高顶礼帽](^trickster:items/top_hat)的所选槽位。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_mana_in_slot,title=权威之辑流|> - -slot... -> number - ---- - -返回给定槽位中的魔力的量。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_max_mana_in_slot,title=加冕之辑流|> - -slot... -> number - ---- - -返回给定槽位中能容纳的最大魔力的量。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_count_in_slot,title=丰裕之辑流|> - -slot -> number - ---- - -返回给定槽位中物品的数量。 \ No newline at end of file +```json +{ + "title": "物品栏信息", + "icon": "minecraft:bundle", + "category": "trickster:delusions_ingresses", + "additional_search_terms": [ + "销赃人之辑流", + "杂耍之错觉", + "抛接之错觉", + "侵入之辑流", + "颅骨之错觉", + "权威之辑流", + "加冕之辑流", + "丰裕之辑流", + "收藏家之辑流", + "容展之辑流" + ] +} +``` + +这些戏法会从物品栏中获取信息。可以是施法者自己的物品栏,也可以是外部方块或实体的。 + + +它们无法和除施法者之外的玩家的物品栏交互。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_item_in_slot|> + +返回给定槽位中物品的类型。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:other_hand|> + +返回施法者副手中物品的类型。 + +;;;;; + +<|page-title@lavender:book_components|title=笔记:槽位引用|>法术可以引用物品槽位。制造此类引用无需消耗魔力,但若要借助它们移动槽位中的物品,就需要消耗移动的魔力。此消耗等价于(距离 * 数量 * 0.5G)。在计算消耗时,槽位引用会使用移动物品时施法者的位置,或是会使用其目标的位置。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:other_hand_slot|> + +返回施法者副手的槽位引用。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_inventory_slot|> + +使用索引和物品栏来源构建槽位引用,不传入时默认使用施法者作为来源。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_inventory_slots|> + +返回物品栏来源的槽位列表。 + +;;;;; + +若未指定来源,则使用施法者的物品栏。可以传入物品或物品列表作为过滤器,以让戏法仅统计物品栏来源中的相关槽位。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_inventory_size|> + +返回物品栏来源的槽位数,不传入时默认使用施法者作为来源。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:check_hat|> + +返回施法者[帽子](^trickster:items/top_hat)的所选槽位。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_mana_in_slot|> + +返回所给槽位中魔力的总量。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_max_mana_in_slot|> + +返回所给槽位中能容纳的最大魔力总量。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_count_in_slot|> + +返回给定槽位中物品的数量。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/raycast.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/raycast.md index 4b620e490d12..72f91367ebda 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/raycast.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/delusions_ingresses/raycast.md @@ -1,53 +1,42 @@ -```json -{ - "title": "射线追踪", - "icon": "minecraft:spectral_arrow", - "category": "trickster:delusions_ingresses", - "additional_search_terms": [ - "着点之辑流", - "承座之辑流", - "标记之辑流" - ] -} -``` - -射线追踪戏法会接受一个实体或位置或方向,并返回该实体的目光所在,或该向量的指向。 - - -以方块为目标的射线追踪可以返回流体,需将最后一个参数设为true。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:raycast,title=着点之辑流|> - -entity, [boolean] -> vector | - -vector, vector, [boolean] -> vector - ---- - -返回射线追踪命中的方块。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:raycast_side,title=承座之辑流|> - -entity, [boolean] -> vector | - -vector, vector, [boolean] -> vector - ---- - -返回射线追踪命中的方块的面,以向量表示。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:raycast_entity,title=标记之辑流|> - -entity -> entity | - -vector, vector -> entity - ---- - -返回射线追踪命中的实体。 +```json +{ + "title": "射线追踪", + "icon": "minecraft:spectral_arrow", + "category": "trickster:delusions_ingresses", + "additional_search_terms": [ + "着点之辑流", + "承座之辑流", + "标记之辑流" + ] +} +``` + +射线追踪戏法会接受一个实体,并返回其视线落点。也可接受一个位置和一个方向,返回两向量的指向。 + + +采用向量参数时,第一个向量视作追踪的起始点,第二个作为代表视线方向的单位向量。 + +;;;;; + +将最后一个参数设为true时,以方块为目标的射线追踪可以返回流体。 + + +如果射线追踪在64格没有观测到任何有意义的事物,则返回void。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:raycast|> + +返回射线追踪所命中方块的位置。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:raycast_entity|> + +返回射线追踪命中的实体。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:raycast_side|> + +返回射线追踪命中的方块的面,以单位向量表示。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/arithmetic.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/arithmetic.md index 4b513dffa528..37029f3b2177 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/arithmetic.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/arithmetic.md @@ -1,245 +1,187 @@ -```json -{ - "title": "算术", - "icon": "minecraft:copper_bulb", - "category": "trickster:distortions", - "additional_search_terms": [ - "吞并之谋略", - "遗弃之谋略", - "统治之谋略", - "屈从之谋略", - "整体之曲变", - "至尊之曲变", - "高贵之谋略", - "低位之谋略", - "壮丽之曲变", - "谦卑之曲变", - "客观之曲变", - "削损之曲变", - "取反之曲变", - "绝对主义者之曲变", - "甲型几何之曲变", - "乙型几何之曲变", - "丙型几何之曲变", - "甲型反几何之曲变", - "乙型反几何之曲变", - "丙型反几何之曲变", - "笛卡尔角之曲变" - ] -} -``` - -本节的图案主要涉及基础算术及简单数学操作。 - - -许多基础算术操作对数和向量都有效,但并非所有戏法都是这样。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:add,title=吞并之谋略|> - -(number | vec)... | (number | vec)[] -> (number | vec) - ---- - -将多个数或向量加为单个值。数和向量的和是向量。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:subtract,title=遗弃之谋略|> - -(number | vec)... | (number | vec)[] -> (number | vec) - ---- - -将多个数或向量减为单个值。数和向量的差是向量。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:multiply,title=统治之谋略|> - -(number | vec)... | (number | vec)[] -> (number | vec) - ---- - -将多个数或向量乘为单个值。数和向量的积是向量。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:divide,title=屈从之谋略|> - -(number | vec)... | (number | vec)[] -> (number | vec) - ---- - -将多个数或向量除为单个值。数和向量的商是向量。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:modulo,title=整体之曲变|> - -number, number -> number - ---- - -返回第一个数除以第二个数的余数。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:power,title=至尊之曲变|> - -number, number -> number - ---- - -返回底数为第一个数,指数为第二个数的幂。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:max,title=高贵之谋略|> - -number... | number[] -> number - ---- - -返回所有输入值中的最大值。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:min,title=低位之谋略|> - -number... | number[] -> number - ---- - -返回所有输入值中的最小值。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:ceil,title=壮丽之曲变|> - -number -> number - ---- - -将输入值向上取整。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:floor,title=谦卑之曲变|> - -number -> number - ---- - -将输入值向下取整。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:round,title=客观之曲变|> - -number -> number - ---- - -将输入值四舍五入。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:sqrt,title=削损之曲变|> - -number -> number - ---- - -返回输入值的平方根。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:invert,title=取反之曲变|> - -number -> number | vec -> vec - ---- - -取反所给数或向量。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:abs,title=绝对主义者之曲变|> - -number -> number - ---- - -若所给数为负,返回其相反数。否则直接传出。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:sin,title=甲型几何之曲变|> - -number -> number - ---- - -返回所给数的正弦。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:cos,title=乙型几何之曲变|> - -number -> number - ---- - -返回所给数的余弦。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:tan,title=丙型几何之曲变|> - -number -> number - ---- - -返回所给数的正切。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:arcsin,title=甲型反几何之曲变|> - -number -> number - ---- - -返回所给数的反正弦。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:arccos,title=乙型反几何之曲变|> - -number -> number - ---- - -返回所给数的反余弦。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:arctan,title=丙型反几何之曲变|> - -number -> number - ---- - -返回所给数的反正切。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:arctan2,title=笛卡尔角之曲变|> - -number, number -> number - ---- - -返回X轴正向与原点至点(y, x)射线的夹角。 +```json +{ + "title": "算术", + "icon": "minecraft:copper_bulb", + "category": "trickster:distortions", + "additional_search_terms": [ + "吞并之谋略", + "遗弃之谋略", + "统治之谋略", + "屈从之谋略", + "整体之曲变", + "至尊之曲变", + "至劣之曲变", + "高贵之谋略", + "低位之谋略", + "壮丽之曲变", + "谦卑之曲变", + "客观之曲变", + "削损之曲变", + "取反之曲变", + "绝对主义者之曲变", + "甲型几何之曲变", + "乙型几何之曲变", + "丙型几何之曲变", + "甲型反几何之曲变", + "乙型反几何之曲变", + "丙型反几何之曲变", + "笛卡尔角之曲变" + ] +} +``` + +本节的图案主要涉及基础算术及数学操作。 + + +部分基础戏法能接受多种类型的片段。它们的签名会采用特殊标记,如{#aa4444}可加{}或{#aa4444}可舍入{}。这些术语是后页全称的简写: + +;;;;; + +{#aa4444}可加{}、{#aa4444}可减{}可以是{#ddaa00}数{}、{#aa7711}向量{}、{#6644aa}图案{}。 + + +{#aa4444}可乘{}、{#aa4444}可除{}、{#aa4444}可舍入{}则只能是{#ddaa00}数{}或{#aa7711}向量{}。 + +;;;;; + +能一次性接受多个参数的曲变术会逐参数执行其操作。例如: + +1, 2, 3 传入吞并之谋略 = 1 + 2 + 3 = 6 + + +以及 + + +1, 2, 3 传入屈从之谋略 = 1 / 2 / 3 = 0.1666... + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:add|> + +求各片段的和。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:subtract|> + +从首个片段中减去其他片段。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:multiply|> + +求各片段的积。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:divide|> + +从首个片段开始,依次求各片段对的商。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:modulo|> + +返回第一个数除以第二个数的余数。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:power|> + +返回底数为第一个数,指数为第二个数的幂。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:logarithm|> + +给定两个数。在计算幂时,为让底数为第一个数的幂等于第二个数,指数应为多少,返回该值。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:max|> + +返回所有输入值中的最大值。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:min|> + +返回所有输入值中的最小值。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:ceil|> + +将输入值向上取整。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:floor|> + +将输入值向下取整。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:round|> + +将输入值四舍五入。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:sqrt|> + +返回输入值的平方根。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:invert|> + +取反所给数或向量。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:abs|> + +若所给数为负,返回其相反数。否则原样传出。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:sin|> + +返回所给数的正弦。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:cos|> + +返回所给数的余弦。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:tan|> + +返回所给数的正切。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:arcsin|> + +返回所给数的反正弦。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:arccos|> + +返回所给数的反余弦。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:arctan|> + +返回所给数的反正切。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:arctan2|> + +返回X轴正向与原点至点(y, x)射线的夹角。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/boolean.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/boolean.md index 9f6a6916378c..9312e33f96df 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/boolean.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/boolean.md @@ -1,102 +1,99 @@ -```json -{ - "title": "布尔逻辑", - "icon": "minecraft:comparator", - "category": "trickster:distortions", - "additional_search_terms": [ - "决策之曲变", - "对抵之谋略", - "失抵之谋略", - "无例外之谋略", - "通常态之谋略", - "缺失态之谋略", - "较小之曲变", - "较大之曲变" - ] -} -``` - -本节的图案能够执行布尔逻辑运算。 - - -虽然此处会称符记要求传入布尔值,但仍应注意:如有需求,任何法术片段都会自动强制转换为布尔值。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:if_else,title=决策之曲变|> - -(any, any)..., any -> any - ---- - -根据布尔值返回两个输入量中的一个。若为true,返回第一个;否则返回第二个。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:equals,title=对抵之谋略|> - -any... -> boolean - ---- - -检查各输入是否相等。若全部相等,返回true。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:not_equals,title=失抵之谋略|> - -any... -> boolean - ---- - -检查各输入是否不等。若有至少两个输入相等,返回false。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:all,title=无例外之谋略|> - -boolean... -> boolean - ---- - -若所有输入为true,返回true。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:any,title=通常态之谋略|> - -boolean... -> boolean - ---- - -若任意输入为true,返回true。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:none,title=缺失态之谋略|> - -boolean... -> boolean - ---- - -若没有输入为true,返回true。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:lesser_than,title=较小之曲变|> - -number, number -> boolean - ---- - -检查第一个数是否小于第二个数。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:greater_than,title=较大之曲变|> - -number, number -> boolean - ---- - -检查第一个数是否大于第二个数。 \ No newline at end of file +```json +{ + "title": "布尔逻辑", + "icon": "minecraft:comparator", + "category": "trickster:distortions", + "additional_search_terms": [ + "决策之曲变", + "对抵之谋略", + "失抵之谋略", + "无例外之谋略", + "通常态之谋略", + "缺失态之谋略", + "较小之曲变", + "较大之曲变" + ] +} +``` + +本节的图案能够执行布尔逻辑运算。 + + +虽然此处要求向符记传入布尔值,但仍应注意:如有需求,**任何法术片段都会自动强制转换为布尔值**。 + +;;;;; + +强制转换的方法如下: + +- 片段是{#4400aa}空类型{},转换为**false**。 +- 片段是{#444444}##Zalgo##{},转换为**false**。 +- 片段是**false**,转换为**false**。 +- 其余情况下,转换为**true**。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:if_else|> + +此戏法可让法术根据特定判据使用不同的片段,甚至可以用来选择不同的分支。 + +;;;;; + +决策之曲变会接受一个或多个布尔值和任意值的组合,并返回首个为true的布尔值对应的值。如果所有的布尔值都是false,则返回在末尾指定的备用值。备用值*不得缺省*。 + + +例如: + + +向此戏法传入**true, 1, 2**,则其会返回**1**,因为布尔值为**true**,且其和**1**组成了组合。 + +;;;;; + +又如: + + +也可以向决策之曲变传入**false, 1, false, 2, 3**,且其会返回备用值,即**3**。 + + +而因为所有片段都可视作布尔值,传入**void, 1, 2, 3, 4**会返回**3**。因为**2**和**3**组成了组合,且**2**被强制转换成了**true**。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:equals|> + +检查各输入是否相等。只有全部输入都相等,才返回true。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:not_equals|> + +检查各输入是否不等。若有至少两个输入相等,返回false。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:all|> + +若所有输入为true,返回true。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:any|> + +若任意输入为true,返回true。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:none|> + +若没有输入为true,返回true。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:lesser_than|> + +检查第一个数是否小于第二个数。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:greater_than|> + +检查第一个数是否大于第二个数。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/inventory.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/inventory.md index 28835021541e..6a6c04563b18 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/inventory.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/inventory.md @@ -5,7 +5,8 @@ "category": "trickster:distortions", "additional_search_terms": [ "放置之曲变", - "拾取之曲变" + "拾取之曲变", + "容宽之曲变" ] } ``` @@ -14,20 +15,18 @@ ;;;;; -<|glyph@trickster:templates|trick-id=trickster:block_from_item,title=放置之曲变|> - -item -> block | void - ---- +<|trick@trickster:templates|trick-id=trickster:block_from_item|> 返回所给物品类型放置后的方块的类型。若所给物品无法放置为方块,返回void。 ;;;;; -<|glyph@trickster:templates|trick-id=trickster:item_from_block,title=拾取之曲变|> +<|trick@trickster:templates|trick-id=trickster:item_from_block|> -block -> item | void +返回放置所给方块类型所需的物品的类型。若所给方块没有对应物品,返回void。 + +;;;;; ---- +<|trick@trickster:templates|trick-id=trickster:get_max_count|> -返回放置所给方块类型所需的物品的类型。若所给方块没有对应物品,返回void。 \ No newline at end of file +返回所给物品的最大堆叠数。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/list.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/list.md index 24c50c043baf..d70201e826f7 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/list.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/list.md @@ -1,135 +1,98 @@ -```json -{ - "title": "列表", - "icon": "minecraft:string", - "category": "trickster:distortions", - "additional_search_terms": [ - "计量之曲变", - "扩展之谋略", - "集合之谋略", - "孤立之曲变", - "计数之曲变", - "膨胀之谋略", - "提取之曲变", - "定目之曲变", - "驱散之谋略", - "放逐之谋略", - "间奏之曲变" - ] -} -``` - -法术中可以创建列表。列表中能容纳任意个片段,整体又被视为单个值。 - - -列表索引自零起始。如需生成空列表常量,请参见相关的[修订术](^trickster:constants#3)。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:list_size,title=计量之曲变|> - -any[] -> number - ---- - -返回所给列表中元素的数目。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:list_add,title=扩展之谋略|> - -any[], any... -> any[] - ---- - -将任意个元素接到给定列表末尾。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:list_add_range,title=集合之谋略|> - -any[], any[]... -> any[] - ---- - -创建一个新列表,其中包含所有给定列表中的元素。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:list_take_range,title=孤立之曲真|> - -any[], number, [number] -> any[] - ---- - -取出列表中索引由第一个数起始、在第二个数之前结束的元素,组成子列表并返回。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:list_reverse,title=计数之曲真|> - -any[] -> any[] - ---- - -倒置所给列表。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:list_insert,title=膨胀之谋略|> - -any[], number, any... -> any[] - ---- - -在给定列表给定位置处插入任意个元素。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:list_get,title=提取之曲变|> - -any[], number -> any - ---- - -查询并返回给定列表给定索引处的元素。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:list_index_of,title=定目之曲变|> - -any[], any -> number | void - ---- - -查询并返回给定元素在给定列表中的索引,若列表中不存在该元素,返回void。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:list_remove,title=驱散之谋略|> - -any[], number... -> any[] - ---- - -根据索引移除给定列表中任意个元素。移除过程中索引不会变化。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:list_remove_element,title=放逐之谋略|> - -any[], any... -> any[] - ---- - -检查给定列表中元素是否与所给参数一致,若一致则移除。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:create_number_range,title=间奏之曲变|> - -number, number -> number[] - ---- - -返回一个列表,其中包含自第一个数起、在第二个数前结束的所有整数。 \ No newline at end of file +```json +{ + "title": "列表", + "icon": "minecraft:string", + "category": "trickster:distortions", + "additional_search_terms": [ + "目录之错觉", + "计量之曲变", + "扩展之谋略", + "集合之谋略", + "孤立之曲变", + "计数之曲变", + "膨胀之谋略", + "提取之曲变", + "定目之曲变", + "驱散之谋略", + "放逐之谋略", + "间奏之曲变" + ] +} +``` + +法术中可以创建列表。列表中能容纳任意个片段,整体又被视为单个值。 + + +列表索引自0起始。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:list_create|> + +新建一个空列表。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:list_size|> + +返回所给列表中元素的数目。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:list_add|> + +将任意个元素接到给定列表末尾。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:list_add_range|> + +创建一个新列表,其中包含所有给定列表中的元素。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:list_take_range|> + +取出列表中索引自第一个数起始、在第二个数前结束的元素,将它们组成子列表并返回。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:list_reverse|> + +倒置所给列表。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:list_insert|> + +在给定列表中给定位置处插入任意个元素。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:list_get|> + +查询并返回给定列表中给定索引处的元素。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:list_index_of|> + +查询并返回给定元素在给定列表中的索引,若列表中不存在该元素,返回void。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:list_remove|> + +根据索引移除给定列表中任意个元素。移除过程中索引不会变化。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:list_remove_element|> + +检查给定列表中元素是否与所给参数一致,若一致则移除。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:create_number_range|> + +返回一个列表,其中包含自第一个数起始、在第二个数前结束的所有整数。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/map.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/map.md index e501824a8611..15735500e335 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/map.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/map.md @@ -1,58 +1,46 @@ -```json -{ - "title": "映射", - "icon": "minecraft:filled_map", - "category": "trickster:distortions", - "additional_search_terms": [ - "编表之谋略", - "领航员之曲变", - "海军将领之谋略", - "废止之谋略" - ] -} -``` - -本节的图案用于操纵映射。映射能建立法术片段到法术片段的联系,类似于字典能将字和其释义联系起来。 - - -如需生成空映射常量,请参见相关的[修订术](^trickster:constants#4)。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:map_insert,title=编表之谋略|> - -{any: any}, [any, any]... -> any - ---- - -将键值对插入给定映射。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:map_get,title=领航员之曲变|> - -{any: any}, any -> any - ---- - -若给定法术片段与映射中某键相等,则返回其值;否则返回void。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:map_merge,title=海军将领之谋略|> - -{any: any}, {any: any}... -> {any: any} - ---- - -将多个映射合一。键相同的键值对取输入索引小的。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:map_remove,title=废止之谋略|> - -{any: any}, any... -> {any: any} - ---- - -移除给定映射中键为所给参数的键值对。 +```json +{ + "title": "映射", + "icon": "minecraft:filled_map", + "category": "trickster:distortions", + "additional_search_terms": [ + "制图师之错觉", + "编表之谋略", + "领航员之曲变", + "海军将领之谋略", + "废止之谋略" + ] +} +``` + +本节的图案用于操纵映射。映射能建立法术片段到法术片段的联系,类似于字典能将字和其释义联系起来。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:map_create|> + +新建一个空映射。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:map_insert|> + +将键值对插入给定映射。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:map_get|> + +若给定法术片段与映射中某键相等,则返回对应值;否则返回void。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:map_merge|> + +将多个映射合并。键相同的键值对取输入索引小的。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:map_remove|> + +移除给定映射中键为所给参数的键值对。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/misc.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/misc.md index bae8916e9859..44531e7bc88a 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/misc.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/misc.md @@ -1,44 +1,39 @@ -```json -{ - "title": "杂项曲变术", - "icon": "minecraft:iron_nugget", - "category": "trickster:distortions", - "additional_search_terms": [ - "参量之曲变", - "衰朽之曲变", - "释义之曲变" - ] -} -``` - -没法分进其他章节的若干杂项曲变术。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:type_fragment,title=参量之曲变|> - -any -> type - ---- - -返回给定片段的类型。可用于校验输入等。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:hash_values,title=衰朽之曲变|> - -[any]... -> number - ---- - -将所有给定的输入值变为单个数。给定相同的输入,必定得出同样的数。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:escape_pattern,title=释义之曲变|> - -pattern -> pattern_literal - ---- - -将图案变为代表其自身的字面量,供构建法术时使用。 +```json +{ + "title": "杂项曲变术", + "icon": "minecraft:iron_nugget", + "category": "trickster:distortions", + "additional_search_terms": [ + "参量之曲变", + "衰退之曲变", + "释义之曲变", + "存忆之曲变" + ] +} +``` + +没法分进其他章节的若干杂项曲变术。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:type_fragment|> + +返回给定片段的类型。可用于校验输入等。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:hash_values|> + +将所有给定的输入值变为单个看似随机的数。给定相同的输入,必定得出同样的数。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:escape_pattern|> + +将图案变为代表其自身的字面量,供构建法术时使用。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:weight|> + +返回一个在0到1之间的数,代表所给片段距超重有多远。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/tree.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/tree.md index ac3ea717a28b..b5af33bb27bd 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/tree.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/tree.md @@ -1,140 +1,113 @@ -```json -{ - "title": "法术", - "icon": "minecraft:oak_sapling", - "category": "trickster:distortions", - "additional_search_terms": [ - "供给之曲变", - "闭包之谋略", - "定址之曲变", - "发现之曲变", - "检索之曲变", - "替换之曲变", - "扎束之曲变", - "伐树之曲变", - "嫁接之曲变", - "分枝之曲变", - "剪枝之曲变" - ] -} -``` - -[抄绘图案](^trickster:editing)能在法术施放前更改法术,而本节中的图案能在法术施放*中*修改。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:supplier,title=供给之曲变|> - -any -> spell - ---- - -创建一个新法术片段,其执行结果即是所给参数。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:closure,title=闭包之谋略|> - -spell, {any: any} -> spell - ---- - -将所给法术中与所给映射键对应的符记换成其映射的值。 - -;;;;; - -<|page-title@lavender:book_components|title=笔记:地址|>正如列表中的元素可通过索引访问,法术的部件也可由其地址访问。地址是一个整数列表,用以表示法术中前往该圆的路径。 - -;;;;; - -得出圆地址的步骤如下:在根节点处开始;找到前往该圆所需经过的子圆;找出该子圆的索引,即顺时针方向上在该子圆前面的子圆的数目;重复前三步,直至抵达目的圆。所得的列表即是目的圆的地址。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:locate_glyph,title=定址之曲变|> - -spell, any -> number[] | void - ---- - -返回所给法术中、符记为所给参数的第一个圆的地址。搜索时使用[广度优先搜索(BFS)](https://en.wikipedia.org/wiki/Breadth-first_search)。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:locate_glyphs,title=发现之曲变|> - -spell, any -> number[][] - ---- - -返回所给法术中、符记为所给参数的所有圆的地址组成的列表。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:retrieve_glyph,title=检索之曲变|> - -spell, number[] -> any - ---- - -返回所给法术中给定地址处的圆的符记。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:set_glyph,title=替换之曲变|> - -spell, number[], any -> spell - ---- - -将所给法术中给定地址处的圆的符记替换为所给片段。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_subparts,title=扎束之曲变|> - -spell -> spell[] - ---- - -将法术的各支返回为列表。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:retrieve_subtree,title=伐树之曲变|> - -spell, number[] -> spell | void - ---- - -返回给定地址处的圆及其各支。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:set_subtree,title=嫁接之曲变|> - -spell, number[], spell -> spell - ---- - -将后一法术嫁接到前一法术中给定地址处,替代该处的圆。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:add_subtree,title=分枝之曲变|> - -spell, number[], spell -> spell - ---- - -将后一法术接到前一法术中给定地址处,作为该处圆的子支。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:remove_subtree,title=剪枝之曲变|> - -spell, number[] -> spell | void - ---- - -移除给定地址处的圆。若移除的是根节点,返回void。 +```json +{ + "title": "法术", + "icon": "minecraft:oak_sapling", + "category": "trickster:distortions", + "additional_search_terms": [ + "供给之曲变", + "闭包之曲变", + "定址之曲变", + "发现之曲变", + "检索之曲变", + "替换之曲变", + "扎束之曲变", + "伐树之曲变", + "嫁接之曲变", + "分枝之曲变", + "剪枝之曲变" + ] +} +``` + +[抄绘图案](^trickster:editing)能在法术施放前更改法术,而本节中的图案能在法术施放*中*修改。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:supplier|> + +创建一个新法术片段,其执行结果即是所给参数。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:closure|> + +将所给法术中与所给映射键对应的符记换成其映射的值。 + +;;;;; + +所给法术中所有位置的符记都会被替换,包括符记处的常量、图案、内圆,甚至包括法术的子树。 + + +内圆中的值和子法术中的值*也会*被替换。 + +;;;;; + +<|page-title@lavender:book_components|title=笔记:地址|>正如列表中的元素可通过索引访问,法术的部件也可由其地址访问。地址是一个整数列表,用以表示法术中前往该圆的路径。 + + +可通过[地址之修订](^trickster:editing#29)返回地址。 + + +手工判断圆地址时,应从根节点处开始。 + +;;;;; + +然后,找到前往该圆所需经过的子圆,判断该子圆的索引:即顺时针方向上在该子圆前面的子圆的数目。 + + +重复这些步骤,直至抵达目的圆。所得的列表即是目的圆的地址。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:locate_glyph|> + +返回所给法术中、符记为所给参数的第一个圆的地址。搜索时使用[广度优先搜索(BFS)](https://en.wikipedia.org/wiki/Breadth-first_search)。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:locate_glyphs|> + +返回所给法术中、符记为所给参数的所有圆的地址组成的列表。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:retrieve_glyph|> + +返回所给法术中给定地址处的圆的符记。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:set_glyph|> + +将所给法术中给定地址处的圆的符记替换为所给片段。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_subparts|> + +将法术的各分支返回为列表。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:retrieve_subtree|> + +返回给定地址处的圆及其各分支。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:retrieve_subtree|> + +将后一法术嫁接到前一法术中给定地址处,替代该处的圆。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:set_subtree|> + +将后一法术接到前一法术中给定地址处,作为该处圆的子分支。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:remove_subtree|> + +移除给定地址处的圆。若移除的是根节点,返回void。 + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/vector.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/vector.md index ea4959b8345b..88bb3c8c5cf4 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/vector.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/distortions/vector.md @@ -1,110 +1,74 @@ -```json -{ - "title": "向量", - "icon": "minecraft:arrow", - "category": "trickster:distortions", - "additional_search_terms": [ - "甲元之曲变", - "乙元之曲变", - "丙元之曲变", - "吸收之曲变", - "模长之曲变", - "合向之曲变", - "垂直之曲变", - "归一之曲变", - "合向归一之曲变" - ] -} -``` - -许多向量数学运算都可由基础的[算术](^trickster:distortions/arithmetic)图案实现,但某些运算需要更专精的图案。本节图案正在此列。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:extract_x,title=甲元之曲变|> - -vector -> number - ---- - -返回所给向量的X分量。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:extract_y,title=乙元之曲变|> - -vector -> number - ---- - -返回所给向量的Y分量。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:extract_z,title=丙元之曲变|> - -vector -> number - ---- - -返回所给向量的Z分量。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:merge_vector,title=吸收之曲变|> - -number, number, number -> vector - ---- - -将三个输入数合并为向量。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:length,title=模长之曲变|> - -vector -> number - ---- - -返回所给向量的长度。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:dot_product,title=合向之曲变|> - -vector, vector -> number - ---- - -返回所给向量的点积。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:cross_product,title=垂直之曲变|> - -vector, vector -> vector - ---- - -返回所给向量的叉积。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:normalize,title=归一之曲变|> - -vector -> vector - ---- - -将所给向量归一化至长度为一。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:align_vector,title=合向归一之曲变|> - -vector -> vector - ---- - -将所给向量归一化至长度为一,并将其方向变为最近的轴向。 +```json +{ + "title": "向量", + "icon": "minecraft:arrow", + "category": "trickster:distortions", + "additional_search_terms": [ + "甲元之曲变", + "乙元之曲变", + "丙元之曲变", + "吸收之曲变", + "模长之曲变", + "合向之曲变", + "垂直之曲变", + "归一之曲变", + "合向归一之曲变" + ] +} +``` + +许多向量数学运算都可由基础的[算术](^trickster:distortions/arithmetic)图案实现,但某些运算需要专攻其道的图案。本节图案正在此列。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:extract_x|> + +返回所给向量的X分量。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:extract_y|> + +返回所给向量的Y分量。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:extract_z|> + +返回所给向量的Z分量。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:merge_vector|> + +将三个输入数合并为向量。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:length|> + +返回所给向量的长度。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:dot_product|> + +返回所给向量的点积。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:cross_product|> + +返回所给向量的叉积。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:normalize|> + +将所给向量归一化至长度为1。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:align_vector|> + +将所给向量归一化至长度为1,并将其方向变为最近的轴向。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/editing.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/editing.md index 91dce9c0eadf..a688d179c5d1 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/editing.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/editing.md @@ -1,237 +1,169 @@ -```json -{ - "title": "法术抄绘", - "icon": "trickster:scroll_and_quill", - "ordinal": 1 -} -``` - -<|pattern@trickster:templates|pattern=0\,4\,8\,7,title=延枝之修订|> - -{gray}(抄绘图案){} - ---- - -向任意圆添加一个新子圆。 - -;;;;; - -![](trickster:textures/gui/img/extension_revision.png,fit) - -在蓝色圆中绘制延枝之修订后,即会创建绿色圆。 - -;;;;; - -<|pattern@trickster:templates|pattern=0\,4\,8\,5,title=内环之修订|> - -{gray}(抄绘图案){} - ---- - -向现有的圆添加一个内圆。内圆的功效与符记类似,激活条件也相同。参见[法术片段](^trickster:distortions/functions)。 - -;;;;; - -![](trickster:textures/gui/img/inner_revision.png,fit) - -在蓝色圆中绘制内环之修订后,即会创建绿色圆。 - -;;;;; - -内圆的功效与符记类似,能返回其结果,或使用参数执行。 - - -无相接的子圆时,包含内圆的圆会将内圆返回为法术片段。此性质可用于元编程、递归、动态法术的持久存储,诸如此类。 - -;;;;; - -*确有*相接的子圆时,内圆会直接像被[宏伟之谋略](^trickster:distortions/functions#3)调用那样执行,并使用相接子圆的输出作为参数。 - - -需要在多处使用一个值的时候,此性质很实用,因为内圆和法术片段是将片段移回叶节点的唯一方式。 - -;;;;; - -<|pattern@trickster:templates|pattern=3\,0\,4\,8,title=分枝之修订|> - -{gray}(抄绘图案){} - ---- - -将绘制处的圆换成新圆,原有的圆变成新圆的子圆。 - -;;;;; - -![](trickster:textures/gui/img/split_revision.png,fit) - -在蓝色圆中绘制分枝之修订后,即会创建绿色圆,并将蓝色圆变成绿色圆的子圆。 - -;;;;; - -<|pattern@trickster:templates|pattern=1\,0\,4\,8,title=生长之修订|> - -{gray}(抄绘图案){} - ---- - -将绘制处的圆作为内圆嵌入其他圆。 - -;;;;; - -![](trickster:textures/gui/img/growth_revision.png,fit) - -在蓝色圆中绘制生长之修订后,即会创建绿色圆,并将蓝色圆变成绿色圆的内圆。 - -;;;;; - -<|pattern@trickster:templates|pattern=0\,4\,8,title=嫁接之修订|> - -{gray}(抄绘图案){} - ---- - -移除绘制处的圆。若有子圆,则替换为其第一子圆。 - -;;;;; - -![](trickster:textures/gui/img/grafting_revision.png,fit) - -在黄色圆中绘制嫁接之修订后,黄色圆和红色圆都会被删除,并由绿色圆替换黄色圆。 - -;;;;; - -<|pattern@trickster:templates|pattern=0\,4\,8\,5\,2\,1\,0\,3\,6\,7\,8,title=剪枝之修订|> - -{gray}(抄绘图案){} - ---- - -移除绘制处的圆及其子圆。 - -;;;;; - -![](trickster:textures/gui/img/pruning_revision.png,fit) - -在黄色圆中绘制剪枝之修订后,黄色圆和红色圆都会被删除。 - -;;;;; - -<|pattern@trickster:templates|pattern=1\,2\,4\,6,title=登升之修订|> - -{gray}(抄绘图案){} - ---- - -扩展绘制处的圆,以替换其外圆。 - -;;;;; - -![](trickster:textures/gui/img/ascension_revision.png,fit) - -在蓝色圆中绘制登升之修订后,即会删除红色圆,并由蓝色圆替换。 - -;;;;; - -<|pattern@trickster:templates|pattern=6\,3\,0\,4\,8,title=奉献之修订|> - -{gray}(抄绘图案){} - ---- - -为外圆添加一个子圆。 - -;;;;; - -![](trickster:textures/gui/img/devotion_revision.png,fit) - -在蓝色圆中绘制奉献之修订后,即会创建绿色圆。 - -;;;;; - -<|pattern@trickster:templates|pattern=1\,2\,5,title=旋移之修订|> - -{gray}(抄绘图案){} - ---- - -顺时针循环移动绘制处圆的子圆,即最后一个子圆变为第一子圆。 - -;;;;; - -<|pattern@trickster:templates|pattern=1\,0\,3,title=反向旋移之修订|> - -{gray}(抄绘图案){} - ---- - -功效与旋移之修订相反,会逆时针循环移动子圆。 - -;;;;; - -<|pattern@trickster:templates|pattern=2\,4\,3,title=对换之修订|> - -{gray}(抄绘图案){} - ---- - -交换第一子圆和第二子圆。 - -;;;;; - -<|pattern@trickster:templates|pattern=4\,0\,1\,4\,2\,1,title=记事员之修订|> - -{gray}(抄绘图案){} - ---- - -从施法者副手物品中读出法术,并替换绘制处的圆。 - -;;;;; - -<|pattern@trickster:templates|pattern=1\,2\,4\,1\,0\,4\,7,title=内环记事员之修订|> - -{gray}(抄绘图案){} - ---- - -从施法者副手物品中读出法术,并加作绘制处圆的符记。 - -;;;;; - -<|pattern@trickster:templates|pattern=4\,3\,0\,4\,5\,2\,4\,1,title=宏伟之修订|> - -{gray}(抄绘图案){} - ---- - -将绘制处圆的符记换为施法者副手物品中法术施放的结果。需持有[手镜](^trickster:items/mirror_of_evaluation)。 - -;;;;; - -<|pattern@trickster:templates|pattern=1\,4\,7\,6\,4\,8\,7,title=剽窃者之修订|> - -{gray}(抄绘图案){} - ---- - -将绘制处的圆复制入施法者的副手物品。 - -;;;;; - -<|pattern@trickster:templates|pattern=1\,8\,6\,1,title=释义之修订|> - -{gray}(抄绘图案){} - ---- - -将绘制处圆中已有的图案变为图案字面量。 - -;;;;; - -<|pattern@trickster:templates|pattern=1\,0\,4\,8\,7\,6\,4\,2\,1\,4,title=地址之修订|> - -{gray}(抄绘图案){} - ---- - -将绘制处圆的[地址](^trickster:distortions/tree#2)写入另一只手中的物品。 +```json +{ + "title": "法术抄绘", + "icon": "trickster:scroll_and_quill", + "ordinal": 1 +} +``` + +<|revision@trickster:templates|pattern=0\,4\,8\,7,title=延枝之修订|> + +向任意圆添加一个新子圆。 + +;;;;; + +![](trickster:textures/gui/img/extension_revision.png,fit) + +在蓝色圆中绘制延枝之修订后,即会创建绿色圆。 + +;;;;; + +<|revision@trickster:templates|pattern=0\,4\,8\,5,title=内环之修订|> + +向现有的圆添加一个内圆。内圆的功效与符记类似,激活条件也相同。参见[法术片段](^trickster:distortions/functions)。 + +;;;;; + +![](trickster:textures/gui/img/inner_revision.png,fit) + +在蓝色圆中绘制内环之修订后,即会创建绿色圆。 + +;;;;; + +内圆的功效与符记类似,能返回其结果,或使用参数执行。 + + +无相接的子圆时,包含内圆的圆会将内圆返回为法术片段。此性质可用于元编程、递归、动态法术的持久存储,诸如此类。 + +;;;;; + +*确实有*相接的子圆时,内圆会直接像被[宏伟之谋略](^trickster:distortions/functions#3)调用那样执行,并使用与外圆相接的子圆的输出作为参数。 + + +需要在多处使用一个值的时候,此性质很实用,因为内圆和法术片段是将片段移回叶节点的唯一方式。 + +;;;;; + +<|revision@trickster:templates|pattern=3\,0\,4\,8,title=分枝之修订|> + +将绘制处的圆换成新圆,原有的圆变成新圆的子圆。 + +;;;;; + +![](trickster:textures/gui/img/split_revision.png,fit) + +在蓝色圆中绘制分枝之修订后,即会创建绿色圆,并将蓝色圆变成绿色圆的子圆。 + +;;;;; + +<|revision@trickster:templates|pattern=1\,0\,4\,8,title=生长之修订|> + +将绘制处的圆作为内圆嵌入其他圆。 + +;;;;; + +![](trickster:textures/gui/img/growth_revision.png,fit) + +在蓝色圆中绘制生长之修订后,即会创建绿色圆,并将蓝色圆变成绿色圆的内圆。 + +;;;;; + +<|revision@trickster:templates|pattern=0\,4\,8,title=嫁接之修订|> + +移除绘制处的圆。若有子圆,则将其替换为其第一子圆。 + +;;;;; + +![](trickster:textures/gui/img/grafting_revision.png,fit) + +在黄色圆中绘制嫁接之修订后,黄色圆和红色圆都会被删除,并由绿色圆替换黄色圆。 + +;;;;; + +<|revision@trickster:templates|pattern=0\,4\,8\,5\,2\,1\,0\,3\,6\,7\,8,title=剪枝之修订|> + +移除绘制处的圆及其子圆。 + +;;;;; + +![](trickster:textures/gui/img/pruning_revision.png,fit) + +在黄色圆中绘制剪枝之修订后,黄色圆和红色圆都会被删除。 + +;;;;; + +<|revision@trickster:templates|pattern=1\,2\,4\,6,title=登升之修订|> + +扩展绘制处的圆,以替换其外圆。 + +;;;;; + +![](trickster:textures/gui/img/ascension_revision.png,fit) + +在蓝色圆中绘制登升之修订后,即会删除红色圆,并由蓝色圆替换。 + +;;;;; + +<|revision@trickster:templates|pattern=6\,3\,0\,4\,8,title=奉献之修订|> + +为外圆添加一个子圆。 + +;;;;; + +![](trickster:textures/gui/img/devotion_revision.png,fit) + +在蓝色圆中绘制奉献之修订后,即会创建绿色圆。 + +;;;;; + +<|revision@trickster:templates|pattern=1\,2\,5,title=旋移之修订|> + +顺时针循环移动绘制处圆的子圆,以让最后一个子圆变为第一子圆。 + +;;;;; + +<|revision@trickster:templates|pattern=1\,0\,3,title=反向旋移之修订|> + +功效与旋移之修订相反,会逆时针循环移动子圆。 + +;;;;; + +<|revision@trickster:templates|pattern=2\,4\,3,title=对换之修订|> + +交换第一子圆和第二子圆。 + +;;;;; + +<|revision@trickster:templates|pattern=4\,0\,1\,4\,2\,1,title=记事员之修订|> + +从施法者副手物品中读出法术,用其替换绘制处的圆。 + +;;;;; + +<|revision@trickster:templates|pattern=1\,2\,4\,1\,0\,4\,7,title=内环记事员之修订|> + +从施法者副手物品中读出法术,将其加作绘制处圆的符记。 + +;;;;; + +<|revision@trickster:templates|pattern=4\,3\,0\,4\,5\,2\,4\,1,title=宏伟之修订|> + +将绘制处圆的符记换为施法者副手物品中法术施放的结果。需持有[手镜](^trickster:items/mirror_of_evaluation)。 + +;;;;; + +<|revision@trickster:templates|pattern=1\,4\,7\,6\,4\,8\,7,title=剽窃者之修订|> + +将绘制处的圆复制入施法者的副手物品。 + +;;;;; + +<|revision@trickster:templates|pattern=1\,8\,6\,1,title=释义之修订|> + +将绘制处圆中已有的图案变为图案字面量。 + +;;;;; + +<|revision@trickster:templates|pattern=1\,0\,4\,8\,7\,6\,4\,2\,1\,4,title=地址之修订|> + +将绘制处圆的[地址](^trickster:distortions/tree#2)写入另一只手中的物品。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/intro.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/intro.md index 3b8a7ee64f48..ccf978bc2292 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/intro.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/intro.md @@ -1,22 +1,22 @@ -```json -{ - "title": "介绍", - "icon": "minecraft:written_book", - "ordinal": 0 -} -``` - -欢迎阅读《**魔术把戏秘典**》——你在魔法、魔术、应用数学领域中的指南! - - -本书分为数个分类下的许多章节。 -除去“教程”分类外,其余章节并不要求按顺序阅读,也可只在有需求时才阅读。 - -;;;;; - -如果在游玩模组时遇到了困难,或是很难理解某个概念和功能,抑或是碰见了漏洞或者其他问题,请在**[Discord](https://discord.gg/WcYsDDQtyR)**上告知我们。 - - -以及在所有这些中最重要的,玩得开心! - -![](trickster:textures/gui/img/catstare.png) +```json +{ + "title": "介绍", + "icon": "minecraft:written_book", + "ordinal": 0 +} +``` + +欢迎阅读《**魔术把戏秘典**》——你在魔法、魔术、应用数学领域中的指南! + + +本书分为数个分类下的许多章节。 +除去“教程”分类外,其余章节并不要求按顺序阅读,也可只在有需求时才阅读。 + +;;;;; + +如果在游玩模组时遇到了困难,或是很难理解某个概念和功能,抑或是碰见了漏洞或者其他问题,请在**[Discord](https://discord.gg/WcYsDDQtyR)**上告知我们。 + + +以及在所有这些中最重要的,玩得开心! + +![](trickster:textures/gui/img/catstare.png) diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/amethyst_whorl.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/amethyst_whorl.md index 1af2586e3664..dd86824b0b71 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/amethyst_whorl.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/amethyst_whorl.md @@ -7,7 +7,7 @@ } ``` -紫水晶螺坠不外乎是普通的小饰品,但它确实担得起用:它能存储最多256千甘的魔力,且当作吊坠佩戴时还可按照1千梅的恒定速率充能。 +紫水晶螺坠不外乎是普通的小饰品,但它确实担得起用:它能存储最多512甘的魔力,且当作吊坠佩戴时还可按照0.5梅的恒定速率充能。 和[晶结](^trickster:items/knots)一样,其中的魔力也可供佩戴者的法术使用。 @@ -16,4 +16,4 @@ 单片紫水晶碎片即可刻出紫水晶螺坠,再加上简单的铜和线配件即可用作吊坠。 - \ No newline at end of file + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/astral_hint.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/astral_hint.md index 51f7e8abee6b..6b378f8ee3bf 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/astral_hint.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/astral_hint.md @@ -6,7 +6,7 @@ "required_advancements": [ "trickster:trigger/nether_star" ], - "ordinal": 24 + "ordinal": 21 } ``` @@ -14,4 +14,4 @@ ;;;;; -构建此等强大的能量源,花费的能量可能需要用“昆甘”计数。凋灵拥有如此强大的力量,为何它又会被击败?下界的星星必然有其局限,但到目前为止还未显现…… \ No newline at end of file +构建此等强大的能量源,花费的能量可能需要用“昆甘”计数。凋灵拥有如此强大的力量,为何它又会被击败?下界的星星必然有其局限,但到目前为止还未显现…… diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/astral_knot.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/astral_knot.md index f24788cc945a..ab78a8d9f412 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/astral_knot.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/astral_knot.md @@ -6,12 +6,12 @@ "required_advancements": [ "trickster:astral_knot" ], - "ordinal": 26 + "ordinal": 22 } ``` -使用下界之星,可以制成星辰[晶结](^trickster:items/knots)。星辰晶结的容量在钻石晶结的几个数量级之上,但它有个怪癖:和紫水晶晶结一样,它不可由月光充能。相反,它自身为自身充能。 +下界之星可以制成星辰[晶结](^trickster:items/knots)。星辰晶结的容量在钻石晶结的几个数量级之上,但它有个怪癖:和紫水晶晶结一样,它不可由月光充能。相反,它自身为自身充能。 ;;;;; -星辰晶结会根据其当前的存储量常态产生魔力。其中魔力越多,充能速度就越快。它在完全没有魔力的情况下便不会产生魔力。 \ No newline at end of file +星辰晶结会根据其当前的存储量常态产生魔力。其中魔力越多,充能速度就越快。它在完全没有魔力的情况下便不会产生魔力。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/charging_array.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/charging_array.md index be2ae51c138b..db9d5ab5a4a5 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/charging_array.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/charging_array.md @@ -13,4 +13,4 @@ 充能阵列虽然看上去很像[法术组构台](^trickster:items/spell_construct),但它们无法施放法术。不过,外部法术仍可与其中的晶结交互,相当于放在一般的容器中。 - \ No newline at end of file + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/cracked_amethyst_knot.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/cracked_amethyst_knot.md new file mode 100644 index 000000000000..bd22bb651483 --- /dev/null +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/cracked_amethyst_knot.md @@ -0,0 +1,17 @@ +```json +{ + "title": "开裂的紫水晶晶结", + "icon": "trickster:cracked_amethyst_knot", + "category": "trickster:items", + "required_advancements": [ + "trickster:cracked_amethyst_knot" + ], + "ordinal": 26 +} +``` + +紫水晶的潜力似乎比我先前预想的要多些!打裂紫水晶晶结后就能释放出这种潜能,也即会立刻让晶结的容量翻倍,同时为晶结充满魔力。换言之,在晶结完全报废前,可以从中取出等价于原有容量3倍的魔力。 + +;;;;; + +背后的原因尚未解明。紫水晶也许比初看要神秘得多。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/cracked_astral_knot.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/cracked_astral_knot.md new file mode 100644 index 000000000000..d403cbb66ac3 --- /dev/null +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/cracked_astral_knot.md @@ -0,0 +1,17 @@ +```json +{ + "title": "开裂的星辰晶结", + "icon": "trickster:cracked_astral_knot", + "category": "trickster:items", + "required_advancements": [ + "trickster:cracked_astral_knot" + ], + "ordinal": 29 +} +``` + +不知为何,打裂星辰晶结能让它的容量增长到难以想象的程度。它原本的容量是1048千甘,打裂后变成了原先的16倍,约16.8兆甘。 + +;;;;; + +不过,晶结原有的魔力生成能力却被完全破坏了。打裂后它反而会**耗散**魔力,耗散量和当前存量成比例,可以说不适合作为长期存储使用。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/cracked_echo_knot.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/cracked_echo_knot.md index d3ed2eb256d4..d829169ca358 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/cracked_echo_knot.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/cracked_echo_knot.md @@ -1,22 +1,23 @@ -```json -{ - "title": "开裂的回响晶结", - "icon": "trickster:cracked_echo_knot", - "category": "trickster:items", - "required_advancements": [ - "trickster:cracked_echo_knot" - ], - "ordinal": 15 -} -``` - -这些[晶结](^trickster:items/knots)出自古老文明的废墟,残破但仍能够使用。它们会以绿宝石晶结的两倍速度自然充能,其容量则是钻石晶结的两倍。 - -这种晶结还有其他奇特的地方。 - -;;;;; - -当[收据之技巧](^trickster:ploys/message#3)的第二参数为装有此类晶结的槽位时,会出现奇怪的现象。对[派遣之技巧](^trickster:ploys/message#2)进行同样的操作也会产生类似情况——似乎有*东西*发生了变化。 - - -这两则技巧术同开裂的回响晶结间的具体交互机制仍未解明。不过,让玩家之外的事物利用此特性的所有尝试都无功而返。 +```json +{ + "title": "开裂的回响晶结", + "icon": "trickster:cracked_echo_knot", + "category": "trickster:items", + "required_advancements": [ + "trickster:cracked_echo_knot" + ], + "ordinal": 28 +} +``` + +这些[晶结](^trickster:items/knots)出自古老文明的废墟,残破但仍能够使用。它们会以绿宝石晶结的两倍速度自然充能,其容量则是钻石晶结的两倍。 + + +这种晶结的奇特之处远不只这些。 + +;;;;; + +当[收据之技巧](^trickster:ploys/message#3)的第二参数为装有此类晶结的槽位时,会出现奇怪的现象。对[派遣之技巧](^trickster:ploys/message#2)进行同样的操作也会让*某些东西*发生了变化。 + + +这两则技巧术同开裂的回响晶结间交互的具体机制仍未解明。不过,让玩家之外的事物利用此特性的所有尝试都无功而返。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/cracked_quartz_knot.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/cracked_quartz_knot.md new file mode 100644 index 000000000000..04f02c997218 --- /dev/null +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/cracked_quartz_knot.md @@ -0,0 +1,30 @@ +```json +{ + "title": "开裂的石英晶结", + "icon": "trickster:cracked_quartz_knot", + "category": "trickster:items", + "required_advancements": [ + "trickster:cracked_quartz_knot" + ], + "ordinal": 27 +} +``` + +打裂后的石英晶结保留了原有的大部分独特性质,但有些性质变得更为极端,或者也可以说更为有趣了。 + + +石英晶结与魔力相关的性质已经相当差了,但开裂后更是完全**无法存储魔力**。 + +;;;;; + +但在另一方面,它加速组构台的能力得到了增强。放入组构台后,组构台的施法速度会增加50%。 + + +不过,如此操作也会给组构台带来极大的限制,因为组构台无法靠它取用魔力。 + +;;;;; + +而且,晶结的时钟性质也发生了变化。它每秒依然会发出20次信号,但其起始数值不再是0。 + + +现在的起始值是一个极其巨大的数,且无法设置偏移量。也许它都已经能和世界年岁相比较了…… diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/echo_knot.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/echo_knot.md index 710b9d2bc6d4..7f5c5aa6c181 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/echo_knot.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/echo_knot.md @@ -1,17 +1,17 @@ -```json -{ - "title": "回响晶结", - "icon": "trickster:echo_knot", - "category": "trickster:items", - "required_advancements": [ - "trickster:echo_knot" - ], - "ordinal": 20 -} -``` - -只消单个碎片,就能制成两个[晶结](^trickster:items/knots),容量相当于钻石晶结的两倍,自然充能速率更是其三倍:回响晶结已堪称超凡脱俗。但这并非它们真正的独特之处。源自同一回响碎片的两个晶结共享一个魔力储库。无论两者在什么地方,将其中一个填满,它的孪生晶结也将被填满。 - -;;;;; - -TODO:解释消息行为 +```json +{ + "title": "回响晶结", + "icon": "trickster:echo_knot", + "category": "trickster:items", + "required_advancements": [ + "trickster:echo_knot" + ], + "ordinal": 18 +} +``` + +只需单个碎片,就能制成两个[晶结](^trickster:items/knots),产物的容量相当于钻石晶结的两倍,自然充能速率更是其三倍。这已堪称超凡脱俗,但也并非回响晶结真正的独特之处。源自同一回响碎片的两个晶结共享一个魔力储库。无论两者在什么地方,将其中一个填满,它的孪生晶结也将被填满。 + +;;;;; + +而且,[派遣之技巧](^trickster:ploys/message#2)可以直接向回响晶结发送消息。只需用[收据之技巧](^trickster:ploys/message#3)监听孪生晶结,即可在任何地方接收由此方式发出的消息,可谓是极其优秀的长距离私密通信方式。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/inactive_spawner_spell_core.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/inactive_spawner_spell_core.md index 16d8d8f12af7..dd3bfff25934 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/inactive_spawner_spell_core.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/inactive_spawner_spell_core.md @@ -13,7 +13,7 @@ 下界疣有潜力成为[法术核心](^trickster:items/spell_core)的内衬。这种物品具有转换能力,可将刷怪笼精华的能量转化后供应给法术。 -外壳可以使用一份下界疣、一片下界石英制成,再用铁箍紧所有零件。 +外壳可用一份下界疣和一片下界石英制成,而后需用铁来箍紧所有零件。 ;;;;; diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/knots.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/knots.md index c322622605ae..5b3938d1697a 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/knots.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/knots.md @@ -1,47 +1,47 @@ -```json -{ - "title": "晶结", - "icon": "trickster:emerald_knot", - "category": "trickster:items", - "ordinal": 10 -} -``` - -晶结是包裹着玻璃球壳的宝石,能够存储一定量的[魔力](^trickster:concepts/mana)。宝石的稀有度不同,存储的量也不同。 - - -某些宝石制成晶结后会有特殊的性质。如紫水晶在制成晶结之时就已拥有魔力,但无法以已知方式再次填充;其他的宝石都不具有此性质。 - -;;;;; - -将晶结暴露在夜空下即可令其自然充能。新月和满月前后的充能速度最快,距两者时间相等的夜晚则完全无法充能。 - - -将晶结丢在地上、放在露天的[充能阵列](^trickster:items/charging_array)或[法术组构台](^trickster:items/spell_construct)中,均视作暴露在夜空下。丢出的可充能晶结不会被清除。 - -;;;;; - -大多数宝石和水晶都可通过[望月者之技巧](^trickster:ploys/mana#2)制成晶结。 - - -此技巧术有两个可选参数,其一为放有宝石的[槽位](^trickster:delusions_ingresses/inventory#4),其二为放有玻璃块的槽位。若未传入后者,则使用第一个可用的玻璃。若未传入前者,则使用第一个可用的紫水晶碎片。也即,如果不提供槽位信息,就无法以紫水晶之外的材料制作晶结。 - -;;;;; - -<|item-tag@trickster:templates|tag-id=trickster:spoilerless_mana_knots|> - -目前已知的几种晶结如下: - -- __紫水晶__\ -制作消耗:无\ -容量:128 kG -- __绿宝石__\ -制作消耗:512 kG -容量:1024 kG -- __钻石__\ -制作消耗:8192 kG -容量:16384 kG - -;;;;; - -其他宝石和水晶也有可能可以制成晶结,但必须一一测试才能证实。 +```json +{ + "title": "晶结", + "icon": "trickster:emerald_knot", + "category": "trickster:items", + "ordinal": 10 +} +``` + +晶结是包裹着玻璃球壳的宝石,能够存储一定量的[魔力](^trickster:concepts/mana)。宝石的稀有度不同,存储的量也不同。 + + +某些宝石制成晶结后会有特殊的性质。如紫水晶在制成晶结之时就已拥有魔力,但无法以已知方式再次填充;其他的宝石都不具有此性质。 + +;;;;; + +将晶结暴露在夜空下即可令其自然充能。新月和满月前后的充能速度最快,距两者时间相等的夜晚则完全无法充能。 + + +将晶结丢在地上、放在露天的[充能阵列](^trickster:items/charging_array)或[法术组构台](^trickster:items/spell_construct)中,均视作暴露在夜空下。丢出的可充能晶结不会被清除。 + +;;;;; + +大多数宝石和水晶都可通过[望月者之技巧](^trickster:ploys/mana#2)制成晶结。 + + +此技巧术有两个可选参数,其一为放有宝石的[槽位](^trickster:delusions_ingresses/inventory#4),其二为放有玻璃块的槽位。若未传入后者,则使用第一个可用的玻璃。若未传入前者,则使用第一个可用的紫水晶碎片。也即,如果不提供槽位信息,就无法以紫水晶之外的材料制作晶结。 + +;;;;; + +<|item-tag@trickster:templates|tag-id=trickster:spoilerless_mana_knots|> + +目前已知的几种晶结如下: + +- __紫水晶__\ +制作消耗:无\ +容量:128 G +- __绿宝石__\ +制作消耗:512 G +容量:1024 G +- __钻石__\ +制作消耗:8192 G +容量:16384 G + +;;;;; + +其他宝石和水晶也有可能可以制成晶结,但必须一一测试才能证实。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/leash_and_collar.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/leash_and_collar.md index 5b356fb9ddb5..17695bc2f9f1 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/leash_and_collar.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/leash_and_collar.md @@ -11,7 +11,7 @@ } ``` -*我拿出了缚环:不过是由普通的染色皮革制成,但其上魔法无人不知……* +*我拿出了缚环:仅是由普通的染色皮革制成,但其上魔法无人不知……* ——萨宁 @@ -29,5 +29,5 @@ 链接建立后,向捆索抄入法术再使用,即会以缚环佩戴者的身份进行施放。法术会占用佩戴者的法术槽,消耗佩戴者的魔力,且视作在佩戴者所处位置施放。不过,法术的第一参数会是使用捆索的实体。 -*……他欣然接受;他的自由相比法师的教诲而言,只是个微不足道的代价。* +*……他欣然接受;他的自由相比于法师的教诲,不过是微不足道的代价罢了。* ——萨宁 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/mirror_of_evaluation.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/mirror_of_evaluation.md index ea86ef590600..345ac9ea57c4 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/mirror_of_evaluation.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/mirror_of_evaluation.md @@ -1,32 +1,32 @@ -```json -{ - "title": "执行手镜", - "icon": "trickster:mirror_of_evaluation", - "category": "trickster:items", - "ordinal": 35 -} -``` - -执行手镜和实用的[卷轴与笔](^trickster:items/scroll_and_quill)极为相似。两者的主要区别在于:在使用手镜的过程中,它会贪婪地执行法术中的任意部件,只要可以执行就执行。 - - -比如说,你编写了一个子圆,又为其加上了两个子圆,再在这两个子圆里都画上[基础之错觉](^trickster:constants#1)。 - -;;;;; - -绘制时,这两个子圆的符记就会变成数“2”字面量。 - - -然后又比如说,在这两个子圆的父圆里画上[吞并之谋略](^trickster:distortions/arithmetic#2)。如此操作会立刻删去两个子圆,父圆的符记也会变为数“4”字面量。 - -;;;;; - -理解这些机制的最好方式,莫过于亲手实践: - - - -有一点需要注意。手镜虽然会尽其所能执行,但存储在其中的法术依然被视为“抄入”的法术。 - -;;;;; - -也即,手镜可通过所有常规的法术读写方法交互。 +```json +{ + "title": "执行手镜", + "icon": "trickster:mirror_of_evaluation", + "category": "trickster:items", + "ordinal": 35 +} +``` + +执行手镜和实用的[卷轴与笔](^trickster:items/scroll_and_quill)极为相似。两者的主要区别在于:在使用手镜的过程中,它会贪婪地执行法术中的任意部件,只要可以执行就执行。 + + +比如说,你编写了一个子圆,又为其加上了两个子圆,再在这两个子圆里都画上[基础之错觉](^trickster:constants#1)。 + +;;;;; + +绘制时,这两个子圆的符记就会变成数“2”字面量。 + + +然后又比如说,在这两个子圆的父圆里画上[吞并之谋略](^trickster:distortions/arithmetic#2)。如此操作会立刻删去两个子圆,父圆的符记也会变为数“4”字面量。 + +;;;;; + +理解这些机制的最好方式,莫过于亲手实践: + + + +有一点需要注意。手镜虽然会尽其所能执行,但存储在其中的法术依然被视为“抄入”的法术。 + +;;;;; + +也即,手镜可通过所有常规的法术读写方法交互。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/modular_spell_construct.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/modular_spell_construct.md index 0903059bf058..c9fe96a6b808 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/modular_spell_construct.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/modular_spell_construct.md @@ -1,16 +1,16 @@ -```json -{ - "title": "模块式法术组构台", - "icon": "trickster:modular_spell_construct", - "category": "trickster:items", - "ordinal": 100 -} -``` - -模块式法术组构台和简单的[法术组构台](^trickster:items/spell_construct)不同:它不会执行抄入的法术,而是可以在四角的槽位插入最多四枚[法术核心](^trickster:items/spell_core)。各个法术核心会并发执行,执行所需的魔力来自组构台中央的[晶结](^trickster:items/knots),并且所有法术核心共享[乌鸦之思](^trickster:tricks/basic#7)。 - -;;;;; - -此类组构台中的法术核心可以互相访问和委托任务,所使用的戏法与操纵玩家法术槽所用的一致。高水平的魔术师和戏法师可借此设计出持久执行的多线程法术。 - - +```json +{ + "title": "模块式法术组构台", + "icon": "trickster:modular_spell_construct", + "category": "trickster:items", + "ordinal": 100 +} +``` + +模块式法术组构台和简单的[法术组构台](^trickster:items/spell_construct)不同:它不会执行抄入的法术,而是可以在四角的槽位插入最多四枚[法术核心](^trickster:items/spell_core)。各个法术核心会并发执行,执行所需的魔力来自组构台中央的[晶结](^trickster:items/knots),并且所有法术核心共享[乌鸦之思](^trickster:tricks/basic#7)。 + +;;;;; + +此类组构台中的法术核心可以互相访问和委托任务,所使用的戏法与操纵玩家法术槽所用的一致。高水平的魔术师和戏法师可借此设计出持久执行的多线程法术。 + + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/ominous_spell_core.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/ominous_spell_core.md index 9c49042a1e94..f896c9c43d75 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/ominous_spell_core.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/ominous_spell_core.md @@ -1,13 +1,13 @@ -```json -{ - "title": "不祥法术核心", - "icon": "trickster:ominous_spell_core", - "category": "trickster:items", - "required_advancements": [ - "trickster:ominous_spell_core" - ], - "ordinal": 130 -} -``` - -[法术核心](^trickster:items/spell_core)的变种,出现在试炼密室的宝库中。它们执行法术的速度与玩家相当。其制作方法仍未解明,但它们与普通法术核心的区别只在于它们的那抹钻石光辉。 +```json +{ + "title": "不祥法术核心", + "icon": "trickster:ominous_spell_core", + "category": "trickster:items", + "required_advancements": [ + "trickster:ominous_spell_core" + ], + "ordinal": 130 +} +``` + +[法术核心](^trickster:items/spell_core)的变种,出现在试炼密室的宝库中。它们执行法术的速度与玩家相当。其制作方法仍未解明,但它们与普通法术核心的区别只在于它们的那抹钻石光辉。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/quartz_knot.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/quartz_knot.md index 9cc945ee1df1..d943603411ec 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/quartz_knot.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/quartz_knot.md @@ -6,7 +6,7 @@ "required_advancements": [ "trickster:quartz_knot" ], - "ordinal": 13 + "ordinal": 14 } ``` @@ -17,10 +17,20 @@ ;;;;; -不过,它还有一个特殊性质,足以抵消前述的缺点。如果将槽位传入为[收据之策略](^trickster:ploys/message#3)的第二参数,此戏法即可以监听物品的信息。 +不过,它还有若干特殊性质,足以抵消前述的缺点。 -大多数物品不会发出信息,但对这种晶结使用时——它真的回应了! +首先,将此晶结放入组构台后会小幅加快其施法速度。幅度确实不大,但就算只是能多执行几个圆也可以大幅增加法术的有效性。 + +;;;;; + +它的第二个独特之处要有趣得多。 + + +[收据之策略](^trickster:ploys/message#3)在第二参数处接收槽位时,即可以监听物品的消息。 + + +大多数物品不会回应,但对这种晶结使用时——它真的回应了! ;;;;; @@ -34,7 +44,7 @@ 把它放到耳边仔细听,就能听到晶结内部传来的轻微时钟滴答声…… -但是晶结却没有任何可移动的部件…… +但是晶结本身没有任何可移动的部件…… 好奇怪的东西…… diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/ring.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/ring.md index 44025cfa3db0..a66bbafb1b57 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/ring.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/ring.md @@ -1,12 +1,12 @@ -```json -{ - "title": "宏戒指", - "icon": "trickster:macro_ring", - "category": "trickster:items", - "ordinal": 50 -} -``` - -普通的金戒指,用于承载[宏](^trickster:concepts/macro)。 - - +```json +{ + "title": "宏戒指", + "icon": "trickster:macro_ring", + "category": "trickster:items", + "ordinal": 50 +} +``` + +普通的金戒指,用于承载[宏](^trickster:concepts/macro)。 + + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/rusted_spell_core.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/rusted_spell_core.md index 75a1b3261441..0030033c6208 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/rusted_spell_core.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/rusted_spell_core.md @@ -1,13 +1,13 @@ -```json -{ - "title": "生锈法术核心", - "icon": "trickster:rusted_spell_core", - "category": "trickster:items", - "required_advancements": [ - "trickster:rusted_spell_core" - ], - "ordinal": 120 -} -``` - -这些[法术核心](^trickster:items/spell_core)老旧而严重磨损,会出现在主世界四处遗落的箱子中。它们与其他法术核心不同,制作时使用的是普通金属,而现如今已经开始生锈了。非常不建议在不做完善准备的情况下使用此类法术核心。 +```json +{ + "title": "生锈法术核心", + "icon": "trickster:rusted_spell_core", + "category": "trickster:items", + "required_advancements": [ + "trickster:rusted_spell_core" + ], + "ordinal": 120 +} +``` + +这些[法术核心](^trickster:items/spell_core)出现在主世界四处遗落的箱子中,老旧且磨损严重。与其他法术核心不同,它们在制作时使用的是普通金属,到现在已经开始生锈了。非常不建议在不做完善准备的情况下使用此类法术核心。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/scroll_and_quill.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/scroll_and_quill.md index ea3417097a8c..e4eb5c1d3616 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/scroll_and_quill.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/scroll_and_quill.md @@ -1,45 +1,45 @@ -```json -{ - "title": "卷轴与笔", - "icon": "trickster:scroll_and_quill", - "category": "trickster:items", - "ordinal": 37 -} -``` - -卷轴与笔是编写与存储复杂而可重用法术的便捷工具。 - - -手持右击会打开[法术抄绘](^trickster:editing)界面,可在其中直接修改卷轴上的法术。 - - -卷轴可以存放在[高顶礼帽](^trickster:items/top_hat)中,方便获取,还能保证其安全。 - -;;;;; - -卷轴上写有的法术可通过[记事员之错觉](^trickster:tricks/basic#3)读出。也可以用[记事员之技巧](^trickster:tricks/basic#4)程序化写入卷轴。 - - - -;;;;; - -在工作台中合成卷轴和任意染料可以为其染色: - -<|item-tag@trickster:templates|tag-id=trickster:dyed_scroll_and_quill|> - -手持卷轴与笔Shift右击可为卷轴署名。如此可为卷轴定制名称,无需消耗任何资源。这之后,卷轴就无法再以任何方式写入。 - -;;;;; - -不过,署过名的卷轴中可以注入一到八瓶法术墨水。法术墨水是一种特殊的制剂,能给卷轴注入仅限单次使用的魔力。 - - -融有魔力的卷轴可以直接施放,不会对施法者造成危害,但这么做会损毁卷轴。 - -;;;;; - -单次使用的卷轴内部有一魔力储库。制作时放入的法术墨水份数乘以100,即为该储库的容量。 - - - -不可食用! +```json +{ + "title": "卷轴与笔", + "icon": "trickster:scroll_and_quill", + "category": "trickster:items", + "ordinal": 37 +} +``` + +卷轴与笔是编写与存储复杂而可重用法术的便捷工具。 + + +手持右击会打开[法术抄绘](^trickster:editing)界面,可在其中直接修改卷轴上的法术。 + + +卷轴可以存放在[帽子](^trickster:items/top_hat)中,方便获取,还能保证其安全。 + +;;;;; + +卷轴上写有的法术可通过[记事员之错觉](^trickster:tricks/basic#3)读出。也可以用[记事员之技巧](^trickster:tricks/basic#4)程序化写入卷轴。 + + + +;;;;; + +在工作台中将卷轴和任意染料合成可以为卷轴染色: + +<|item-tag@trickster:templates|tag-id=trickster:dyed_scroll_and_quill|> + +手持卷轴与笔Shift右击可为卷轴署名。如此可为卷轴定制名称,无需消耗任何资源。这之后,卷轴就无法再以任何方式写入。 + +;;;;; + +不过,署过名的卷轴中可以注入1到8瓶法术墨水。法术墨水是一种特殊的制剂,能给卷轴注入仅限单次使用的魔力。 + + +融有魔力的卷轴可以直接施放,不会对施法者造成危害,但这么做会损毁卷轴。 + +;;;;; + +单次使用的卷轴内部有一魔力储库。制作时放入的法术墨水份数乘以100,即为该储库的容量。 + + + +不可食用! diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/scroll_shelf.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/scroll_shelf.md index f6111689ca5d..68fb1bed8dd2 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/scroll_shelf.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/scroll_shelf.md @@ -1,19 +1,19 @@ -```json -{ - "title": "卷轴架", - "icon": "trickster:scroll_shelf", - "category": "trickster:items", - "ordinal": 70 -} -``` - -卷轴架是存储卷轴的好方式,也能在视觉上直接展示出你的法术藏品。此方块的功能与雕纹书架类似,手持卷轴右击其前方的空槽位,即可将卷轴放入其中,再次点击就可取出。 - -;;;;; - -经过染色的卷轴放到卷轴架中后,会显示为其染料颜色。将十字准星对准卷轴时,其上会显示其名称以便检索。 - - -卷轴架可与漏斗交互。 - - +```json +{ + "title": "卷轴架", + "icon": "trickster:scroll_shelf", + "category": "trickster:items", + "ordinal": 70 +} +``` + +卷轴架是存储卷轴的好方式,也能在视觉上直接展示出你的法术藏品。此方块的功能与雕纹书架类似,手持卷轴右击其前方的空槽位,即可将卷轴放入其中,再次点击就可取出。 + +;;;;; + +经过染色的卷轴放到卷轴架中后,会显示为其染料颜色。将十字准星对准卷轴时,会在准星上显示其名称以便检索。 + + +卷轴架可与漏斗交互。 + + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/spell_construct.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/spell_construct.md index 754e8eb61101..bd6afa112efc 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/spell_construct.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/spell_construct.md @@ -1,19 +1,19 @@ -```json -{ - "title": "法术组构台", - "icon": "trickster:spell_construct", - "category": "trickster:items", - "ordinal": 90 -} -``` - -法术组构台是一种较为简单的设备,抄入法术再放置出来,即会持久施放所抄的法术。 - - -组构台最适用于对世界中的变化产生反应,或是会周期性触发的[长时运行](^trickster:concepts/multi_tick)法术。 - -;;;;; - -如果需要提供魔力源,可手持[晶结](^trickster:items/knots)右击组构台的中心以放入。还可Shift右击组构台以重置当前法术,并清除之前产生的失策。 - - +```json +{ + "title": "法术组构台", + "icon": "trickster:spell_construct", + "category": "trickster:items", + "ordinal": 90 +} +``` + +法术组构台是一种较为简单的设备,抄入法术再放置出来,即会持久施放所抄的法术。 + + +组构台最适用于要对世界中的变化产生反应、或是要周期性触发的[长时运行](^trickster:concepts/multi_tick)法术。 + +;;;;; + +如果需要提供魔力源,可手持[晶结](^trickster:items/knots)右击组构台的中心以放入。还可Shift右击组构台以重置当前法术,并清除之前产生的失策。 + + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/spell_core.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/spell_core.md index f1461cf72197..4a7ef3d7d576 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/spell_core.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/spell_core.md @@ -1,16 +1,16 @@ -```json -{ - "title": "法术核心", - "icon": "trickster:spell_core", - "category": "trickster:items", - "ordinal": 110 -} -``` - -法术核心可以插入[模块式法术组构台](^trickster:items/modular_spell_construct),并在其中以玩家的75%速度运行抄入的法术。 - -;;;;; - -为制造一个法术核心,必须使用一枚紫水晶的碎片作为*通路*,一颗末地的珍珠作为*心脏*,一缕金线作为*意识*,一圈皮革环作为*守卫*。 - - \ No newline at end of file +```json +{ + "title": "法术核心", + "icon": "trickster:spell_core", + "category": "trickster:items", + "ordinal": 110 +} +``` + +法术核心可以插入[模块式法术组构台](^trickster:items/modular_spell_construct),并在其中以玩家的75%速度运行抄入的法术。 + +;;;;; + +为制造一个法术核心,必须使用一枚紫水晶的碎片作为*通路*,一颗末地的珍珠作为*心脏*,一缕金线作为*意识*,一圈皮革环作为*守卫*。 + + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/spell_resonator.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/spell_resonator.md index c8bb34461115..ba74bcea3a85 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/spell_resonator.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/spell_resonator.md @@ -1,17 +1,17 @@ -```json -{ - "title": "法术谐振器", - "icon": "trickster:spell_resonator", - "category": "trickster:items", - "ordinal": 140 -} -``` - -一件简单的设备,能向所依附的方块发出任意强度的红石信号。 - - -可分别通过[谐振之技巧](^trickster:ploys/block#12)和[谐振之辑流](^trickster:delusions_ingresses/block#5)配置与查询其红石信号。 - -;;;;; - - +```json +{ + "title": "法术谐振器", + "icon": "trickster:spell_resonator", + "category": "trickster:items", + "ordinal": 150 +} +``` + +一件简单的设备,能向所依附的方块发出任意强度的红石信号。 + + +可分别通过[谐振之技巧](^trickster:ploys/block#12)和[谐振之辑流](^trickster:delusions_ingresses/block#5)配置与查询其红石信号。 + +;;;;; + + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/top_hat.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/top_hat.md index 921b0bc6cf2e..826d1dd3e0d0 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/top_hat.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/top_hat.md @@ -1,36 +1,36 @@ -```json -{ - "title": "帽子", - "icon": "trickster:top_hat", - "category": "trickster:items", - "ordinal": 40 -} -``` - -戏法师的帽子是一件相当精巧的物什。戴在头上后,施法者按下键即可将帽子迅速取到副手中。 - - -副手持有帽子时可以右击打开,其中能容纳27张卷轴。持有帽子时按住Shift滚动滚轮,可以切换选中哪张卷轴。 - -;;;;; - -若是一条正在执行的法术试图通过[记事员之错觉](^trickster:tricks/basic#3)访问另一只手中的法术,则它会转而读取所持帽子中选定的卷轴。 - - -还可以通过[颅骨之谋略](^trickster:delusions_ingresses/imports#3)访问帽中任意槽位的法术,或是通过[颅骨之错觉](^trickster:delusions_ingresses/inventory#7)读出所选槽位中的法术。 - -;;;;; - -帽子有多种不同款式,可随心意挑选。它们的功能完全一致。 - - -经典款高顶礼帽: - - -;;;;; - -神秘的女巫帽: - - -甚至还有朴实(但很酷)的菲斯帽: - +```json +{ + "title": "帽子", + "icon": "trickster:top_hat", + "category": "trickster:items", + "ordinal": 40 +} +``` + +戏法师的帽子是一件相当精巧的物什。戴在头上后,按下键即可将帽子迅速取到副手中。 + + +副手持有帽子时可以右击打开,其中能容纳27张卷轴。持有帽子时按住Shift滚动滚轮,可以切换选中哪张卷轴。 + +;;;;; + +若是一条正在执行的法术试图通过[记事员之错觉](^trickster:tricks/basic#3)访问另一只手中的法术,则它会转而读取所持帽子中选定的卷轴。 + + +还可以通过[颅骨之谋略](^trickster:delusions_ingresses/imports#3)访问帽中任意槽位的法术,或是通过[颅骨之错觉](^trickster:delusions_ingresses/inventory#7)读出所选槽位中的法术。 + +;;;;; + +帽子有多种不同款式,可随心意挑选。它们的功能完全一致。 + + +经典款高顶礼帽: + + +;;;;; + +神秘的女巫帽: + + +甚至还有朴实(但很酷)的菲斯帽: + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/wand.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/wand.md index 97620097268a..0257bcb7ae0e 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/wand.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/wand.md @@ -1,14 +1,14 @@ -```json -{ - "title": "魔杖", - "icon": "trickster:wand", - "category": "trickster:items", - "ordinal": 30 -} -``` - -魔杖是一件相当简单的魔法工具,手持右击时其会施放抄入其中的法术。 - - - -可通过[记事员之技巧](^trickster:tricks/basic#4)向魔杖抄入法术。 +```json +{ + "title": "魔杖", + "icon": "trickster:wand", + "category": "trickster:items", + "ordinal": 30 +} +``` + +魔杖是一件相当简单的魔法工具,手持右击时会施放抄入其中的法术。 + + + +可通过[记事员之技巧](^trickster:tricks/basic#4)向魔杖抄入法术。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/warding_charm.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/warding_charm.md index 869fa8221d0e..1e913b44b8be 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/warding_charm.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/items/warding_charm.md @@ -1,12 +1,12 @@ -```json -{ - "title": "戒守护符", - "icon": "trickster:warding_charm", - "category": "trickster:items", - "ordinal": 60 -} -``` - -基础的魔法饰品,能够承载用作[戒守](^trickster:concepts/ward)的法术。 - - +```json +{ + "title": "戒守护符", + "icon": "trickster:warding_charm", + "category": "trickster:items", + "ordinal": 60 +} +``` + +基础的魔法饰品,能够承载用作[戒守](^trickster:concepts/ward)的法术。 + + diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/landing_page.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/landing_page.md index aef8a972a9f9..502753ecf522 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/landing_page.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/landing_page.md @@ -1,7 +1,7 @@ -```json -{ - "title": "魔术把戏秘典" -} -``` - -<|spell-preview@trickster:templates|spell=YwyT9+Z3YJjPxgRiMLg4cDGDGIwMDgyMIAZHCAMDg9azL5ogToCHQydYdIMPA0RakYGJEcwI4HHoxKcQaGAnE4TBwAEWYWBUQLICjxkLGhwaoVqZIArBDAYAAInoArsAAAA=|> +```json +{ + "title": "魔术把戏秘典" +} +``` + +<|spell-preview@trickster:templates|spell=YwyT9+Z3YJjPxgRiMLg4cDGDGIwMDgyMIAZHCAMDg9azL5ogToCHQydYdIMPA0RakYGJEcwI4HHoxKcQaGAnE4TBwAEWYWBUQLICjxkLGhwaoVqZIArBDAYAAInoArsAAAA=|> diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/block.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/block.md index c361cad3d08d..a94275eb7f8d 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/block.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/block.md @@ -1,153 +1,125 @@ -```json -{ - "title": "方块交互", - "icon": "minecraft:string", - "category": "trickster:ploys", - "additional_search_terms": [ - "摧毁之技巧", - "造物之技巧", - "交换之技巧", - "轻羽之技巧", - "赋权之技巧", - "撤权之技巧", - "损蚀之技巧", - "花卉之技巧", - "盈水之技巧", - "光辉之技巧", - "谐振之技巧" - ] -} -``` - -本节中的图案会直接操作世界中的方块。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:break_block,title=摧毁之技巧|> - -vector -> vector - -<|cost-rule@trickster:templates|formula=max(硬度 * 1kG\, 8kG)|> - -破坏给定位置处的方块。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:place_block,title=造物之技巧|> - -vector, slot, [vector, vector] | - -vector, block, [vector, vector] -> vector - -<|cost-rule@trickster:templates|formula=max(距离 * 1kG\, 8kG)|> - -将所给方块放置在所给位置处。会消耗物品。 - -;;;;; - -此技巧术还会接受两个额外参数。 - -- 第一个参数用于指定放置的方向。 -- 第二个参数用于指定放置时,应与相邻方块的哪一面进行交互。 - -部分方块的朝向和其他属性可能会因这些参数而产生变化。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:change_weight,title=轻羽之技巧|> - -vector, number -> entity - -<|cost-rule@trickster:templates|formula=60kG * (1 - 倍数)|> - -给定0到1之间的数,让所给位置处方块所受重力变为原重力与所给数的积,令其向上飘浮。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:swap_block,title=交换之技巧|> - -vector, vector -> - -<|cost-rule@trickster:templates|formula=60kG + 距离 * 1kG|> - -交换世界中两个位置处的方块。两处均不允许为空气。 - -;;;;; - -<|page-title@lavender:book_components|title=笔记:加热与冷却|>向方块灌入大量魔力可加热方块,从中抽出大量魔力可冷却。 - - -某些方块经受此类极端温度变化后会变为有用的事物,不过如此操作会对其周围方块产生附带效果。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:heat,title=赋权之技巧|> - -vector -> vector - -<|cost-rule@trickster:templates|formula=80kG|> - -立即猛烈加热所给方块。 - - -可借此高效加热熔炉。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:cool,title=撤权之技巧|> - -vector -> vector - -<|cost-rule@trickster:templates|formula=80kG|> - -立即让所给方块大幅冷却。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:erode,title=损蚀之技巧|> - -vector, vector -> vector - -<|cost-rule@trickster:templates|formula=80kG|> - -使用第二个位置处的水锈蚀第一个位置处的方块。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:conjure_flower,title=花卉之技巧|> - -vector -> vector - -<|cost-rule@trickster:templates|formula=5kG|> - -在所给位置处随机构筑一朵花。下方方块的顶面需为土壤。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:conjure_water,title=盈水之技巧|> - -vector -> vector - -<|cost-rule@trickster:templates|formula=15kG|> - -在所给位置处构筑出一潭水。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:conjure_light,title=光辉之技巧|> - -vector -> vector - -<|cost-rule@trickster:templates|formula=20kG|> - -在所给位置处构筑出一个永久性光源。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:power_resonator,title=谐振之技巧|> - -vector, number -> boolean - -<|cost-rule@trickster:templates|formula=距离 / 2kG|> - -令所给位置处[法术谐振器](^trickster:items/spell_resonator)产生所给强度的信号,强度需在0到15之间。 +```json +{ + "title": "方块交互", + "icon": "minecraft:string", + "category": "trickster:ploys", + "additional_search_terms": [ + "摧毁之技巧", + "造物之技巧", + "交换之技巧", + "羽落之技巧", + "赋权之技巧", + "撤权之技巧", + "损蚀之技巧", + "花卉之技巧", + "盈水之技巧", + "光辉之技巧", + "谐振之技巧" + ] +} +``` + +本节中的图案会直接操作世界中的方块。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:break_block,cost=max(硬度 * 1G\, 8G)|> + +破坏给定位置处的方块。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:place_block,cost=max(距离 * 1G\, 8G)|> + +将所给方块放置在所给位置处。会消耗物品。 + +;;;;; + +放置时使用何种方块由槽位引用或方块类型片段决定。 + + +若传入方块类型,则选取施法者物品栏中首个可用的该类型物品。 + +;;;;; + +造物之技巧还会接受两个额外参数。 + +- 第一个参数用于指定放置的方向。 +- 第二个参数用于指定放置时,应与相邻方块的哪一面进行交互。 + +部分方块的朝向和其他属性可能会因这些参数而产生变化。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:change_weight,cost=10G + 30G * (1 - 倍数)|> + +给定0到1之间的数,让所给位置处方块所受重力变为原重力与所给数的积,令其变为受重力影响的实体。 + +;;;;; + +如果不重新施加,羽落之技巧的重力操纵效果通常会在约一秒后消失。 + + +再次对受影响的方块使用此技巧术可延长效果持续时间,即便方块已经接触到地面也是一样。 + +;;;;; + +如果需要强行撤去此戏法的影响,且不考虑方块的位置和状态,可对其使用倍数为1的羽落之技巧。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:swap_block,cost=60G + 距离 * 1G|> + +交换世界中两个位置处的方块。两处均不允许为空气。 + +;;;;; + +<|page-title@lavender:book_components|title=笔记:加热与冷却|>向方块灌入大量魔力可加热方块,从中抽出大量魔力可让其冷却。 + + +某些方块经受此类极端温度变化后会变成有用的事物,不过如此操作也会对其周围方块产生附带的副作用。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:heat,cost=80G|> + +立即猛烈加热所给方块。 + + +可借此高效加热熔炉。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:cool,cost=80G|> + +立即让所给方块大幅冷却。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:erode,cost=80G|> + +使用第二个位置处的水锈蚀第一个位置处的方块。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:conjure_flower,cost=5G|> + +在所给位置处随机构筑一朵花。下方方块的顶面需为土壤。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:conjure_water,cost=15G|> + +在所给位置处构筑出水,水量恰好够装满一个铁桶。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:conjure_light,cost=20G|> + +在所给位置处构筑出一个永久性光源。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:power_resonator,cost=4G|> + +令所给位置处[法术谐振器](^trickster:items/spell_resonator)产生所给强度的信号,强度需在0到15之间。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/entity.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/entity.md index be04d26f28c5..e844bf3fc85f 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/entity.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/entity.md @@ -1,99 +1,88 @@ -```json -{ - "title": "实体交互", - "icon": "minecraft:sheep_spawn_egg", - "category": "trickster:ploys", - "additional_search_terms": [ - "动能之技巧", - "轻羽之技巧", - "篡夺者之技巧", - "变身之技巧", - "解除变身之技巧", - "收容之技巧", - "释脱之技巧", - "居形之技巧" - ] -} -``` - -与操纵实体有关的各种戏法。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:add_velocity,title=动能之技巧|> - -entity, vector -> entity - -<|cost-rule@trickster:templates|formula=3kG + 向量长度^3 * 2kG|> - -将所给向量视为速度,并施予所给实体。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:change_weight,title=轻羽之技巧|> - -entity, number -> entity - -<|cost-rule@trickster:templates|formula=60kG * (1 - 倍数)|> - -给定0到1之间的数,若实体为生物实体,则让其所受重力变为原重力与所给数的积,持续1秒。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:displace,title=篡夺者之技巧|> - -entity, vector -> entity - -<|cost-rule@trickster:templates|formula=20kG + 1.35^长度|> - -在两秒后按照所给向量令给定实体位移。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:polymorph,title=变身之技巧|> - -entity, entity -> - -<|cost-rule@trickster:templates|formula=8000kG|> - -将第一个实体变身为第二个实体,仅会变换外形。**目前只对玩家有效。** - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:dispel_polymorph,title=解除变身之技巧|> - -entity -> entity - -<|cost-rule@trickster:templates|formula=1000kG|> - -解除所给实体上的变身效果。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:store_entity,title=收容之技巧|> - -entity -> - -<|cost-rule@trickster:templates|formula=2000kG + 距离 ^ (距离 / 5kG)|> - -将所给实体存储到施法者的副手物品中。该物品必须能存储实体,且实体不可为玩家。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:release_entity,title=释脱之技巧|> - -vector -> entity | void - -<|cost-rule@trickster:templates|formula=2000kG + 距离 ^ (距离 / 5kG)|> - -将存储在施法者副手物品中的实体释放到给定位置,并返回该实体。若无实体,返回void。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:set_scale,title=居形之技巧|> - -entity, number -> entity - -<|cost-rule@trickster:templates|formula=abs(当前尺寸 - 新尺寸)^2 * 100kG + 新尺寸 * 50kG|> - -变动所给实体的尺寸。目标尺寸不可小于原大的0.0625,也不可大于原大的8倍。 +```json +{ + "title": "实体交互", + "icon": "minecraft:sheep_spawn_egg", + "category": "trickster:ploys", + "additional_search_terms": [ + "动能之技巧", + "羽落之技巧", + "篡夺者之技巧", + "变身之技巧", + "解除变身之技巧", + "收容之技巧", + "释脱之技巧", + "居形之技巧" + ] +} +``` + +*“你们之前应该读到过曼顿效应吧?它确实很奇怪。* + + +*“没人知道这些限制为什么以现有的形态存在,但也可能只是我们还没找到正确的解读方法。但不管怎么说,我们都要每时每刻谨记它们。”* + + +——摘自橄榄石教授的讲座 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:change_weight,cost=10G + 30G * (1 - 倍数)|> + +给定0到1之间的数,让给定活物所受重力变为原重力与所给数的积,持续1秒。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:add_velocity,cost=3G + 长度^3 * 2G|> + +将所给向量视为速度,并施予所给实体。 + +;;;;; + +动能之技巧的消耗积累极其迅速。在同一个1/20秒内多次施放该技巧术,*等价*于单次施放,且计算消耗时所用的长度为**各次施放向量长度之和**。 + + +因为此技巧术的消耗按照立方增长,在绝大多数情况下要避免产生前文提到的效应。若可行,可以考虑使用[挂起之转离](^trickster:tricks/functions#3)延迟下一次施放。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:set_scale,cost=abs(当前尺寸 - 新尺寸)^2 * 100G + 新尺寸 * 50G|> + +变动所给实体的尺寸。目标尺寸不可小于原大的0.0625,也不可大于原大的8倍。 + +;;;;; + +受此影响而发生尺寸变化的实体会缓慢变回其原本的尺寸,不断重复施放可阻断此效应。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:displace,cost=20G + 1.35G^长度|> + +在两秒后按照所给向量令给定实体位移。此技巧术的消耗拥有和动能之技巧类似的叠加效应。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:polymorph,cost=8000G|> + +将第一个实体的外形变为第二个实体。两个实体必须都是玩家。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:dispel_polymorph,cost=1000G|> + +解除所给实体具有的变身效果。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:store_entity,cost=2000G + 1G * 距离 ^ (距离 / 5)|> + +将所给实体存储到施法者的[帽子](^trickster:items/top_hat)中。帽子必须处于副手位置,且实体不得为玩家。 + +;;;;; + +某些实体无法被存到帽子里,通常是因为它们的体型太大。试图存储此类实体会导致失策。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:release_entity,cost=2000G + 1G * 距离 ^ (距离 / 5)|> + +将存储在施法者[帽子](^trickster:items/top_hat)中的实体释放到给定位置,并返回该实体的引用。若无实体,返回void。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/flecks.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/flecks.md index ca452af76b52..b177bf2550f9 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/flecks.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/flecks.md @@ -1,71 +1,59 @@ -```json -{ - "title": "视形", - "icon": "minecraft:ghast_tear", - "category": "trickster:ploys", - "additional_search_terms": [ - "营销员之技巧", - "艺术家之技巧", - "奥威尔之技巧" - ] -} -``` - -*人世茫茫,* - -*于间彷徨。* - - -*意识回环,* - -*于间镌廊。* - - -*目光乍落,* - -*于间显相,* - - -*华若天赐,* - -*人心向往。* - - -—— 欧阿菲利 - -;;;;; - -视形是对特定玩家显示数据的方法。视形只会显示短短一秒,因此需要不停刷新。 - - -所有制造视形的戏法都需要用作标识的数,后续其他施法者也可以用该数更新和覆写视形。戏法会返回该数,便于链式执行。视形还能接受一个玩家列表或玩家的可选参数,只有这些玩家能看见该视形。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:draw_spell,title=营销员之技巧|> - -number, vector, vector, spell, [number], [entity[] | entity] -> number - ---- - -在所给位置以所给朝向显示所给法术,缩放参数可选。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:draw_line,title=艺术家之技巧|> - -number, vector, vector, [entity[] | entity] -> number - ---- - -在所给位置间绘制线段。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:delete_fleck,title=奥威尔之技巧|> - -number, [entity[] | entity] -> number - ---- - -移除所给ID对应的视形。 +```json +{ + "title": "视形", + "icon": "minecraft:ghast_tear", + "category": "trickster:ploys", + "additional_search_terms": [ + "营销员之技巧", + "艺术家之技巧", + "奥威尔之技巧" + ] +} +``` + +*人世茫茫,* + +*于间彷徨。* + + +*意识回环,* + +*于间镌廊。* + + +*目光乍落,* + +*于间显相,* + + +*华若天赐,* + +*人心向往。* + + +——欧阿菲利 + +;;;;; + +视形是对特定玩家显示数据的方法。视形只会显示短短一秒,因此需要不停刷新。 + + +所有制造视形的戏法都需要用作标识的数,后续其他施法者也可以用该数更新和覆写视形。戏法会返回该数,便于链式执行。视形还能接受一个可选参数,需为玩家列表或玩家,指定后只有这些玩家能看见该视形。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:draw_spell|> + +在所给位置以所给朝向显示所给法术,缩放参数可选。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:draw_line|> + +在所给位置间绘制线段。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:delete_fleck|> + +移除所给ID对应的视形。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/inventory.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/inventory.md index 81f6fbf8f429..48a1b3ff994a 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/inventory.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/inventory.md @@ -1,44 +1,39 @@ -```json -{ - "title": "物品栏操纵", - "icon": "minecraft:chest", - "category": "trickster:ploys", - "additional_search_terms": [ - "祭献之技巧", - "骗徒之技巧", - "颅骨挪移之技巧" - ] -} -``` - -本节技巧术能与物品栏的槽位及其他特性交互。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:drop_stack_from_slot,title=祭献之技巧|> - -slot, vector, [number] -> entity - ---- - -在给定位置处丢出物品,并返回该物品实体。有丢出数目参数可选。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:swap_slot,title=骗徒之技巧|> - -slot, slot -> - ---- - -交换给定槽位的物品组。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:set_hat,title=颅骨挪移之技巧|> - -number -> boolean - ---- - -将施法者[高顶礼帽](^trickster:items/top_hat)的所选槽位设为该数,根据成功与否返回布尔值。 +```json +{ + "title": "物品栏操纵", + "icon": "minecraft:chest", + "category": "trickster:ploys", + "additional_search_terms": [ + "祭献之技巧", + "骗徒之技巧", + "组织者之技巧", + "颅骨挪移之技巧" + ] +} +``` + +本节的技巧术能与物品栏的槽位及其他特性交互。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:drop_stack_from_slot|> + +在给定位置处丢出物品,并返回该物品实体。丢出数目参数可选。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:swap_slot|> + +交换给定槽位的物品组。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:move_stack|> + +将所给槽位中的物品移动到另一个槽位,移动数量上限参数可选。可以合并和拆分物品组。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:set_hat|> + +将施法者[帽子](^trickster:items/top_hat)的所选槽位设为该数,根据成功与否返回布尔值。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/mana.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/mana.md index bc314d82bb60..c05d9b6d1524 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/mana.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/mana.md @@ -1,44 +1,55 @@ -```json -{ - "title": "黑夜中的幽光", - "icon": "trickster:echo_knot", - "category": "trickster:ploys", - "additional_search_terms": [ - "望月者之技巧", - "善流之技巧", - "恶流之技巧" - ] -} -``` - -用于制造[晶结](^trickster:items/knots)和在其间转移魔力的戏法。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:battery_creation,title=望月者之技巧|> - -[slot], [slot] -> - ---- - -使用所给槽位中的宝石和水晶及玻璃制造晶结。若未提供槽位参数,则使用紫水晶。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:push_mana,title=善流之技巧|> - -number, slot... | slot[] -> number - ---- - -向给定槽位的物品输送魔力,并返回实际传输的量。每个槽位最多传输的量有上限。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:pull_mana,title=恶流之技巧|> - -number, slot... | slot[] -> number - ---- - -从给定槽位的物品抽取魔力,并返回实际传输的量。每个槽位最多传输的量有上限。 +```json +{ + "title": "黑夜中的幽光", + "icon": "trickster:echo_knot", + "category": "trickster:ploys", + "additional_search_terms": [ + "望月者之技巧", + "善流之技巧", + "恶流之技巧" + ] +} +``` + +*mun en kon suli o lawa e mi* + + +*o pana tawa mi* + + +*o pona e mi* + + +——jan Enali + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:battery_creation|> + +使用玻璃及所给槽位中的宝石或水晶制造[晶结](^trickster:items/knots)。若未提供槽位参数,则使用紫水晶。 + +;;;;; + +<|page-title@lavender:book_components|title=笔记:魔力传输|>魔力只能在施法者的魔力储库与外部槽位间传输,而不是任意选取两个槽位即可。从多个槽位中抽取时,会从各槽位抽出等量魔力。而在向多个槽位输送时,魔力会在各槽位间均分。 + + +传输距离若少于16格,便不会产生损耗。 + +;;;;; + +长距离传输则会产生损耗。损耗量与传输距离和魔力传输量的积成正比。 + + +此损耗大致按照指数模式增长,会在100格左右达到50%的损耗量。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:push_mana|> + +从施法者的魔力储库中抽取魔力,送至给定槽位的物品,并返回实际传输的量。每个槽位的传输量有上限。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:pull_mana|> + +从给定槽位的物品抽取魔力,送至施法者的魔力储库,并返回实际传输的量。每个槽位的传输量有上限。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/mana_generation.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/mana_generation.md index 59c76029411b..6ac8ddc7b398 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/mana_generation.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/mana_generation.md @@ -9,14 +9,10 @@ } ``` -此处的技巧术可以用来生成魔力。它们通常会返回产出后因存储容量不足而消散的魔力的量。 +本节的技巧术可以用来生成魔力。它们会返回产出后因存储容量不足而消散的魔力的量。 ;;;;; -<|glyph@trickster:templates|trick-id=trickster:drain_matter,title=栽培师之技巧|> - -vector -> number - ---- +<|trick@trickster:templates|trick-id=trickster:drain_matter|> 可吸收给定位置处的柔软植物生物质,将其变为魔力。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/message.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/message.md index 8f0fefb5e5ab..1caee6857b75 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/message.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/message.md @@ -1,33 +1,35 @@ -```json -{ - "title": "法术间交流", - "icon": "minecraft:feather", - "category": "trickster:ploys", - "additional_search_terms": [ - "派遣之技巧", - "收据之技巧" - ] -} -``` - -本节的戏法能让不同法术间互相沟通交流。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:message_send,title=派遣之技巧|> - -any, [number] -> any - -<|cost-rule@trickster:templates|formula=max(0kG\, 范围 - 16kG)|> - -将传入的片段发送到16格内的所有法术。可给定范围参数扩展范围,此时需消耗魔力。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:message_listen,title=收据之技巧|> - -number -> any[] - ---- - -在收到消息的后一刻返回所有消息。必须指定超时时间,在此时间后无论收到消息与否均返回。 +```json +{ + "title": "法术间交流", + "icon": "minecraft:feather", + "category": "trickster:ploys", + "additional_search_terms": [ + "派遣之技巧", + "收据之技巧" + ] +} +``` + +本节的戏法能让原本相互独立的法术互相沟通交流。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:message_send,cost=max(0G\, 范围 - 16G)|> + +将传入的片段发送给16格内的所有法术。可给定范围参数扩展范围,此时需消耗魔力。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:message_listen|> + +在收到消息的后一刻返回所有消息。必须指定超时时间,在此时间后无论收到消息与否均返回。 + +;;;;; + +派遣之技巧的第二参数不只会接受数,槽位片段也可以。如可行,此情况下消息会*直接*发送给该槽位中的物品。 + + +收据之技巧也有此性质,可用其*直接*从物品中接受消息。 + + +不是所有物品都能用于传递消息。 \ No newline at end of file diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/misc.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/misc.md index 6d00146bdc85..acbda37af863 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/misc.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/misc.md @@ -1,58 +1,46 @@ -```json -{ - "title": "杂项技巧术", - "icon": "minecraft:iron_ingot", - "category": "trickster:ploys", - "additional_search_terms": [ - "天钉之技巧", - "清晰之技巧", - "混淆之技巧" - ] -} -``` - -没法分进其他章节的若干杂项技巧术。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:pin_chunk,title=天钉之技巧|> - -vector -> vector - -<|cost-rule@trickster:templates|formula=4kG|> - -将包含所给位置的区块完全加载4秒。 - -;;;;; - -<|page-title@lavender:book_components|title=笔记:条栏|>法术可在施法者的屏幕上将任意值显示为条栏。 - - -条栏由数标识,且可借此数随时修改。条栏的颜色由其标识符决定,同样的标识符必定产生同样的颜色。 - -;;;;; - -可向条栏传入一个数,视作0到1之间的比例;也可传入两个数,第一个数为当前量,第二个为最大量。 - - -更新时其会向父圆返回其值,方便链式执行。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:show_bar,title=清晰之技巧|> - -number, number, [number] -> number - ---- - -在施法者的屏幕中显示一个条栏,使用第一个数作为标识符,并显示第二个数。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:clear_bar,title=混淆之技巧|> - -number -> number - ---- - -立即清除施法者屏幕中标识符为所给数的条栏。 +```json +{ + "title": "杂项技巧术", + "icon": "minecraft:iron_ingot", + "category": "trickster:ploys", + "additional_search_terms": [ + "天钉之技巧", + "清晰之技巧", + "混淆之技巧" + ] +} +``` + +没法分进其他章节的若干杂项技巧术。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:pin_chunk,cost=4G|> + +将包含所给位置的区块完全加载4秒。 + +;;;;; + +<|page-title@lavender:book_components|title=笔记:条栏|>法术可在施法者的视野中将任意值显示为条栏。 + + +条栏由数标识,且可借此数随时修改。条栏的颜色由其标识符决定,同样的标识符必定产生同样的颜色。 + +;;;;; + +可向条栏传入一个数,视作0到1之间的比例;也可传入两个数,第一个数为当前量,第二个为最大量。 + + +可用清晰之技巧会向父圆返回其值,方便链式执行。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:show_bar|> + +在施法者的视野中显示一个条栏,使用第一个数作为标识符,并显示第二个数。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:clear_bar|> + +立即清除施法者视野中标识符为所给数的条栏。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/particle.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/particle.md index 664437386f0a..88a4f2650a5d 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/particle.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/particle.md @@ -1,22 +1,18 @@ -```json -{ - "title": "粒子", - "icon": "minecraft:firework_rocket", - "category": "trickster:ploys", - "additional_search_terms": [ - "繁盛之技巧" - ] -} -``` - -能在世界中显示粒子的多种技巧术。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:highlight,title=繁盛之技巧|> - -vector... | vector[] -> vector - ---- - -高亮给定的方块,返回第一个输入。 \ No newline at end of file +```json +{ + "title": "粒子", + "icon": "minecraft:firework_rocket", + "category": "trickster:ploys", + "additional_search_terms": [ + "繁盛之技巧" + ] +} +``` + +能在世界中显示粒子的多种技巧术。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:highlight|> + +令给定的方块高亮1秒,直接返回第一个输入。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/projectile.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/projectile.md index cdddcf95ecf7..a73b4ec278b5 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/projectile.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/ploys/projectile.md @@ -1,55 +1,42 @@ -```json -{ - "title": "弹射物", - "icon": "minecraft:fire_charge", - "category": "trickster:ploys", - "additional_search_terms": [ - "弩炮之技巧", - "火焰术师之技巧", - "巨龙之技巧", - "爆破师之技巧" - ] -} -``` - -能操纵弹射物的戏法。本节戏法会消耗施法者物品栏中的物品,或是需要提供槽位信息。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:summon_arrow,title=弩炮之技巧|> - -vector, [slot] -> entity - -<|cost-rule@trickster:templates|formula=20kG + 距离 ^ (距离 / 3kG)|> - -在给定位置召唤一根箭,并返回其实体。需要消耗箭。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:summon_fireball,title=火焰术师之技巧|> - -vector, [slot] -> entity - -<|cost-rule@trickster:templates|formula=20kG + 距离 ^ (距离 / 3kG)|> - -在给定位置召唤一个火球,并返回其实体。需要消耗火焰弹。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:summon_dragon_breath,title=巨龙之技巧|> - -vector, [slot], [slot] -> entity - -<|cost-rule@trickster:templates|formula=20kG + 距离 ^ (距离 / 3kG)|> - -在给定位置召唤一个末影龙火球,并返回其实体。需要消耗龙息和火焰弹。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:summon_tnt,title=爆破师之技巧|> - -vector, [slot] -> entity - -<|cost-rule@trickster:templates|formula=20kG + 距离 ^ (距离 / 3kG)|> - -在给定位置召唤一个激活的TNT,并返回其实体。需要消耗TNT。 +```json +{ + "title": "弹射物", + "icon": "minecraft:fire_charge", + "category": "trickster:ploys", + "additional_search_terms": [ + "弩炮之技巧", + "火焰术师之技巧", + "巨龙之技巧", + "爆破师之技巧" + ] +} +``` + +能操纵弹射物的戏法。本节戏法会消耗施法者物品栏中的物品,或是需要提供槽位信息。 + + +它们的消耗会随距离变长而极其快速地增长,最好在距施法者较近的位置使用它们。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:summon_arrow,cost=20G + 1G * 距离 ^ (距离 / 3)|> + +在给定位置召唤一根箭,并返回其实体。需要消耗箭。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:summon_fireball,cost=20G + 1G * 距离 ^ (距离 / 3)|> + +在给定位置召唤一个火球,并返回其实体。需要消耗火焰弹。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:summon_dragon_breath,cost=20G + 1G * 距离 ^ (距离 / 3)|> + +在给定位置召唤一个末影龙火球,并返回其实体。需要消耗龙息和火焰弹。 + +;;;;; + +<|ploy@trickster:templates|trick-id=trickster:summon_tnt,cost=20G + 1G * 距离 ^ (距离 / 3)|> + +在给定位置召唤一个激活的TNT,并返回其实体。需要消耗TNT。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/basic.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/basic.md index ed1b581df950..c192c95c2ec5 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/basic.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/basic.md @@ -1,102 +1,77 @@ -```json -{ - "title": "基础戏法", - "icon": "minecraft:bricks", - "category": "trickster:tricks", - "additional_search_terms": [ - "记事员之辑流", - "记事员之技巧", - "禁文记事员之技巧", - "畏真者之技巧", - "展示之技巧", - "乌鸦灵思之错觉", - "乌鸦灵思之技巧" - ] -} -``` - -本节列出了最为基础也最为通用的戏法。推荐每一位雄心勃勃的魔术师和戏法师都学会这些戏法。 - -;;;;; - -<|page-title@lavender:book_components|title=笔记:抄入的片段|>只要某一物品可存储在玩家物品栏中,那就可以抄入法术片段。若抄入的是方块,放置后其上法术片段即会消失。 - - -某些物品抄入法术后会具有额外的交互功能,如[魔杖](^trickster:items/wand)会在右击时施放法术片段。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:read_spell,title=记事员之辑流|> - -[slot] -> any - ---- - -从给定槽位或施法者副手中的物品读出法术片段;若无片段则返回void。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:write_spell,title=记事员之技巧|> - -any, [slot] -> any - ---- - -将法术片段抄入所给槽位中或施法者副手中的物品。在片刻之后返回其输入值。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:write_closed_spell,title=禁文记事员之技巧|> - -any, [slot] -> any - ---- - -与记事员之技巧相同,但抄入的片段无法以常规方式读出。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:clear_spell,title=畏真者之技巧|> - -[slot] -> - ---- - -清除所给槽位中或施法者副手中物品上的法术片段。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:reveal,title=展示之技巧|> - -any... -> any - ---- - -将给定的所有值作为聊天信息发送给施法者,返回第一参数。 - -;;;;; - -<|page-title@lavender:book_components|title=笔记:乌鸦之思|>乌鸦之思(不应与其他黑鸟之思混淆)能让法术存入或取回一个法术片段,且该片段会在不同次施法间**保留**。 - - -乌鸦之思可以用作计数器,用来标记位置,以及用来选定目标。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:read_crow_mind,title=乌鸦灵思之错觉|> - --> any - ---- - -返回施法者乌鸦之思中的值。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:write_crow_mind,title=乌鸦灵思之技巧|> - -any -> any - ---- - -将所给值存进施法者的乌鸦之思,并覆盖其中的值。 +```json +{ + "title": "基础戏法", + "icon": "minecraft:bricks", + "category": "trickster:tricks", + "additional_search_terms": [ + "记事员之辑流", + "记事员之技巧", + "禁文记事员之技巧", + "畏真者之技巧", + "展示之技巧", + "乌鸦灵思之错觉", + "乌鸦灵思之技巧" + ] +} +``` + +*“基础知识可以说是所有技能体系中最重要的部分,时不时回过头温习不丢人。”* + + +——摘自橄榄石教授的讲座 + +;;;;; + +<|page-title@lavender:book_components|title=笔记:抄入的片段|>只要某一物品可存储在玩家物品栏中,那就可以抄入法术片段。若抄入的是方块,放置后其上法术片段即会消失。 + + +某些物品抄入法术后会具有额外的交互功能,如[魔杖](^trickster:items/wand)会在右击时施放法术片段。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:read_spell|> + +从给定槽位中的物品读出法术片段,未指定槽位则从施法者副手读取。读取位置无片段则返回void。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:write_spell|> + +将法术片段抄入所给槽位中的物品,未指定槽位则抄入施法者副手。会在执行一次[衰退](^trickster:concepts/fragment_decay)之后返回其输入值。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:write_closed_spell|> + +与记事员之技巧相同,但抄入的片段无法以常规方式读出。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:clear_spell|> + +清除所给槽位中物品上的法术片段,未指定槽位则清除施法者副手。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:reveal|> + +将给定的所有值作为聊天消息发送给施法者,返回第一参数。 + +;;;;; + +<|page-title@lavender:book_components|title=笔记:乌鸦之思|>乌鸦之思(不应与其他黑鸟之思混淆)能让法术存入或取回一个法术片段,且该片段会在不同次施法间**保留**。 + + +乌鸦之思可以用作计数器,用来标记位置,以及用来选定目标。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:read_crow_mind|> + +返回施法者乌鸦之思中的值。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:write_crow_mind|> + +将所给值存进施法者的乌鸦之思,并覆盖其中的值。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/cost.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/cost.md index f76bbe9b91c7..69516b2e84dc 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/cost.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/cost.md @@ -16,14 +16,10 @@ 在收到多封来自魔术把戏股份有限公司总部关于本模组平衡性的投诉信后,我们决定正式实装物质层面上的法术消耗。 -但是,玩家们的自由和选择权利也对我们至关重要。因此,本系统不作强制要求。 +但是,玩家们的选择权利和自由也是至关重要的。因此,本系统不作强制要求。 ;;;;; -<|glyph@trickster:templates|trick-id=trickster:cost,title=消耗之技巧|> +<|trick@trickster:templates|trick-id=trickster:cost|> --> - ---- - -消耗施法者物品栏中的一个紫水晶碎片。若无则产生失策。 +消耗施法者物品栏中的一个紫水晶碎片。没有对应物品会导致失策。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/functions.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/functions.md index 72687d79479c..84b9a56d1026 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/functions.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/functions.md @@ -1,136 +1,138 @@ -```json -{ - "title": "法术转离", - "icon": "minecraft:paper", - "category": "trickster:tricks", - "additional_search_terms": [ - "挂起之转离", - "宏伟之转离", - "静默之转离", - "器具之转离", - "折叠之转离", - "谨慎之转离", - "奇点之转离", - "行刑者之转离" - ] -} -``` - -普通的值可以创建、传递、为法术所用,法术自身的片段同样可以。 - - -将圆嵌套到其他圆的内部作为内圆符记,但不为外圆创建子圆,则外圆执行时会将其内圆返回为法术片段。 - -;;;;; - -然后就可对该片段执行多种操作,比如通过[记事员之技巧](^trickster:tricks/basic#4)写入其他物品,或是晚些时候再施放,甚至是在同一个法术中多次施放。 - - -也可以向法术片段传入其自身,然后在那里再次执行,借用递归制造循环。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:delay_execution,title=挂起之转离|> - -[number] -> number - ---- - -将当前法术的执行延迟所给数刻,未指定则延迟一刻。返回延迟量。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:execute,title=宏伟之转离|> - -spell, any... -> any - ---- - -相当强大的戏法,会执行所给法术片段,将其他输入作为执行时的参数。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:execute_same_scope,title=静默之转离|> - -spell -> any - ---- - -执行所给法术,以当前法术的参数作为其参数。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:fork,title=器具之转离|> - -spell, any... -> number - ---- - -为所给法术分配一个空法术槽。返回所占用法术槽的索引,若未能成功分配则返回一个负数。 - -;;;;; - -<|page-title@lavender:book_components|title=笔记:集合|>集合是一类法术片段,其中装有其他法术片段,且可通过特定键访问。列表是集合的一种,键为零到列表长度之间的整数,左闭右开。映射也是集合的一种,其键可为任意量,且不会按照插入顺序自动分配。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:fold,title=折叠之转离|> - -spell, collection, any -> any - ---- - -对集合中的所有元素执行所给法术,第三参数传入为第一次迭代时的“上一迭代的结果”参数。 - -;;;;; - -每次迭代都有四个输入参数: - ---- - -any, any, any, collection - ---- - -第一参数为上一迭代的结果,第二参数为当前操作的值,第三参数为当前操作的键,第四参数为所给集合。 - -;;;;; - -每次迭代的执行结果均会用作下一次迭代的第一参数,最后一次迭代的结果即是整个戏法的结果。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:try_catch,title=谨慎之转离|> - -spell, spell, any... -> any - ---- - -尝试执行第一法术参数。若产生失策,换而执行第二法术参数并静默该失策。其他输入值同时用作两个法术的参数。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:atomic,title=奇点之转离|> - -spell, any... -> any - ---- - -在单刻内执行所给法术。若法术过大,或产生非法操作,则导致失策。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:kill_thread,title=行刑者之转离|> - -[number] -> boolean - ---- - -终止所给法术槽中的法术,若未指定法术槽则终止当前法术。根据成功与否返回布尔值。 - -;;;;; - -<|page-title@lavender:book_components|title=笔记:参数|>法术片段可以作为参数传入法术片段。 - - -更多信息参见[参数](^trickster:delusions_ingresses/arguments)章节。 +```json +{ + "title": "法术转离", + "icon": "minecraft:paper", + "category": "trickster:tricks", + "additional_search_terms": [ + "挂起之转离", + "宏伟之转离", + "静默之转离", + "器具之转离", + "折叠之转离", + "谨慎之转离", + "奇点之转离", + "行刑者之转离", + "原点之辑流", + "海龟之辑流" + ] +} +``` + +普通的值可以创建、传递、为法术所用,法术自身的片段同样可以。 + + +若将圆嵌套到其他圆的内部作为内圆符记,但不为外圆创建子圆,那么外圆执行时即会将其内圆及内圆的子圆返回为法术片段。 + +;;;;; + +可对该片段执行多种操作,比如通过[记事员之技巧](^trickster:tricks/basic#4)写入其他物品,或是晚些时候再施放,或是在同一个法术中多次重复使用。 + + +也可以向法术片段传入其自身,然后在那里再次施放,借助递归制造循环。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:delay_execution|> + +将当前法术的执行延迟所给数刻,未指定则延迟1刻。返回延迟量。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:execute|> + +施放所给法术片段,其他输入则按序作为施放时的参数。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:execute_same_scope|> + +施放所给法术,以当前法术的参数作为其参数。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:try_catch|> + +尝试执行第一个法术。若产生失策,换而执行第二个法术并静默该失策。其他输入值同时用作两个法术的参数。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:atomic|> + +在单刻内执行所给法术。法术过大或产生非法操作会导致失策。 + +;;;;; + +如果施放的那一刻内没有足够的圆执行操作供戏法使用,则会先延后1刻,然后再一次性执行整条法术。 + + +非法操作包括: +- [挂起之转离](^trickster:tricks/functions#3)。 +- [收据之技巧](^trickster:ploys/message#3)。 +- 执行子法术的任意转离术。 +- 隐式子法术执行。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:fork|> + +为所给法术另外分配一个法术槽。 + +;;;;; + +如果施法对象不具备法术槽,此戏法即会导致失策。如果没有空闲的法术槽,此戏法会返回void。其他情况下,此戏法会返回所分配法术槽的索引。 + +;;;;; + +<|page-title@lavender:book_components|title=笔记:可折叠|>{#aa4444}可折叠{}是一类法术片段,其中装有其他法术片段,且可通过特定键访问。列表是一种{#aa4444}可折叠{}片段,键为0到列表长度之间的整数,左闭右开。映射也是一种{#aa4444}可折叠{}片段,其键可为任意量,且不会按照插入顺序自动分配。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:fold|> + +对{#aa4444}可折叠{}片段中的所有元素执行所给法术,第三参数传入为第一次迭代时的“上一迭代的结果”参数。 + +;;;;; + +每次迭代都有四个输入参数: + +--- + +{#aa4444}任意{}, {#aa4444}任意{}, {#aa4444}任意{}, {#aa4444}可折叠{} + +--- + +这些参数分别具有如下意义,按序为: + +- 上一次迭代的结果。 +- 当前操作的值。 +- 当前操作值对应的键。 +- {#aa4444}可折叠{}片段本身。 + +;;;;; + +每次迭代的执行结果均会用作下一次迭代的第一参数,最后一次迭代的结果即是整个戏法的结果。 + +;;;;; + +<|page-title@lavender:book_components|title=笔记:参数|>法术片段可以作为参数传入法术片段。 + + +更多信息参见[参数](^trickster:delusions_ingresses/arguments)章节。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:kill_thread|> + +终止所给法术槽中的法术,未指定法术槽即使用当前法术槽。根据成功与否返回布尔值。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:thread_root|> + +获取分配至所给法术槽的原始法术,未指定法术槽即使用当前法术槽。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:spell_state|> + +返回所给法术槽在上一刻执行的圆的数量,未指定法术槽即使用当前法术槽。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/imports.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/imports.md index 61beba6fc86f..29021f3d5002 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/imports.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/imports.md @@ -1,36 +1,28 @@ -```json -{ - "title": "可重用性", - "icon": "trickster:top_hat", - "category": "trickster:tricks", - "additional_search_terms": [ - "协助之转离", - "颅骨之转离" - ] -} -``` - -有若干图案能轻松重复利用施法者物品栏中存储的法术片段。 - - -这些图案会直接执行物品中的法术,并使用输入作为执行参数。执行后有可能会向调用法术返回值与片段,或是会产生其他副作用。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:import,title=协助之转离|> - -item, any... -> any - ---- - -寻找施法者物品栏中的所给物品,并施放第一个抄有法术的目标物品中的法术,使用输入值作为执行参数。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:import_hat,title=颅骨之转离|> - -number, any... -> any - ---- - -获取施法者[高顶礼帽](^trickster:items/top_hat)中给定槽位处的法术,使用输入值作为执行参数施放,并返回执行结果。 +```json +{ + "title": "可重用性", + "icon": "trickster:top_hat", + "category": "trickster:tricks", + "additional_search_terms": [ + "协助之转离", + "颅骨之转离" + ] +} +``` + +有若干图案能轻松重复利用施法者物品栏中存储的法术片段。 + + +这些图案会直接执行物品中的法术,并使用输入作为执行参数。执行后有可能会向调用法术返回值与片段,或是会产生其他副作用。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:import|> + +寻找施法者物品栏中所给类型的物品,并施放第一个抄有法术的目标物品中的法术,使用输入值作为参数。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:import_hat|> + +获取施法者[帽子](^trickster:items/top_hat)中给定槽位处的法术,使用输入值作为参数施放,并返回执行结果。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/transmog.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/transmog.md index 1493f709def4..b31b082bdab4 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/transmog.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tricks/transmog.md @@ -1,64 +1,48 @@ -```json -{ - "title": "幻化", - "icon": "transmog:void_fragment", - "category": "trickster:tricks", - "additional_search_terms": [ - "幻化之技巧", - "诡谋之技巧", - "原形之技巧", - "幻化之辑流" - ], - "fabric:load_conditions": { - "condition": "fabric:any_mods_loaded", - "values": [ - "transmog" - ] - } -} -``` - -这个世界似乎有些不同寻常:其中物品的外形能幻化成另一种物品。 - - -幻化只会转换物品的外观,而不会影响其属性和行为。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:transmog,title=幻化之技巧|> - -slot, item -> boolean - -<|cost-rule@trickster:templates|formula=20kG|> - -将给定槽位中的物品幻化为给定物品。若幻化成功,返回true。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:hidden_transmog,title=诡谋之技巧|> - -slot -> boolean - -<|cost-rule@trickster:templates|formula=30kG|> - -将给定槽位中的物品幻化为虚无。若幻化成功,返回true。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:remove_transmog,title=原形之技巧|> - -slot -> boolean - -<|cost-rule@trickster:templates|formula=10kG|> - -去除给定槽位中物品的幻化。若去除成功,返回true。 - -;;;;; - -<|glyph@trickster:templates|trick-id=trickster:get_transmog,title=幻化之辑流|> - -slot -> item - ---- - -返回给定槽位物品上的幻化效果。若未经幻化,返回void。 +```json +{ + "title": "幻化", + "icon": "transmog:void_fragment", + "category": "trickster:tricks", + "additional_search_terms": [ + "幻化之技巧", + "诡谋之技巧", + "原形之技巧", + "幻化之辑流" + ], + "fabric:load_conditions": { + "condition": "fabric:any_mods_loaded", + "values": [ + "transmog" + ] + } +} +``` + +这个世界似乎有些不同寻常,物品可以被幻化而变形成另一种物品。 + + +幻化只会转换物品的外观,而不会影响其属性和行为。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:transmog|> + +将给定槽位中的物品幻化为给定物品。若幻化成功,返回true。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:hidden_transmog|> + +将给定槽位中的物品幻化为虚无。若幻化成功,返回true。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:remove_transmog|> + +去除给定槽位中物品的幻化。若去除成功,返回true。 + +;;;;; + +<|trick@trickster:templates|trick-id=trickster:get_transmog|> + +返回给定槽位物品上的幻化效果。若未经幻化,返回void。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/1_getting_started.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/1_getting_started.md index 055a961aebf4..c1cf39fa13ff 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/1_getting_started.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/1_getting_started.md @@ -1,43 +1,43 @@ -```json -{ - "title": "1. 初出茅庐", - "icon": "minecraft:paper", - "ordinal": 0, - "category": "trickster:tutorials" -} -``` - -在开始编写法术之前,你需要先准备一些魔法工具用作辅助。 - - -若要精简再精简,也应准备好一面[执行手镜](^trickster:items/mirror_of_evaluation)以及一份[卷轴与笔](^trickster:items/scroll_and_quill)。这些物品是戏法师工具基础中的基础。 - -;;;;; - -<|item-spotlight@lavender:book_components|item=trickster:scroll_and_quill|>卷轴与笔是真正编写法术的地方。这些附魔的纸页能够承载单个任意法术圆,还可直接进行修改;简单使用物品即可。 - -;;;;; - -<|item-spotlight@lavender:book_components|item=trickster:mirror_of_evaluation|>同样是必需品的执行手镜则有多种用途。 - - -例如,它可用来直接施放卷轴中编写的法术。这一功能仅凭卷轴自身无法做到。 - - -它更常用来进行原型开发。 - -;;;;; - -手镜的使用方法和卷轴相当类似:两者界面相似,但手镜中编写的符记会在可以执行时立即执行。执行后如有结果,则会保存在圆的内部。 - - -这一行为也通常用来生成常量,然后将其嵌入到卷轴中的其他法术内。 - ---- - -;;;;; - -在上述两种必需品外,还有几个物品可供考虑: - -- [魔杖](^trickster:items/wand)。其中可抄入任意法术,且能直接施法,详细见后续说明。 -- [高顶礼帽](^trickster:items/top_hat)。能存储多份卷轴,也可当作高级法术的一类存储器。 +```json +{ + "title": "1. 初出茅庐", + "icon": "minecraft:paper", + "ordinal": 0, + "category": "trickster:tutorials" +} +``` + +在开始编写法术之前,你需要先准备一些魔法工具用作辅助。 + + +即便要保持极度的精简,也应准备好一面[执行手镜](^trickster:items/mirror_of_evaluation)以及一份[卷轴与笔](^trickster:items/scroll_and_quill)。这些物品是戏法师工具基础中的基础。 + +;;;;; + +<|item-spotlight@lavender:book_components|item=trickster:scroll_and_quill|>卷轴与笔是真正编写法术的地方。这些附魔的纸页能够承载单个任意法术圆,直接使用物品还可对其进行修改。 + +;;;;; + +<|item-spotlight@lavender:book_components|item=trickster:mirror_of_evaluation|>执行手镜同样是必需品,它有许多种用途。 + + +例如,它可直接施放卷轴中编写的法术。这一功能仅凭卷轴自身无法做到。 + + +它更常用来进行原型开发。 + +;;;;; + +手镜的使用方法和卷轴相当类似:两者界面相似,但手镜中编写的符记会在可以执行时立即执行。执行后如有结果,则会保存在圆的内部。 + + +这一行为也通常用来生成常量,然后将其嵌入到卷轴中的其他法术内。 + +--- + +;;;;; + +在上述两种必需品外,可能还会需要其他几件物品: + +- [魔杖](^trickster:items/wand)。其中可抄入任意法术,且能直接施法,详细见后续说明。 +- [帽子](^trickster:items/top_hat)。它能存储多份卷轴,也可当作高级法术的某种存储器。 diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/2_mana_basics.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/2_mana_basics.md index b292b1d76c4c..b2462a1adff5 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/2_mana_basics.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/2_mana_basics.md @@ -1,58 +1,57 @@ -```json -{ - "title": "2. 魔力的基础知识", - "icon": "minecraft:paper", - "ordinal": 1, - "category": "trickster:tutorials" -} -``` - -踏入正式施法的领域需要的钥匙,正是**魔力**。所有会影响世界的法术都需消耗特定量的魔力,效力越强,法术的消耗就越多,且增长速度很快。 - - -为纪念一位著名巫师,魔力量的单位为甘道夫(Gandalf),简称为“甘”,符号为“G”。 - -;;;;; - -此单位的定义为:点亮一根蜡烛需要1甘的魔法能量。可见,甘道夫是一个很小的单位,大多数法术的消耗因此会使用千甘道夫,或“千甘”和“kG”。 - - - -魔力可持久存储于晶结中,例如下方所示: -<|item-spotlight@lavender:book_components|item=trickster:amethyst_knot|> - -;;;;; - -这些包在玻璃球壳中的宝石能存储魔力,宝石的稀有程度不同,存储的量也不同。某些宝石制成晶结后会有特殊的性质。如紫水晶在制成晶结之时就已拥有魔力,但无法以已知方式再次填充;其他的宝石都不具有此性质。 - - -因此,无论初入领域时还是紧要关头时,紫水晶晶结都是不错的魔力来源。 - -;;;;; - -<|item-spotlight@lavender:book_components|item=trickster:emerald_knot|>不过,大多数晶结只需简单暴露在夜空下,就可补充魔力。将晶结丢在地上、放在露天的[充能阵列](^trickster:items/charging_array)或[法术组构台](^trickster:items/spell_construct)中均可。丢出的可充能晶结不会被清除。新月和满月前后的充能速度最快,两者间的某些夜晚则完全无法充能。 - -;;;;; - -晶结也会在其提示文本中记录当前消耗速率,使用梅林(Merlin)作为单位,简称为“梅”,符号为“M”。此单位的定义为甘道夫每刻;其中,刻是有意义时间的最小单位,相当于1/20秒。 - - -比如,50梅的法术每秒即消耗1千甘。 -<|item-spotlight@lavender:book_components|item=trickster:diamond_knot|> - -;;;;; - -制作晶结时,需在物品栏中持有玻璃块和一个紫水晶,再直接使用[望月者之技巧](^trickster:ploys/mana#2)。紫水晶晶结自身就可提供魔力,因此其制作过程无需消耗;但其他晶结需要消耗,具体量见[此](^trickster:concepts/mana)。 - -;;;;; - -其他晶结还需施法者指明其槽位,并传入为第一参数,后续章节再详细说明。 - - -现在要做的,就是按后页步骤在[执行手镜](^trickster:items/mirror_of_evaluation)中绘制[望月者之技巧](^trickster:ploys/mana#2),以轻松制作紫水晶晶结。继续之前多做几个吧! - -;;;;; - -<|spell-preview-unloadable@trickster:templates|spell=YwqT9+b/wDGjlQEAks2CzAoAAAA=|> - -{gray}(拖动可平移,滚动滚轮可缩放){} +```json +{ + "title": "2. 魔力的基础知识", + "icon": "minecraft:paper", + "ordinal": 1, + "category": "trickster:tutorials" +} +``` + +踏入正式施法的领域需要的钥匙,正是**魔力**。所有会影响世界的法术都需消耗特定量的魔力,效力越强,法术的消耗就越多,且增长速度很快。 + + +为纪念一位著名巫师,魔力量的单位为甘道夫(Gandalf),简称为“甘”,符号为“G”。 + +;;;;; + +此单位的定义为:点亮一根蜡烛需要1甘的魔法能量。 + + +魔力可持久存储于晶结中,例如下方所示: +<|item-spotlight@lavender:book_components|item=trickster:amethyst_knot|> + +;;;;; + +这些包在玻璃球壳中的宝石能存储魔力,宝石的稀有程度不同,存储的量也不同。某些宝石制成晶结后会有特殊的性质。如紫水晶在制成晶结之时就已拥有魔力,但无法以已知方式再次填充;其他的宝石都不具有此性质。 + + +因此,无论初入领域时还是紧要关头时,紫水晶晶结都是不错的魔力来源。 + +;;;;; + +<|item-spotlight@lavender:book_components|item=trickster:emerald_knot|>不过,大多数晶结只需简单暴露在夜空下,就可补充魔力。将晶结丢在地上和放在露天的[充能阵列](^trickster:items/charging_array)中均可。丢出的可充能晶结不会被清除。新月和满月前后的充能速度最快,两者间的某些夜晚则完全无法充能。 + +;;;;; + +晶结也会在其提示文本中记录当前消耗速率,使用梅林(Merlin)作为单位,简称为“梅”,符号为“M”。此单位的定义为甘道夫每刻;其中,刻是有意义时间的最小单位,相当于1/20秒。 + + +比如,50梅的法术每秒即消耗1千甘。 +<|item-spotlight@lavender:book_components|item=trickster:diamond_knot|> + +;;;;; + +制作晶结时,需在物品栏中持有玻璃块和一个紫水晶,再直接使用[望月者之技巧](^trickster:ploys/mana#2)。紫水晶晶结自身就可提供魔力,因此其制作过程无需消耗;但其他晶结需要消耗,具体量见[此](^trickster:concepts/mana)。 + +;;;;; + +其他晶结还需施法者指明宝石所处的槽位,并将其传入为第一参数,这部分内容留给后续章节详细说明。 + + +现在要做的,就是按后页步骤在[执行手镜](^trickster:items/mirror_of_evaluation)中绘制[望月者之技巧](^trickster:ploys/mana#2)以制作紫水晶晶结。继续之前多做几个吧! + +;;;;; + +<|spell-preview-unloadable@trickster:templates|spell=YwqT9+b/wDGjlQEAks2CzAoAAAA=|> + +{gray}(拖动可平移,滚动滚轮可缩放){} diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/3_first_spell.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/3_first_spell.md index 6413722796d7..b718044ab695 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/3_first_spell.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/3_first_spell.md @@ -1,94 +1,94 @@ -```json -{ - "title": "3. 你的第一个法术", - "icon": "minecraft:paper", - "ordinal": 2, - "category": "trickster:tutorials" -} -``` - -准备好一张[卷轴](^trickster:items/scroll_and_quill)之后,手持右击就可打开法术编写界面。法术是一系列圆相互相交而成的树状结构,每个圆中都有符记用以说明其功能。 - -;;;;; - -第一次打开新卷轴时,只会出现一个圆。这就是**根节点**。法术中其他的圆自此绘制开去。 - - -如需编写法术,可使用所谓“抄绘图案”或“修订术”来添加、移除、移动圆。最基础的抄绘图案是[延枝之修订](^trickster:editing#1),能为绘制处的圆添加一个子圆。 - -;;;;; - -修订术图案与绝大多数图案不同,它们在卷轴和手镜中均会立即执行。它们是修改法术形状的唯一方式。 - - -还有一个抄绘图案在基础法术中也很实用——[嫁接之修订](^trickster:editing#12),它能移除法术层次结构中多余的圆。 - - -解决了绘圆问题后,请在卷轴中绘制后页法术: - -;;;;; - -<|spell-preview-unloadable@trickster:templates|spell=YwyT9+YP6GBjZQQxGFwOMIAZHCEMDAwA8vUGkRwAAAA=|> - -{gray}(拖动可平移,滚动滚轮可缩放){} - -;;;;; - -完成后,副手持卷轴,再在手镜内绘制下述法术: - -<|spell-preview-unloadable@trickster:templates|spell=YwyT9+bf6MPEyghiMLo0tTIAADybrxgTAAAA|> - -;;;;; - -绘制时你可能会发现,最上方的图案会直接变成卷轴中的法术。 - - -之后,如果没有意外,法术应当会破坏你看着的方块!这就是最基础的施法方式了:在卷轴中编写法术,再用手镜施放。 - - -**但这么做又为什么能行呢?** - -;;;;; - -施放法术时,所绘制的符记会使用其子圆的输出作为输入,执行某个操作,再将结果输出给其父圆。 - - -可以把法术想成分出很多枝条的树。首先,树的叶圆(嵌套到最深处的圆)会产生或从世界中读出值。这些值可以是常量或施法者的引用。此类符记称作[错觉术](^trickster:delusions_ingresses)。 - -;;;;; - -在那之后,中间的符记会将信息处理成合适的格式。比如接受生物的引用,再返回其位置。此类法术可为[曲变术](^trickster:distortions)和[辑流术](^trickster:delusions_ingresses)。 - - -某些符记可能不会返回值,常称作[技巧术](^trickster:ploys)。这些符记会对世界造成影响,通常也是整个法术的最终目标。 - -;;;;; - -知道这些知识后再回看卷轴中的法术,就可以辨认出其中的三种符记(又称“戏法”)了。 - - -嵌套在最深处的符记必须为错觉术,它不可有输入。而根节点处的符记则必须为技巧术,它只接受输入而没有输出。也即,两者之间的圆中绘制的必须是曲变术或辑流术。 - -;;;;; - -再到本书[戏法](^trickster:tricks)分类中找出这些图案,就能完全证明这一点。按从小到大顺序看,所绘制的法术可分为: - -- [自审之错觉](^trickster:delusions_ingresses/caster_tricks#4) -- [弓箭手之辑流](^trickster:delusions_ingresses/raycast#2) -- 以及[摧毁之技巧](^trickster:ploys/block#2) - -记下这些戏法的输入和输出,再看看这则法术是怎么组织它们的吧! - -;;;;; - -**好的,但我们又要如何施放它呢?** - - -很好,我们会借用手镜“施放一切所触之物”的倾向。在手镜里绘制的图案分别是[记事员之错觉](^trickster:tricks/basic#3)和[宏伟之谋略](^trickster:distortions/functions#3)。前者会返回施法者副手物品内的法术,后者则会接受法术并施放。 - - -对头,法术可以施放其他法术。 - -;;;;; - -本节介绍了自行编写简单法术所需的基础概念。掏出工具去实验吧,看看法术到底能做到什么! +```json +{ + "title": "3. 你的第一个法术", + "icon": "minecraft:paper", + "ordinal": 2, + "category": "trickster:tutorials" +} +``` + +准备好一张[卷轴](^trickster:items/scroll_and_quill)之后,手持右击就可打开法术编写界面。法术是一系列圆相交而成的树状结构,每个圆中都有符记用以说明其功能。 + +;;;;; + +第一次打开新卷轴时,只会出现一个圆。这就是**根节点**。法术中其他的圆自此绘制开去。 + + +如需编写法术,可使用所谓“抄绘图案”或“修订术”来添加、移除、移动圆。最基础的抄绘图案是[延枝之修订](^trickster:editing#1),它能为绘制处的圆添加一个子圆。 + +;;;;; + +修订术图案与绝大多数图案不同,它们在卷轴和手镜中均会立即执行。它们是修改法术形状的唯一方式。 + + +还有一个抄绘图案在基础法术中也很实用——[嫁接之修订](^trickster:editing#12),它能移除法术层次结构中多余的圆。 + + +解决了绘圆问题后,请在卷轴中绘制后页法术: + +;;;;; + +<|spell-preview-unloadable@trickster:templates|spell=YwyT9+YP6GBjZQQxGFwOMIAZHCEMDAwA8vUGkRwAAAA=|> + +{gray}(拖动可平移,滚动滚轮可缩放){} + +;;;;; + +完成后,副手持卷轴,再在手镜内绘制下述法术: + +<|spell-preview-unloadable@trickster:templates|spell=YwyT9+bf6MPEyghiMLo0tTIAADybrxgTAAAA|> + +;;;;; + +绘制时你可能会发现,最上方的图案会直接变成卷轴中的法术。 + + +之后,如果没有意外,法术应当会破坏你看着的方块!这就是最基础的施法方式了:在卷轴中编写法术,再用手镜施放。 + + +**但这么做又为什么能行呢?** + +;;;;; + +施放法术时,所绘制的符记会使用其子圆的输出作为输入,执行某个操作,再将结果输出给其父圆。 + + +可以把法术想成分出很多枝条的树。首先,树的叶圆(嵌套到最深处的圆)会产生或从世界中读出值。这些值可以是常量或施法者的引用。此类符记称作[错觉术](^trickster:delusions_ingresses)。 + +;;;;; + +在那之后,中间的符记会将信息处理成合适的格式。比如接受生物的引用,再返回其位置。此类法术可为[曲变术](^trickster:distortions)和[辑流术](^trickster:delusions_ingresses)。 + + +某些符记可能不会返回值,常称作[技巧术](^trickster:ploys)。这些符记会对世界造成影响,通常也是整个法术的最终目标。 + +;;;;; + +知道这些知识后再回看卷轴中的法术,就可以辨认出其中的三种符记(又称“戏法”)了。 + + +嵌套在最深处的符记必须为错觉术,它不得接受输入。而根节点处的符记则必须为技巧术,它只接受输入而没有输出。也即,两者之间的圆中绘制的必须是曲变术或辑流术。 + +;;;;; + +再到本书[戏法](^trickster:tricks)分类中找出这些图案,就能完全证明这一点。按从小到大顺序看,所绘制的法术分别是: + +- [自审之错觉](^trickster:delusions_ingresses/caster_tricks#4) +- [弓箭手之辑流](^trickster:delusions_ingresses/raycast#2) +- 以及[摧毁之技巧](^trickster:ploys/block#2) + +记下这些戏法的输入和输出,再看看这则法术是怎么组织它们的吧! + +;;;;; + +**好的,但我们又要如何施放它呢?** + + +很好,我们会用到手镜“施放一切所触之物”的倾向。在手镜里绘制的图案分别是[记事员之错觉](^trickster:tricks/basic#3)和[宏伟之谋略](^trickster:distortions/functions#3)。前者会返回施法者副手物品内的法术,后者则会接受法术并施放。 + + +对头,法术可以施放其他法术。 + +;;;;; + +本节介绍了自行编写简单法术所需的基础概念。掏出工具去实验吧,看看法术到底能做到什么! diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/4_easier_casting.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/4_easier_casting.md index f1a3f209a669..83558bb801da 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/4_easier_casting.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/4_easier_casting.md @@ -1,48 +1,48 @@ -```json -{ - "title": "4. 简化施法", - "icon": "minecraft:paper", - "ordinal": 3, - "category": "trickster:tutorials" -} -``` - -执行手镜有若干缺陷值得注意。最明显的一条是,每次施法都画一遍两个图案很烦。可能更为重要的一条是,由手镜施放的法术最多只能拥有*64个圆*。这可真没多少! - -;;;;; - -这就是[魔杖](^trickster:items/wand)的用武之地了。如第一节中简要提及的,手持魔杖右击,即可施放其中抄有的法术。 - - -你可能会问,“抄”到底是个什么操作?实际上你已经在一定程度上“抄”过法术了。第二节中用到的[记事员之错觉](^trickster:tricks/basic#3)就能读出抄入物品的法术。对卷轴也有效,是因为在其上编写的法术严格说来也算是抄写在其中。 - -;;;;; - -法术可以抄入*任意*物品,但只有在卷轴和手镜中可以直接编辑。 - - -可用[记事员之技巧](^trickster:tricks/basic#4)向物品写入法术。它与[宏伟之谋略](^trickster:distortions/functions#3)类似,只接受一个输入而没有输出。 - - -在手镜中编写后页的法术就可以读出并抄写法术。 - -;;;;; - -首先手持抄有法术的物品,并绘制较小的图案;再换成手持想要抄入的物品,并绘制较大的图案。 -<|spell-preview-unloadable@trickster:templates|spell=YwyT9+bf6MPEwAhiMLo0tTIAAH43+GkTAAAA|> - -;;;;; - -抄有法术的魔杖会具有附魔光效,且会在其提示文本中显示其法术。 - - -使用魔杖施法时,运行中的法术需占用一个[法术槽](^trickster:concepts/multi_tick),以便其执行至完成。 - - -综合前文,往魔杖上抄入后页的法术: - -;;;;; - -<|spell-preview@trickster:templates|spell=YwyT9+ZnYDjAwwhiMDI4dDKBRVwOMIBFOEIYGBhADCEUEQDelYOZNwAAAA==|> - -抄写完毕后可以施放一下,看看它到底有什么功能。然后再找出各个戏法的资料,看看它是*怎么*做到的! +```json +{ + "title": "4. 简化施法", + "icon": "minecraft:paper", + "ordinal": 3, + "category": "trickster:tutorials" +} +``` + +执行手镜有若干缺陷值得注意。最明显的一条是,每次施法都画一遍两个图案很烦。可能更为重要的一条是,由手镜施放的法术最多只能拥有*64个圆*。这可真没多少! + +;;;;; + +这就是[魔杖](^trickster:items/wand)的用武之地了。如第一节中简要提及的,手持魔杖右击,即可施放其中抄有的法术。 + + +你可能会问,“抄”到底是个什么操作?实际上你已经在一定程度上“抄”过法术了。第二节中用到的[记事员之错觉](^trickster:tricks/basic#3)就能读出抄入物品的法术。对卷轴也有效,是因为在其上编写的法术严格说来也算是抄写在其中。 + +;;;;; + +法术可以抄入*任意*物品,但只有在卷轴和手镜中可以直接编辑。 + + +可用[记事员之技巧](^trickster:tricks/basic#4)向物品写入法术。它与[宏伟之谋略](^trickster:distortions/functions#3)类似,只接受一个输入而没有输出。 + + +在手镜中编写后页的法术就可以读出并抄写法术。 + +;;;;; + +首先手持抄有法术的物品,并绘制较小的图案;再换成手持想要抄入的物品,并绘制较大的图案。 +<|spell-preview-unloadable@trickster:templates|spell=YwyT9+bf6MPEwAhiMLo0tTIAAH43+GkTAAAA|> + +;;;;; + +抄有法术的魔杖会具有附魔光效,且会在其提示文本中显示其法术。 + + +使用魔杖施法时,运行中的法术需占用一个[法术槽](^trickster:concepts/multi_tick),以便其执行至完成。 + + +综合前文,往魔杖上抄入后页的法术: + +;;;;; + +<|spell-preview@trickster:templates|spell=YwyT9+ZnYDjAwwhiMDI4dDKBRVwOMIBFOEIYGBhADCEUEQDelYOZNwAAAA==|> + +抄写完毕后可以施放一下,看看它到底有什么功能。然后再找出各个戏法的资料,看看它是*怎么*做到的! diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/5_spell_structure.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/5_spell_structure.md index 1dde0f61f59c..0d15c0b8ed3f 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/5_spell_structure.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/5_spell_structure.md @@ -1,46 +1,46 @@ -```json -{ - "title": "5. 法术结构", - "icon": "minecraft:paper", - "ordinal": 4, - "category": "trickster:tutorials" -} -``` - -第二节中介绍了法术抄写的基础知识,但还有几点尚未提到。 - - -最为重要的是,某些戏法可能接受多个输入,如前一节的示例法术。但和那之中的又不同,一些戏法有时会规定输入的类型和顺序。 - -;;;;; - -戏法的输入和输出的数目等称作其**签名**。本书中每次呈现戏法的图案时,都会指明其签名。 - - -如果觉得签名的格式难以理解,可参见[解释条目的详细信息](^trickster:concepts/signatures)! - - -**但我们怎么辨别哪个圆先传入呢?** - -;;;;; - -<|spell-preview-unloadable@trickster:templates|spell=YwyT9+ZnAAIW9/lWJxhgAMSx/4DEcUCWceCAcgC7HdBfPgAAAA==|> - -参见上图法术。其子圆中带有施法顺序的序号,从0起到3结束。 - -;;;;; - -这就是它们传入父圆的顺序了。但又是怎么知道的?**分隔销**。 - - -拥有至少一个子圆的圆上会具有一个蓝色透明的分隔销。自该销起,戏法会按顺时针接受子圆,各子圆也可用自0起的序号标记。 - - -看看你能不能找到前页法术上的分隔销! - -;;;;; - -最后一件事!除[延枝之修订](^trickster:editing#1)和[嫁接之修订](^trickster:editing#12)之外,还有许多个抄绘图案,有些只是便捷了操作,有些却能改变游戏的体验。 - - +```json +{ + "title": "5. 法术结构", + "icon": "minecraft:paper", + "ordinal": 4, + "category": "trickster:tutorials" +} +``` + +第二节中介绍了法术抄写的基础知识,但还有几点尚未提到。 + + +最为重要的是,某些戏法可能接受多个输入,如前一节的示例法术。但有些戏法和示例中的不一样,它们会规定输入的类型和顺序。 + +;;;;; + +戏法接受的的输入和输出等称作其**签名**。本书中每次呈现戏法的图案时,都会指明其签名。 + + +如果觉得签名的格式难以理解,可参见[解释条目的详细信息](^trickster:concepts/signatures)! + + +**但我们怎么辨别哪个圆先传入呢?** + +;;;;; + +<|spell-preview-unloadable@trickster:templates|spell=YwyT9+ZnAAIW9/lWJxhgAMSx/4DEcUCWceCAcgC7HdBfPgAAAA==|> + +参见上图法术。其子圆中带有施法顺序的序号,从0起到3结束。 + +;;;;; + +这就是它们传入父圆的顺序了。但又是怎么知道的?**分隔销**。 + + +拥有至少一个子圆的圆上会有一个蓝色透明的分隔销。自该销起,戏法会按顺时针接受子圆,各子圆也可用自0起的序号标记。 + + +看看你能不能找到前页法术上的分隔销! + +;;;;; + +最后一件事!除[延枝之修订](^trickster:editing#1)和[嫁接之修订](^trickster:editing#12)之外,还有许多个抄绘图案,有些只是便捷了操作,有些却能改变游戏的体验。 + + 如果还没了解过,一定要去完完整整地读一遍[法术抄绘](^trickster:editing)章节! \ No newline at end of file diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/6_functions.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/6_functions.md index 616c9d113ef6..02b41be37b41 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/6_functions.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/6_functions.md @@ -1,10 +1,10 @@ -```json -{ - "title": "7. 法术片段", - "icon": "minecraft:paper", - "ordinal": 6, - "category": "trickster:tutorials" -} -``` - -即将到来! +```json +{ + "title": "7. 法术片段", + "icon": "minecraft:paper", + "ordinal": 6, + "category": "trickster:tutorials" +} +``` + +即将到来! diff --git a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/7_recursion.md b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/7_recursion.md index 966929094bb8..73ce2da1da85 100644 --- a/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/7_recursion.md +++ b/projects/1.21-fabric/assets/trickster/trickster/lavender/entries/tome_of_tomfoolery/zh_cn/tutorials/7_recursion.md @@ -1,10 +1,10 @@ -```json -{ - "title": "6. 递归", - "icon": "minecraft:paper", - "ordinal": 5, - "category": "trickster:tutorials" -} -``` - -即将到来! +```json +{ + "title": "6. 递归", + "icon": "minecraft:paper", + "ordinal": 5, + "category": "trickster:tutorials" +} +``` + +即将到来!