diff --git a/armors.yml b/armors.yml index aab1f4f..48594e9 100644 --- a/armors.yml +++ b/armors.yml @@ -1,45 +1,46 @@ -example_armor: +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/file/armors +rsc_example_armor: protection_types: - BEES - RADIATION - FLYING_INTO_WALL fullSet: true - item_group: example_normal_group + item_group: rsc_example_sub_group helmet: - id: EXAMPLE_HELMET + id: RSC_EXAMPLE_HELMET material: LEATHER_HELMET name: "&d示例头盔" - recipe_type: EXAMPLE_MULTIBLOCK_MACHINE_RECIPE_TYPE + recipe_type: RSC_EXAMPLE_MULTIBLOCK_MACHINE_RECIPE_TYPE recipe: 3: material_type: slimefun - material: EXAMPLE_ITEM_2 + material: RSC_EXAMPLE_RECIPED_ITEM_1 chestplate: - id: EXAMPLE_CHESTPLATE + id: RSC_EXAMPLE_CHESTPLATE material: LEATHER_CHESTPLATE name: "&d示例胸甲" - recipe_type: EXAMPLE_MULTIBLOCK_MACHINE_RECIPE_TYPE + recipe_type: RSC_EXAMPLE_MULTIBLOCK_MACHINE_RECIPE_TYPE recipe: 4: material_type: slimefun - material: EXAMPLE_ITEM_2 + material: RSC_EXAMPLE_RECIPED_ITEM_2 leggings: - id: EXAMPLE_LEGGINGS + id: RSC_EXAMPLE_LEGGINGS material: LEATHER_LEGGINGS name: "&d示例护腿" - recipe_type: EXAMPLE_MULTIBLOCK_MACHINE_RECIPE_TYPE + recipe_type: RSC_EXAMPLE_MULTIBLOCK_MACHINE_RECIPE_TYPE recipe: 5: material_type: slimefun - material: EXAMPLE_ITEM_2 + material: RSC_EXAMPLE_RECIPED_ITEM_3 boots: - id: EXAMPLE_BOOTS + id: RSC_EXAMPLE_BOOTS material: LEATHER_BOOTS name: "&d示例靴子" - recipe_type: EXAMPLE_MULTIBLOCK_MACHINE_RECIPE_TYPE + recipe_type: RSC_EXAMPLE_MULTIBLOCK_MACHINE_RECIPE_TYPE recipe: 6: material_type: slimefun - material: EXAMPLE_ITEM_2 + material: RSC_EXAMPLE_RECIPED_ITEM_4 potion_effects: - - "SPEED 5" \ No newline at end of file + - "SPEED 5" diff --git a/capacitors.yml b/capacitors.yml index f4a4f02..58c5a0d 100644 --- a/capacitors.yml +++ b/capacitors.yml @@ -1,14 +1,12 @@ -EXAMPLE_CAPACITOR: - item_group: example_sub_group +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/file/capacitors +RSC_EXAMPLE_CAPACITOR: + item_group: rsc_example_sub_group item: name: "&a示例电容" material: DIAMOND_BLOCK recipe_type: ENHANCED_CRAFTING_TABLE capacity: 10000 recipe: - 1: - material: APPLE - amount: 1 - 2: + 5: material_type: slimefun - material: EXAMPLE_ITEM \ No newline at end of file + material: RSC_EXAMPLE_RAINBOW_BLOCK_1 diff --git a/foods.yml b/foods.yml new file mode 100644 index 0000000..b720cef --- /dev/null +++ b/foods.yml @@ -0,0 +1,18 @@ +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/file/foods +RSC_EXAMPLE_FOOD: + item_group: rsc_example_sub_group + item: + name: "食物 1" + material: rotten_flesh + script: example_food + recipe_type: MAGIC_WORKBENCH + recipe: + 1: + material: birch_planks + amount: 1 + 2: + material: birch_planks + amount: 1 + 3: + material: dark_oak_planks + amount: 1 diff --git a/generators.yml b/generators.yml index d3c5bab..5aab3f0 100644 --- a/generators.yml +++ b/generators.yml @@ -1,5 +1,6 @@ -EXAMPLE_GENERATOR: - item_group: example_normal_group +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/file/generators +RSC_EXAMPLE_GENERATOR: + item_group: rsc_example_sub_group item: name: "&c示例发电机" material: GOLD_BLOCK @@ -7,27 +8,10 @@ EXAMPLE_GENERATOR: production: 100 input: [10,11] output: [15,16] - recipe_type: ENHANCED_CRAFTING_TABLE - recipe: - 1: - material_type: slimefun - material: EXAMPLE_ITEM - 3: - material_type: slimefun - material: EXAMPLE_ITEM - 5: - material_type: slimefun - material: EXAMPLE_MACHINE - 7: - material_type: slimefun - material: EXAMPLE_ITEM - 9: - material_type: slimefun - material: EXAMPLE_ITEM fuels: example_fuel: item: material: OAK_WOOD seconds: 10 output: - material: CHARCOAL \ No newline at end of file + material: CHARCOAL diff --git a/geo_resources.yml b/geo_resources.yml index 11edbbd..0101d6e 100644 --- a/geo_resources.yml +++ b/geo_resources.yml @@ -1,16 +1,17 @@ -EXAMPLE_GEO_RESOURCE: - item_group: example_normal_group +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/file/geo +RSC_EXAMPLE_GEO_RESOURCE: + item_group: rsc_example_sub_group item: name: "&a示例GEO资源" material: DIAMOND recipe_type: GEO_MINER max_deviation: 1 obtain_from_geo_miner: true - geo_name: "RSC示例GEO资源" + geo_name: "&e这是在地形扫描器中显示的名字" supply: normal: plains: 10 ocean: 5 others: 4 nether: 1 - the_end: 2 \ No newline at end of file + the_end: 2 diff --git a/groups.yml b/groups.yml index 796e44c..bcf9160 100644 --- a/groups.yml +++ b/groups.yml @@ -1,39 +1,75 @@ -example_normal_group: +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/file/groups +rsc_example_normal_group: item: name: "&a示例普通物品组" material: GRASS_BLOCK - amount: 1 -example_parent_group: - type: "nested" # 或"parent" - tier: 2 + +rsc_example_parent_group: + type: nested item: name: "&a示例父物品组" material: OAK_PLANKS - amount: 1 -example_sub_group: - type: "sub" - parent: "example_parent_group" + +rsc_example_sub_group: + type: sub + parent: "rsc_example_parent_group" item: name: "&e示例子物品组" material: REDSTONE - amount: 1 - lore: - - "&aHello?" -example_seasonal_group: - type: "seasonal" - month: 1 + +rsc_example_seasonal_group: + type: seasonal + month: 5 item: name: "&b示例季节性物品组" material: OAK_LEAVES - amount: 1 - actions: - - "link https://rsc.himcs.top/#/README" - - "console say 我自由了!" -example_locked_group: - type: "locked" + +rsc_example_locked_group: + type: locked parents: - slimefun:basic_machines item: name: "&l示例锁定物品组" material: REPEATER - amount: 1 + +rsc_example_link_group: + type: button + parent: rsc_example_parent_group + item: + name: "&e示例链接组" + material: COMMAND_BLOCK + actions: + - "link https://rsc.himcs.top/#/README" + +rsc_example_console_group: + type: button + parent: rsc_example_parent_group + item: + name: "&e示例控制台指令组" + material: BEDROCK + actions: + - "console say 示例控制台指令组" + +rsc_example_tier_10086_group: + type: sub + parent: rsc_example_parent_group + tier: 10086 + item: + name: "&e示例优先级10086组" + material: IRON_ORE + +rsc_example_tier_2_group: + type: sub + parent: rsc_example_parent_group + tier: 2 + item: + name: "&e示例优先级2组" + material: GOLD_ORE + +rsc_example_tier_1_group: + type: sub + parent: rsc_example_parent_group + tier: 1 + item: + name: "&e示例优先级1组" + material: DIAMOND_ORE diff --git a/info.yml b/info.yml index 36dd8e1..d371f94 100644 --- a/info.yml +++ b/info.yml @@ -1,8 +1,8 @@ -id: example -name: "示例附属" +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/addon/learn-to-write-addons-information +id: rsc_test_addon +name: "测试附属" depends: [] pluginDepends: [] -version: "1.4" -description: "RSC示例附属" -authors: ["mmmjjkx"] -repo: "SlimefunReloadingProject/rsc-example" +version: "1.0" +authors: ["guguguhello"] +repo: "" diff --git a/items.yml b/items.yml index bb752cc..4b64ffc 100644 --- a/items.yml +++ b/items.yml @@ -1,79 +1,595 @@ -EXAMPLE_ITEM: - item_group: example_sub_group +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/file/items +RSC_EXAMPLE_PLACEHOLDER_1: + item_group: rsc_example_normal_group item: - name: "&a示例物品" - material: DIAMOND - recipe_type: ENHANCED_CRAFTING_TABLE + name: "占位符1" + material: BLUE_STAINED_GLASS_PANE + +RSC_EXAMPLE_PLACEHOLDER_2: + item_group: rsc_example_sub_group + item: + name: "占位符2" + material: BLUE_STAINED_GLASS_PANE + +RSC_EXAMPLE_PLACEHOLDER_3: + item_group: rsc_example_seasonal_group + item: + name: "占位符3" + material: BLUE_STAINED_GLASS_PANE + +RSC_EXAMPLE_PLACEHOLDER_4: + item_group: rsc_example_locked_group + item: + name: "占位符4" + material: BLUE_STAINED_GLASS_PANE + +RSC_EXAMPLE_PLACEHOLDER_5: + item_group: rsc_example_link_group + item: + name: "占位符5" + material: BLUE_STAINED_GLASS_PANE + +RSC_EXAMPLE_PLACEHOLDER_6: + item_group: rsc_example_console_group + item: + name: "占位符6" + material: BLUE_STAINED_GLASS_PANE + +RSC_EXAMPLE_PLACEHOLDER_7: + item_group: rsc_example_tier_1_group + item: + name: "占位符7" + material: BLUE_STAINED_GLASS_PANE + +RSC_EXAMPLE_PLACEHOLDER_8: + item_group: rsc_example_tier_2_group + item: + name: "占位符8" + material: BLUE_STAINED_GLASS_PANE + +RSC_EXAMPLE_LATEINIT_ITEM_1: + lateInit: true + item_group: rsc_example_sub_group + item: + name: "延时加载物品 1" + material: stick + recipe_type: ENHANCED_CRAFTING_TABLE + recipe: + 5: + material_type: slimefun + material: RSC_EXAMPLE_RECIPED_ITEM_1 # 引用了下面的物品 + +RSC_EXAMPLE_RECIPED_ITEM_1: + item_group: rsc_example_sub_group + item: + name: "可合成物品 1" + material: stick + recipe_type: ENHANCED_CRAFTING_TABLE + recipe: + 1: + material: stick + 2: + material: stone + 3: + material: stick + 8: + material: stone + +RSC_EXAMPLE_RECIPED_ITEM_2: + item_group: rsc_example_sub_group + item: + name: "可合成物品 2" + material: stick + recipe_type: ARMOR_FORGE + recipe: + 1: + material_type: slimefun + material: URANIUM + 2: + material: stone + 3: + material: stick + 8: + material: stone + +RSC_EXAMPLE_RECIPED_ITEM_3: + item_group: rsc_example_sub_group + item: + name: "可合成物品 3" + material: stick + recipe_type: GRIND_STONE + recipe: + 1: + material_type: slimefun + material: PLUTONIUM + +RSC_EXAMPLE_RECIPED_ITEM_4: + item_group: rsc_example_sub_group + item: + name: "可合成物品 4" + material: stick + recipe_type: SMELTERY + recipe: + 1: + material: oak_planks + amount: 64 + 2: + material: spruce_planks + amount: 64 + +RSC_EXAMPLE_RECIPED_ITEM_5: + item_group: rsc_example_sub_group + item: + name: "可合成物品 5" + material: stick + recipe_type: ORE_CRUSHER + recipe: + 1: + material: birch_planks + amount: 64 + +RSC_EXAMPLE_RECIPED_ITEM_6: + item_group: rsc_example_sub_group + item: + name: "可合成物品 6" + material: stick + recipe_type: COMPRESSOR + recipe: + 1: + material: birch_planks + amount: 64 + +RSC_EXAMPLE_RECIPED_ITEM_7: + item_group: rsc_example_sub_group + item: + name: "可合成物品 7" + material: stick + recipe_type: PRESSURE_CHAMBER + recipe: + 1: + material: birch_planks + amount: 1 + +RSC_EXAMPLE_RECIPED_ITEM_8: + item_group: rsc_example_sub_group + item: + name: "可合成物品 8" + material: stick + recipe_type: ORE_WASHER + recipe: + 1: + material: birch_planks + amount: 64 + +RSC_EXAMPLE_RECIPED_ITEM_9: + item_group: rsc_example_sub_group + item: + name: "可合成物品 9" + material: stick + recipe_type: MAGIC_WORKBENCH recipe: 1: - material: APPLE + material: birch_planks amount: 1 -EXAMPLE_ITEM_2: - item_group: example_normal_group + +RSC_EXAMPLE_RECIPED_ITEM_10: + item_group: rsc_example_sub_group item: - name: "&a示例物品2" - material: NETHERITE_INGOT - recipe_type: ENHANCED_CRAFTING_TABLE - script: "example_item_2" + name: "可合成物品 10" + material: stick + recipe_type: ANCIENT_ALTAR + recipe: + 1: + material: birch_planks + 2: + material: birch_planks + 3: + material: birch_planks + 4: + material: birch_planks + 5: + material: birch_planks + 6: + material: birch_planks + 7: + material: birch_planks + 8: + material: birch_planks + 9: + material: birch_planks + +RSC_EXAMPLE_NOT_RECIPED_ITEM_1: + item_group: rsc_example_sub_group + item: + name: "不可合成物品 1" + material: stick + recipe_type: NULL + recipe: + 1: + material: birch_planks + 2: + material: birch_planks + 3: + material: birch_planks + 4: + material: birch_planks + 5: + material: birch_planks + 6: + material: birch_planks + 7: + material: birch_planks + 8: + material: birch_planks + 9: + material: birch_planks + +RSC_EXAMPLE_CHARGEABLE_ITEM_1: + item_group: rsc_example_sub_group + item: + name: "可充电物品 1" + material: stick + energy_capacity: 512 + recipe_type: ENHANCED_CRAFTING_TABLE recipe: 1: material_type: slimefun - material: EXAMPLE_ITEM -EXAMPLE_ITEM_3: - item_group: example_normal_group + material: RSC_EXAMPLE_RECIPED_ITEM_1 + +RSC_EXAMPLE_CHARGEABLE_ITEM_2: + item_group: rsc_example_sub_group item: - name: "&a示例物品3" - material: GOLD_INGOT + name: "可充电物品 2" + material: stick + lore: + - '加入了脚本!' + energy_capacity: 20480 + script: example_chargeable_item recipe_type: ENHANCED_CRAFTING_TABLE - energy_capacity: 1000 - script: "example_item_3" recipe: 1: material_type: slimefun - material: EXAMPLE_ITEM2 -SYNTHETIC_STONE: - item_group: example_sub_group - placeable: false + material: RSC_EXAMPLE_RECIPED_ITEM_2 + +RSC_EXAMPLE_RADIATION_ITEM_1: + item_group: rsc_example_sub_group item: - name: "&7人造石头" - material: STONE + name: "带辐射物品 1" + material: stick + radiation: MODERATE + recipe_type: ENHANCED_CRAFTING_TABLE + recipe: + 1: + material_type: slimefun + material: RSC_EXAMPLE_RECIPED_ITEM_3 + +RSC_EXAMPLE_RAINBOW_BLOCK_1: + item_group: rsc_example_sub_group + item: + name: "彩虹方块 1" + material: DIAMOND_BLOCK + rainbow: STAINED_GLASS + recipe_type: ENHANCED_CRAFTING_TABLE + recipe: + 1: + material_type: slimefun + material: RSC_EXAMPLE_RECIPED_ITEM_4 + +RSC_EXAMPLE_RAINBOW_BLOCK_2: + item_group: rsc_example_sub_group + item: + name: "彩虹方块 2" + material: DIAMOND_BLOCK + rainbow: CUSTOM + rainbow_materials: + - GRASS_BLOCK + - DIRT + - PODZOL + - MOSS_BLOCK recipe_type: ENHANCED_CRAFTING_TABLE recipe: 1: - material: COBBLESTONE - 2: - material: COBBLESTONE - 4: material_type: slimefun - material: STONE_CHUNK - 5: + material: RSC_EXAMPLE_RECIPED_ITEM_5 + +RSC_EXAMPLE_ANIT_WITHER_BLOCK_1: + item_group: rsc_example_sub_group + item: + name: "防凋灵方块 1" + material: GOLD_BLOCK + anti_wither: true + recipe_type: ENHANCED_CRAFTING_TABLE + recipe: + 1: + material_type: slimefun + material: RSC_EXAMPLE_RECIPED_ITEM_6 + +RSC_EXAMPLE_SOULBOUND_ITEM_1: + item_group: rsc_example_sub_group + item: + name: "灵魂绑定物品 1" + material: DIAMOND + soulbound: true + recipe_type: ENHANCED_CRAFTING_TABLE + recipe: + 1: material_type: slimefun - material: STONE_CHUNK + material: RSC_EXAMPLE_RECIPED_ITEM_7 + +RSC_EXAMPLE_PIGLIN_TRADE_ITEM_1: + item_group: rsc_example_sub_group + item: + name: "猪灵交易物品 1" + material: NETHERITE_SWORD + piglin_trade_chance: 10 + recipe_type: BARTER_DROP + +RSC_EXAMPLE_VANILLA_ITEM_1: + item_group: rsc_example_sub_group + item: + name: "人造物品 1" + material: iron_block vanilla: true -WITHER_PROOF_STONE: - item_group: example_sub_group + recipe_type: ENHANCED_CRAFTING_TABLE + recipe: + 1: + material_type: slimefun + material: RSC_EXAMPLE_RECIPED_ITEM_8 + +RSC_EXAMPLE_HIDDEN_ITEM_1: + item_group: rsc_example_sub_group item: - name: "&7&l防凋零石头" - material: STONE - anti_wither: true + name: "隐藏物品 1" + material: nether_star + hidden: true recipe_type: ENHANCED_CRAFTING_TABLE recipe: 1: - material: COBBLESTONE + material_type: slimefun + material: RSC_EXAMPLE_RECIPED_ITEM_9 + +RSC_EXAMPLE_DROP_FROM_BLOCK_ITEM_1: + item_group: rsc_example_sub_group + item: + name: "方块掉落物品 1" + material: ink_sac + drop_from: cobblestone + drop_chance: 5 + drop_amount: 1 + recipe_type: DROP_FROM_BLOCK + recipe: + 5: + material: cobblestone + +RSC_EXAMPLE_RESEARCH_ITEM_1: + item_group: rsc_example_sub_group + item: + name: "研究解锁物品 1" + material: nether_star + recipe_type: ENHANCED_CRAFTING_TABLE + recipe: + 1: + material_type: slimefun + material: RSC_EXAMPLE_RECIPED_ITEM_10 + +RSC_EXAMPLE_SAVED_ITEM_1: + item_group: rsc_example_sub_group + item: + name: "保存物品 1" + material_type: saveditem + material: example_saveditem + recipe_type: ENHANCED_CRAFTING_TABLE + recipe: + 1: + material_type: slimefun + material: RSC_EXAMPLE_RESEARCH_ITEM_1 + +RSC_EXAMPLE_SKULL_ITEM_1: + item_group: rsc_example_sub_group + item: + name: "头颅物品 1" + material_type: skull_hash + material: bb0f722aec27490cf056f560afdd457a0a794e703556cc4c3b51a582f5c57aa4 + lore: + - "&e通过 skull_hash 创建" + recipe_type: ENHANCED_CRAFTING_TABLE + recipe: 2: - material: COBBLESTONE + material_type: slimefun + material: RSC_EXAMPLE_RESEARCH_ITEM_1 + +RSC_EXAMPLE_SKULL_ITEM_2: + item_group: rsc_example_sub_group + item: + name: "头颅物品 2" + material_type: skull_url + material: http://textures.minecraft.net/texture/bb0f722aec27490cf056f560afdd457a0a794e703556cc4c3b51a582f5c57aa4 + lore: + - "&e通过 skull_url 创建" + recipe_type: ENHANCED_CRAFTING_TABLE + recipe: 3: material_type: slimefun - material: MOD_PLATE_DUMMY # 来自匠魂,未安装此附属会自动转为石头 -CHANGEABLE_DIRT: - item_group: example_normal_group + material: RSC_EXAMPLE_RESEARCH_ITEM_1 + +RSC_EXAMPLE_SKULL_ITEM_3: + item_group: rsc_example_sub_group item: - name: "&6&l可变泥土" - material: DIRT - piglin_trade: - piglin_trade_chance: 10 - rainbow: CUSTOM - rainbow_materials: - - DIRT - - GRASS_BLOCK - - PODZOL + name: "头颅物品 3" + material_type: skull_base64 + material: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmIwZjcyMmFlYzI3NDkwY2YwNTZmNTYwYWZkZDQ1N2EwYTc5NGU3MDM1NTZjYzRjM2I1MWE1ODJmNWM1N2FhNCJ9fX0= + lore: + - "&e通过 skull_base64 创建" + recipe_type: ENHANCED_CRAFTING_TABLE + recipe: + 4: + material_type: slimefun + material: RSC_EXAMPLE_RESEARCH_ITEM_1 + +RSC_EXAMPLE_SCRIPT_ITEM_1: + item_group: rsc_example_sub_group + item: + name: "脚本物品 1" + material: stick + script: example_script_item + recipe_type: ENHANCED_CRAFTING_TABLE + recipe: + 5: + material_type: slimefun + material: RSC_EXAMPLE_RESEARCH_ITEM_1 + +RSC_EXAMPLE_WARN_ITEM_1: + lateInit: true + item_group: rsc_example_sub_group + item: + name: "警告测试物品 1" + material: stick + register: + warn: true + conditions: + - "version < 1.18.1" + +RSC_EXAMPLE_CONDITION_ITEM_1: + lateInit: true + item_group: rsc_example_sub_group + item: + name: "条件测试物品 1" + material: stick + lore: + - "conditions: " + - "存在插件 DynaTech" + register: + conditions: + - "hasplugin DynaTech" + #recipe_type: NULL # 可省略,默认NULL + recipe: + 1: + material_type: slimefun + material: GROWTH_CHAMBER_MK2 + +RSC_EXAMPLE_CONDITION_ITEM_2: + lateInit: true + item_group: rsc_example_sub_group + item: + name: "条件测试物品 2" + material: stick + lore: + - "conditions: " + - "不存在插件 DynaTech" + register: + conditions: + - "!hasplugin DynaTech" + #recipe_type: NULL # 可省略,默认NULL + recipe: + 2: + material_type: slimefun + material: WITHER_ASSEMBLER + +RSC_EXAMPLE_CONDITION_ITEM_3: + lateInit: true + item_group: rsc_example_sub_group + item: + name: "条件测试物品 3" + material: stick + lore: + - "conditions: " + - "版本 < 1.18.1" + register: + conditions: + - "version < 1.18.1" + +RSC_EXAMPLE_CONDITION_ITEM_4: + lateInit: true + item_group: rsc_example_sub_group + item: + name: "条件测试物品 4" + material: stick + lore: + - "conditions: " + - "版本 <= 1.18.1" + register: + conditions: + - "version <= 1.18.1" + +RSC_EXAMPLE_CONDITION_ITEM_5: + lateInit: true + item_group: rsc_example_sub_group + item: + name: "条件测试物品 5" + material: stick + lore: + - "conditions: " + - "版本 <= 1.18.1" + register: + conditions: + - "version <= 1.18.1" + +RSC_EXAMPLE_CONDITION_ITEM_6: + lateInit: true + item_group: rsc_example_sub_group + item: + name: "条件测试物品 6" + material: stick + lore: + - "conditions: " + - "版本 > 1.18.1" + register: + conditions: + - "version > 1.18.1" + +RSC_EXAMPLE_CONDITION_ITEM_7: + lateInit: true + item_group: rsc_example_sub_group + item: + name: "条件测试物品 7" + material: stick + lore: + - "conditions: " + - "版本 >= 1.18.1" + register: + conditions: + - "version >= 1.18.1" + +RSC_EXAMPLE_VERSIONED_ITEM_1: + lateInit: true + item_group: rsc_example_sub_group + item: + name: "版本兼容测试物品 1" + material: stick + lore: + - "conditions: " + - "存在插件 InfinityExpansion" + register: + conditions: + - "hasplugin InfinityExpansion" + #recipe_type: NULL # 可省略,默认NULL + recipe: + 1: + material: INFINITE_INGOT + +RSC_EXAMPLE_VERSIONED_ITEM_1: + lateInit: true + item_group: rsc_example_sub_group + item: + name: "版本兼容测试物品 1" + material: stick + lore: + - "conditions: " + - "不存在插件 InfinityExpansion" + register: + warn: true + conditions: + - "!hasplugin InfinityExpansion" + #recipe_type: NULL # 可省略,默认NULL + recipe: + 1: + material: mycelium + +RSC_EXAMPLE_UNFINISHED_ITEM_1: + lateInit: true + item_group: rsc_example_sub_group + item: + name: "未完成测试物品 2" + material: stick + register: + unfinished: true diff --git a/machines.yml b/machines.yml index dc9bb8b..3508ea6 100644 --- a/machines.yml +++ b/machines.yml @@ -1,5 +1,6 @@ -EXAMPLE_MACHINE: - item_group: example_sub_group +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/file/machine +RSC_EXAMPLE_MACHINE: + item_group: rsc_example_sub_group item: name: "&b示例机器" material: DIAMOND_BLOCK @@ -7,13 +8,13 @@ EXAMPLE_MACHINE: recipe: 1: material_type: slimefun - material: EXAMPLE_ITEM + material: RSC_EXAMPLE_RADIATION_ITEM_1 input: [9, 10, 11, 12, 13, 14, 15, 16, 17] output: [31] - script: "example_machine" + script: example_machine work: 0 -EXAMPLE_MACHINE_ENERGY: - item_group: example_sub_group +RSC_EXAMPLE_MACHINE_ENERGY: + item_group: rsc_example_sub_group item: name: "&b示例能源机器" material: DIAMOND_BLOCK @@ -25,7 +26,7 @@ EXAMPLE_MACHINE_ENERGY: recipe: 1: material_type: slimefun - material: EXAMPLE_ITEM + material: RSC_EXAMPLE_MACHINE input: [] output: [] - script: "example_machine_energy" + script: example_machine_energy \ No newline at end of file diff --git a/mat_generators.yml b/mat_generators.yml index 04230f5..f1d9853 100644 --- a/mat_generators.yml +++ b/mat_generators.yml @@ -1,5 +1,6 @@ -EXAMPLE_MATERIAL_GENERATOR: - item_group: example_sub_group +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/file/mat_generators +RSC_EXAMPLE_MATERIAL_GENERATOR: + item_group: rsc_example_sub_group item: name: "&c示例材料生成器" material: IRON_BLOCK @@ -8,11 +9,11 @@ EXAMPLE_MATERIAL_GENERATOR: recipe: 1: material_type: slimefun - material: EXAMPLE_ITEM3 + material: RSC_EXAMPLE_RAINBOW_BLOCK_2 output: [13] outputItem: material_type: slimefun - material: EXAMPLE_ITEM + material: RSC_EXAMPLE_RAINBOW_BLOCK_2 tickRate: 5 status: 4 - per: 10 \ No newline at end of file + per: 10 diff --git a/mb_machines.yml b/mb_machines.yml index 6f1bd80..38b7cb3 100644 --- a/mb_machines.yml +++ b/mb_machines.yml @@ -1,16 +1,12 @@ -EXAMPLE_MULTIBLOCK_MACHINE: - item_group: example_normal_group +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/file/multi-block-machine +RSC_EXAMPLE_MULTIBLOCK_MACHINE: + item_group: rsc_example_sub_group item: name: "&b示例多方块机器" material: CRAFTING_TABLE recipe: - #按照这个设置 - #1 2 3 - #4 5 6 - #7 8 9 5: material: OAK_FENCE_GATE - #不要漏发射器 8: material: DISPENSER work: 5 @@ -20,42 +16,39 @@ EXAMPLE_MULTIBLOCK_MACHINE: input: 1: material_type: slimefun - material: EXAMPLE_ITEM - 2: - material_type: slimefun - material: EXAMPLE_MACHINE + material: RSC_EXAMPLE_RECIPED_ITEM_3 output: material_type: slimefun - material: EXAMPLE_ITEM_2 + material: RSC_EXAMPLE_RECIPED_ITEM_4 helmet: input: 3: material_type: slimefun - material: EXAMPLE_ITEM_2 + material: RSC_EXAMPLE_RECIPED_ITEM_4 output: material_type: slimefun - material: EXAMPLE_HELMET + material: RSC_EXAMPLE_HELMET chestplate: input: 4: material_type: slimefun - material: EXAMPLE_ITEM_2 + material: RSC_EXAMPLE_RECIPED_ITEM_4 output: material_type: slimefun - material: EXAMPLE_CHESTPLATE + material: RSC_EXAMPLE_CHESTPLATE leggings: input: 5: material_type: slimefun - material: EXAMPLE_ITEM_2 + material: RSC_EXAMPLE_RECIPED_ITEM_4 output: material_type: slimefun - material: EXAMPLE_LEGGINGS + material: RSC_EXAMPLE_LEGGINGS boots: input: 6: material_type: slimefun - material: EXAMPLE_ITEM_2 + material: RSC_EXAMPLE_RECIPED_ITEM_4 output: material_type: slimefun - material: EXAMPLE_BOOTS + material: RSC_EXAMPLE_BOOTS diff --git a/menus.yml b/menus.yml index d3d18d9..19c0acf 100644 --- a/menus.yml +++ b/menus.yml @@ -1,23 +1,24 @@ -EXAMPLE_MACHINE: +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/file/menu +RSC_EXAMPLE_MACHINE: title: "&a示例菜单" script: "example_menu" slots: 0-8: - name: "&a" - material: BLACK_STAINED_GLASS_PANE + name: "&a" + material: BLACK_STAINED_GLASS_PANE 18-30: - name: "&a" - material: BLACK_STAINED_GLASS_PANE + name: "&a" + material: BLACK_STAINED_GLASS_PANE 32-39: - name: "&a" - material: BLACK_STAINED_GLASS_PANE + name: "&a" + material: BLACK_STAINED_GLASS_PANE 40: - name: "&a一个工作按钮" - material: GREEN_STAINED_GLASS_PANE + name: "&a一个工作按钮" + material: GREEN_STAINED_GLASS_PANE 41-44: - name: "&a" - material: BLACK_STAINED_GLASS_PANE -EXAMPLE_GENERATOR: + name: "&a" + material: BLACK_STAINED_GLASS_PANE +RSC_EXAMPLE_GENERATOR: title: "&c示例发电机" slots: 0-3: @@ -36,7 +37,7 @@ EXAMPLE_GENERATOR: 17-26: name: "&a" material: BLACK_STAINED_GLASS_PANE -EXAMPLE_MATERIAL_GENERATOR: +RSC_EXAMPLE_MATERIAL_GENERATOR: title: "&d示例材料生成器" slots: 0-3: @@ -49,7 +50,7 @@ EXAMPLE_MATERIAL_GENERATOR: 14-17: name: "&a" material: BLACK_STAINED_GLASS_PANE -EXAMPLE_RECIPE_MACHINE: +RSC_EXAMPLE_RECIPE_MACHINE: title: "&c示例配方机器" slots: 0-3: diff --git a/mob_drops.yml b/mob_drops.yml index a2dbda6..7d9f38f 100644 --- a/mob_drops.yml +++ b/mob_drops.yml @@ -1,7 +1,8 @@ -EXAMPLE_MOB_DROP: - item_group: example_sub_group - entity: IRON_GOLEM +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/file/mob_drops +RSC_EXAMPLE_MOB_DROP: + item_group: rsc_example_sub_group + entity: BAT chance: 60 item: name: "&a示例生物掉落物品" - material: IRON_INGOT \ No newline at end of file + material: IRON_INGOT diff --git a/recipe_machines.yml b/recipe_machines.yml index 5fa8ca4..8abab27 100644 --- a/recipe_machines.yml +++ b/recipe_machines.yml @@ -1,16 +1,17 @@ -EXAMPLE_RECIPE_MACHINE: - item_group: example_normal_group +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/file/recipe_machines +RSC_EXAMPLE_RECIPE_MACHINE: + item_group: rsc_example_sub_group item: name: "&e示例配方机器" - material: "GREEN_STAINED_GLASS" + material: GREEN_STAINED_GLASS recipe_type: ENHANCED_CRAFTING_TABLE recipe: 1: material_type: slimefun - material: EXAMPLE_ITEM + material: RSC_EXAMPLE_RECIPED_ITEM_5 2: material_type: slimefun - material: EXAMPLE_ITEM_2 + material: RSC_EXAMPLE_RECIPED_ITEM_6 capacity: 1000 input: [10,11] output: [15,16] @@ -22,26 +23,26 @@ EXAMPLE_RECIPE_MACHINE: input: 1: material_type: slimefun - material: EXAMPLE_ITEM + material: RSC_EXAMPLE_RECIPED_ITEM_5 #可添加更多输入物品 output: 1: material_type: slimefun - material: EXAMPLE_ITEM_2 + material: RSC_EXAMPLE_RECIPED_ITEM_6 example_2: seconds: 5 chooseOne: true input: 1: material_type: slimefun - material: EXAMPLE_ITEM_2 + material: RSC_EXAMPLE_RECIPED_ITEM_6 #可添加更多输入物品 output: 1: chance: 10 material_type: slimefun - material: EXAMPLE_MACHINE + material: RSC_EXAMPLE_MACHINE 2: chance: 15 material_type: slimefun - material: EXAMPLE_ITEM \ No newline at end of file + material: RSC_EXAMPLE_RECIPED_ITEM_5 diff --git a/recipe_types.yml b/recipe_types.yml index 2120b4e..1b2e831 100644 --- a/recipe_types.yml +++ b/recipe_types.yml @@ -1,6 +1,7 @@ -EXAMPLE_RECIPE_TYPE: - material: "DIAMOND_BLOCK" - name: "&e示例配方类型" -EXAMPLE_MULTIBLOCK_MACHINE_RECIPE_TYPE: - name: "&b示例多方块机器" +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/file/recipe_type +DROP_FROM_BLOCK: + material: GOLDEN_PICKAXE + name: "&e挖掘方块掉落此物品" +RSC_EXAMPLE_MULTIBLOCK_MACHINE_RECIPE_TYPE: material: CRAFTING_TABLE + name: "&e在示例多方块机器中制作此物品" diff --git a/researches.yml b/researches.yml index d574047..15b2471 100644 --- a/researches.yml +++ b/researches.yml @@ -1,7 +1,8 @@ -example_research: +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/file/research +rsc_example_research: id: 367450001 - name: "&a示例研究" + name: "&e示例研究" levelCost: 10 + currencyCost: 15 items: - - EXAMPLE_ITEM - currencyCost: 10 #非必填 + - RSC_EXAMPLE_RESEARCH_ITEM_1 diff --git a/saveditems/example_saveditem.yml b/saveditems/example_saveditem.yml new file mode 100644 index 0000000..aa04ef5 --- /dev/null +++ b/saveditems/example_saveditem.yml @@ -0,0 +1,36 @@ +item: + ==: org.bukkit.inventory.ItemStack + v: 3218 + type: WHITE_BANNER + amount: 1 + meta: + ==: ItemMeta + meta-type: BANNER + display-name: '{"color":"gold","translate":"block.minecraft.ominous_banner"}' + ItemFlags: + - HIDE_POTION_EFFECTS + patterns: + - ==: Pattern + color: CYAN + pattern: mr + - ==: Pattern + color: LIGHT_GRAY + pattern: bs + - ==: Pattern + color: GRAY + pattern: cs + - ==: Pattern + color: LIGHT_GRAY + pattern: bo + - ==: Pattern + color: BLACK + pattern: ms + - ==: Pattern + color: LIGHT_GRAY + pattern: hh + - ==: Pattern + color: LIGHT_GRAY + pattern: mc + - ==: Pattern + color: BLACK + pattern: bo diff --git a/scripts/example_chargeable_item.js b/scripts/example_chargeable_item.js new file mode 100644 index 0000000..7a626d7 --- /dev/null +++ b/scripts/example_chargeable_item.js @@ -0,0 +1,4 @@ +function onUse(event, itemStack){ + var onUseItem = event.getItem(); + onUseItem.setItemCharge(onUseItem, 0); +} \ No newline at end of file diff --git a/scripts/example_food.js b/scripts/example_food.js new file mode 100644 index 0000000..24dba97 --- /dev/null +++ b/scripts/example_food.js @@ -0,0 +1,3 @@ +function onEat(event, player, itemStack) { + sendMessage(player, "你使用了物品"); +} diff --git a/scripts/example_item_2.js b/scripts/example_item_2.js deleted file mode 100644 index c8c02bf..0000000 --- a/scripts/example_item_2.js +++ /dev/null @@ -1,4 +0,0 @@ -function onUse(e) { - var player = e.getPlayer(); - sendMessage(player, "Hello"); -} \ No newline at end of file diff --git a/scripts/example_item_3.js b/scripts/example_item_3.js deleted file mode 100644 index 2fc0e86..0000000 --- a/scripts/example_item_3.js +++ /dev/null @@ -1,4 +0,0 @@ -function onUse(e, item){ - var item = e.getItem(); - item.setItemCharge(item, 0); -} \ No newline at end of file diff --git a/scripts/example_machine.js b/scripts/example_machine.js index 0a6b79a..23d19e7 100644 --- a/scripts/example_machine.js +++ b/scripts/example_machine.js @@ -4,12 +4,12 @@ function tick(info) { } } -function onPlace(e) { - var player = e.getPlayer(); - sendMessage(player, "Block placed"); +function onPlace(event) { + var player = event.getPlayer(); + sendMessage(player, "方块被放置"); } -function onBreak(e, item, drops) { - var player = e.getPlayer(); - sendMessage(player, "Block broke"); +function onBreak(event, itemStack, drops) { + var player = event.getPlayer(); + sendMessage(player, "方块被破坏"); } \ No newline at end of file diff --git a/scripts/example_machine_energy.js b/scripts/example_machine_energy.js index 2c70f78..a6daf0e 100644 --- a/scripts/example_machine_energy.js +++ b/scripts/example_machine_energy.js @@ -4,12 +4,12 @@ function tick(info) { machine.removeCharge(location, 100); } -function onPlace(e) { - var player = e.getPlayer(); - sendMessage(player, "Block placed"); +function onPlace(event) { + var player = event.getPlayer(); + sendMessage(player, "方块被放置"); } -function onBreak(e, item, drops) { - var player = e.getPlayer(); - sendMessage(player, "Block broke"); -} +function onBreak(event, itemStack, drops) { + var player = event.getPlayer(); + sendMessage(player, "方块被破坏"); +} \ No newline at end of file diff --git a/scripts/example_menu.js b/scripts/example_menu.js index 515cced..3833208 100644 --- a/scripts/example_menu.js +++ b/scripts/example_menu.js @@ -1,7 +1,7 @@ -function onOpen(p) { - p.sendMessage("你打开了菜单"); +function onOpen(player) { + player.sendMessage("你打开了菜单"); } -function onClose(p) { - p.sendMessage("你关闭了菜单"); +function onClose(player) { + player.sendMessage("你关闭了菜单"); } \ No newline at end of file diff --git a/scripts/example_script_item.js b/scripts/example_script_item.js new file mode 100644 index 0000000..605e1c6 --- /dev/null +++ b/scripts/example_script_item.js @@ -0,0 +1,4 @@ +function onUse(event) { + var player = event.getPlayer(); + sendMessage(player, "Hello"); +} \ No newline at end of file diff --git a/scripts/logs/example_chargeable_item.js-0.log b/scripts/logs/example_chargeable_item.js-0.log new file mode 100644 index 0000000..e69de29 diff --git a/scripts/logs/example_chargeable_item.js-0.log.lck b/scripts/logs/example_chargeable_item.js-0.log.lck new file mode 100644 index 0000000..e69de29 diff --git a/scripts/logs/example_food.js-0.log b/scripts/logs/example_food.js-0.log new file mode 100644 index 0000000..e69de29 diff --git a/scripts/logs/example_food.js-0.log.lck b/scripts/logs/example_food.js-0.log.lck new file mode 100644 index 0000000..e69de29 diff --git a/scripts/logs/example_machine.js-0.log b/scripts/logs/example_machine.js-0.log new file mode 100644 index 0000000..e69de29 diff --git a/scripts/logs/example_machine.js-0.log.lck b/scripts/logs/example_machine.js-0.log.lck new file mode 100644 index 0000000..e69de29 diff --git a/scripts/logs/example_machine_energy.js-0.log b/scripts/logs/example_machine_energy.js-0.log new file mode 100644 index 0000000..e69de29 diff --git a/scripts/logs/example_machine_energy.js-0.log.lck b/scripts/logs/example_machine_energy.js-0.log.lck new file mode 100644 index 0000000..e69de29 diff --git a/scripts/logs/example_menu.js-0.log b/scripts/logs/example_menu.js-0.log new file mode 100644 index 0000000..e69de29 diff --git a/scripts/logs/example_menu.js-0.log.lck b/scripts/logs/example_menu.js-0.log.lck new file mode 100644 index 0000000..e69de29 diff --git a/scripts/logs/example_script_item.js-0.log b/scripts/logs/example_script_item.js-0.log new file mode 100644 index 0000000..e69de29 diff --git a/scripts/logs/example_script_item.js-0.log.lck b/scripts/logs/example_script_item.js-0.log.lck new file mode 100644 index 0000000..e69de29 diff --git a/simple_machines.yml b/simple_machines.yml index 44992c3..1143e8d 100644 --- a/simple_machines.yml +++ b/simple_machines.yml @@ -1,5 +1,6 @@ -EX_ADVANCED_GOLD_PAN: - item_group: example_sub_group +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/file/simple_machines +RSC_EX_ADVANCED_GOLD_PAN: + item_group: rsc_example_sub_group item: material: FURNACE name: "&b&l超级&7淘金机" @@ -8,7 +9,7 @@ EX_ADVANCED_GOLD_PAN: - "" - "&8⇨ &e⚡ &7速度: 50x" - "&8⇨ &e⚡ &71,000 J/s" - type: ELECTRIC_SMELTERY + type: ELECTRIC_GOLD_PAN settings: capacity: 5000 consumption: 1000 diff --git a/solar_generators.yml b/solar_generators.yml index 12e0527..ebe75bc 100644 --- a/solar_generators.yml +++ b/solar_generators.yml @@ -1,5 +1,6 @@ -EXAMPLE_SOLAR_GENERATOR: - item_group: example_normal_group +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/file/solar_generators +RSC_EXAMPLE_SOLAR_GENERATOR: + item_group: rsc_example_sub_group item: name: "&c示例太阳能发电机" material: GOLD_BLOCK @@ -10,20 +11,3 @@ EXAMPLE_SOLAR_GENERATOR: dayEnergy: 1000 nightEnergy: 100 lightLevel: 14 - recipe_type: ENHANCED_CRAFTING_TABLE - recipe: - 1: - material_type: slimefun - material: EXAMPLE_ITEM - 3: - material_type: slimefun - material: EXAMPLE_ITEM_2 - 5: - material_type: slimefun - material: EXAMPLE_MACHINE - 7: - material_type: slimefun - material: EXAMPLE_ITEM_2 - 9: - material_type: slimefun - material: EXAMPLE_ITEM diff --git a/supers.yml b/supers.yml new file mode 100644 index 0000000..ce79c1e --- /dev/null +++ b/supers.yml @@ -0,0 +1,39 @@ +# RykenSlimeCustomizer Wiki: https://rsc.himcs.top/#/file/supers +RSC_EXAMPLE_SUPER_CARBON_PRESS: + item_group: rsc_example_sub_group + item: + material: FURNACE + name: "&b&l超级&7碳压机" + class: "io.github.thebusybiscuit.slimefun4.implementation.items.electric.machines.CarbonPress" + method: + setCapacity: 50000 + setProcessingSpeed: 20 + register: + unfinished: true + +RSC_EXAMPLE_SUPER_ITEM: + item_group: rsc_example_sub_group + item: + material: MUSIC_DISC_PIGSTEP + name: "&b&l超级&7存储元件" + lore: + - "&e继承测试" + class: "me.ddggdd135.slimeae.core.slimefun.MEItemStorageCell" # 来自 SlimeAE + args: [50000] + register: + conditions: + - "hasplugin SlimeAE" + unfinished: true + +RSC_SUPER_GEO_QUARRY: + item_group: rsc_example_sub_group + item: + material: FURNACE + name: "&b&l超级&7GEO矿机" + class: "io.github.mooy1.infinityexpansion.items.machines.GeoQuarry" + field: + ticksPerOutput: 2 + register: + conditions: + - "hasplugin InfinityExpansion" + unfinished: true