UID15672性别保密经验 EP铁粒 粒回帖0主题精华在线时间 小时注册时间2020-10-1最后登录1970-1-1
| 本帖最后由 him论坛号 于 2021-9-24 23:23 编辑
再次更新,是时候要讲一下这个了,在生存中,我们大部分玩家都玩腻了原版工具,但mojang可是一年更新一次,因此不得不自己来做,好了,正片开始
首先在资源包文件创建以下文件
texts-语言
textures-材质
在textures里创建文件items,然后放入工具的材质,格式是这样的him.png,him可以改,png不行,再创建item_texture.json这个文件,然后写入
{
"resource_pack_name": "vanilla",
"texture_name": "atlas.items",
"texture_data": {
"egg_camel": {
"textures": "textures/items/egg_camel"
},
"him_gongju": {
"textures": [
"textures/items/pamobile/him_gongju"
]
}
}
}
注意him_gongju得是你自己的ID,相当于把你的ID中的:换成_
接下来是语言部分,在texts创建zh_CN.lang,用编辑文本的形式打开,再写入
item.him:gongju.name=工具
注意,当中的him:gongju要改成你自己的ID,比如改成him:wzs
就是item.him:wzs.name=工具
恭喜
资源包部分没了
接下来是行为包
创建以下文件:
items-工具的json
recipes-合成表(可有可无)
在items里创建文件him_gongju.json(除了json其他可以换),这是物品的代码:
{
"format_version": "1.16.100",
"minecraft:item": {
"description": {
"category": "equipment",
"identifier": "him:gongju"
},
"components": {
"minecraft:icon": {
"texture": "him_feicuigao"
},
"minecraft:creative_category": {
"parent": "itemGroup.name.pickaxe"
},
"minecraft:max_stack_size": 1,
"minecraft:hand_equipped": true,
"minecraft:allow_off_hand": true,
"minecraft:foil": false,
"minecraft:durability": {
"max_durability": 114514,
"damage_chance": {
"min": 60,
"max": 100
}
},
"minecraft:repairable": {
"repair_items": [
{
"items": [
"minecraft:emerald"
],
"repair_amount": 10
},
{
"items": [
"him:feicuigao"
],
"repair_amount": "context.other->query.remaining_durability + 0.2 * context.other->query.max_durability"
}
]
},
"minecraft:mining_speed": 1,
"minecraft:damage": 10,
"minecraft:enchantable": {
"value": 15,
"slot": "pickaxe"
},
"minecraft:can_destroy_in_creative": true,
"minecraft:digger": {
"use_efficiency": true,
"destroy_speeds": [
{
"block": "minecraft:amethyst_cluster",
"speed": 200,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:amethyst_block",
"speed": 200,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:copper_block",
"speed": 200,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:raw_copper_block",
"speed": 200,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:raw_gold_block",
"speed": 200,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:raw_iron_block",
"speed": 200,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:calcite",
"speed": 200,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:chiseled_deepslate",
"speed": 200,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:cobbled_deepslate",
"speed": 200,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:cobbled_deepslate_slab",
"speed": 200,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:cobbled_deepslate_stairs",
"speed": 200,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:cobbled_deepslate_wall",
"speed": 200,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:copper_ore",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:cracked_deepslate_bricks",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:cracked_deepslate_tiles",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:deepslate",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:deepslate_brick_slab",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:deepslate_brick_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:deepslate_brick_wall",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:deepslate_bricks",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:deepslate_coal_ore",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:deepslate_copper_ore",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:deepslate_diamond_ore",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:deepslate_emerald_ore",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:deepslate_gold_ore",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:deepslate_iron_ore",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:deepslate_lapis_ore",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:deepslate_redstone_ore",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:deepslate_tile_slab",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:deepslate_tile_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:deepslate_tile_wall",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:deepslate_tiles",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:dripstone_block",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:exposed_copper",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:exposed_cut_copper",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:exposed_cut_copper_slab",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:exposed_cut_copper_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:infested_deepslate",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:lightning_rod",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:oxidized_copper",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:oxidized_cut_copper",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:oxidized_cut_copper_slab",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:oxidized_cut_copper_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:pointed_dripstone",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:polished_deepslate",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:polished_deepslate_slab",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:polished_deepslate_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:polished_deepslate_wall",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:smooth_basalt",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:tinted_glass",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:tuff",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:waxed_copper_block",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:waxed_cut_copper",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:waxed_cut_copper_slab",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:waxed_cut_copper_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:waxed_exposed_copper",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:waxed_exposed_cut_copper",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:waxed_exposed_cut_copper_slab",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:waxed_exposed_cut_copper_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:waxed_oxidized_copper",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:waxed_oxidized_cut_copper",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:waxed_oxidized_cut_copper_slab",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:waxed_oxidized_cut_copper_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:waxed_weathered_copper",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:waxed_weathered_cut_copper",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:waxed_weathered_cut_copper_slab",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:waxed_weathered_cut_copper_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:weathered_copper",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:weathered_cut_copper",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:weathered_cut_copper_slab",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:weathered_cut_copper_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:basalt",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:black_glazed_terracotta",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:blackstone",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:blackstone_slab",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:blackstone_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:blackstone_wall",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:blue_glazed_terracotta",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:bone_block",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:brick_block",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:brick_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:brown_glazed_terracotta",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:chiseled_nether_bricks",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:chiseled_polished_blackstone",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:coal_block",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:coal_ore",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:cobblestone",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:cobblestone_wall",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:concrete",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:coral_block",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:cracked_nether_bricks",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:cracked_polished_blackstone_bricks",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:crimson_nylium",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:crying_obsidian",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:cyan_glazed_terracotta",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:dark_prismarine_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:daylight_detector",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:detector_rail",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:diamond_block",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:diamond_ore",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:diorite_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:dispenser",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:dropper",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:emerald_block",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:emerald_ore",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:enchanting_table",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:end_brick_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:end_bricks",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:monster_egg",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:end_stone",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:ender_chest",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:furnace",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:gilded_blackstone",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:glowstone",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:gold_block",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:gold_ore",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:golden_rail",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:granite_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:gray_glazed_terracotta",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:green_glazed_terracotta",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:grindstone",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:hardened_clay",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:heavy_weighted_pressure_plate",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:hopper",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:iron_bars",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:iron_block",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:iron_door",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:iron_ore",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:iron_trapdoor",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:lapis_block",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:lapis_ore",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:light_blue_glazed_terracotta",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:light_weighted_pressure_plate",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:lime_glazed_terracotta",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:magenta_glazed_terracotta",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:magma",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:mossy_cobblestone",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:mossy_cobblestone_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:mossy_stone_brick_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:nether_brick",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:netherite_block",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:netherrack",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:normal_stone_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:observer",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:obsidian",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:packed_ice",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:pink_glazed_terracotta",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:piston",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:polished_andesite_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:polished_basalt",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:polished_blackstone",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:polished_blackstone_brick_slab",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:polished_blackstone_brick_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:polished_blackstone_brick_wall",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:polished_blackstone_bricks",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:polished_blackstone_button",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:polished_blackstone_pressure_plate",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:polished_blackstone_slab",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:polished_blackstone_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:polished_blackstone_wall",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:polished_diorite_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:polished_granite_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:prismarine",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:prismarine_bricks_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:prismarine_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:purple_glazed_terracotta",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:purpur_block",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:purpur_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:quartz_block",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:quartz_bricks",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:quartz_ore",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:quartz_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:red_glazed_terracotta",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:red_nether_brick",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:red_nether_brick_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:red_sandstone",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:red_sandstone_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:redstone_block",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:redstone_lamp",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:redstone_ore",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:respawn_anchor",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:sandstone",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:sandstone_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:sealantern",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:shulker_box",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:silver_glazed_terracotta",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:skull",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:smoker",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:smooth_quartz_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:smooth_red_sandstone_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:smooth_sandstone_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:smooth_stone",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:stained_hardened_clay",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:sticky_piston",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:stone",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:stone_brick_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:stone_button",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:stone_pressure_plate",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:stone_slab",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:stone_slab2",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:stone_slab3",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:stone_slab4",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:stone_stairs",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:stonebrick",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:stonecutter_block",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:undyed_shulker_box",
"speed": 2,
"on_dig": {
"event": "hurt"
}
},
{
"block": "minecraft:yellow_glazed_terracotta",
"speed": 2,
"on_dig": {
"event": "hurt"
}
}
]
},
"minecraft:weapon": {
"on_hurt_entity": {
"event": "hurt"
},
"on_not_hurt_entity": {
"event": "hurt"
},
"on_hit_block": {
"event": "hurt"
}
},
"minecraft:render_offsets": {
"main_hand": {
"third_person": {
"scale": [
0.1,
0.1,
0.1
]
},
"first_person": {
"scale": [
0.037999999999977205,
0.037999999999977205,
0.037999999999977205
]
}
},
"off_hand": {
"third_person": {
"scale": [
0.1,
0.1,
0.1
]
},
"first_person": {
"scale": [
0.037999999999977205,
0.037999999999977205,
0.037999999999977205
]
}
}
},
"tag:minecraft:is_pickaxe": {},
"minecraft:display_name": {}
},
"events": {
"on_use_event": {
"sequence": [
{
"damage": {
"type": "magic",
"amount": 1,
"target": "self"
}
}
]
},
"hurt": {
"damage": {
"type": "magic",
"amount": 1,
"target": "self"
}
}
}
}
}
因为这是镐子的json,所以较为复杂
"identifier": "him:gongju":物品ID
"texture": "him_gongju":材质名字,如果你的材质名字叫him_gongju.png就可以用这个
"max_durability": 114514,:耐久,可以改114514来修改耐久,只能是数字
"repair_amount": 10:攻击伤害
"block": "minecraft:amethyst_cluster",:可被挖掘的方块
"speed": 200,:挖掘速度
挖掘方块完整代码:"block": "minecraft:amethyst_cluster",
"speed": 200,
"on_dig": {
"event": "hurt"
}
},
"tag:minecraft:is_pickaxe": {},:工具类型
is_pickaxe是稿子
is_sword是剑
is_hoe是锄头
is_axe是斧头
is_shovel是铲子
其他工具改类型和可挖掘方块就行了,本期教程就此结束个屁,还有配方呢
在recipes里创建文件,注意,名字得是你要合成的物品的ID,:改成_并加上json,假设这个东西的ID为him:gongju,就就创建him_gongju.json
然后写入
{
"format_version": "1.12",
"minecraft:recipe_shaped": {
"description": {
"identifier": "feicuigao_c1da1df7"
},
"tags": [
"crafting_table"
],
"pattern": [
"AAA",
" B ",
" B "
],
"key": {
"A": {
"item": "him:feicuiding",
"data": 0
},
"B": {
"item": "minecraft:stick",
"data": 0
}
},
"result": {
"item": "him:feicuigao",
"count": 1
}
}
}
"pattern": [:是合成顺序
可用a、b、c、d、e、f、g、h、i等字母表示
"A": {
"item": "him:gongju",
"data": 0:指哪个字母代表什么,如果是A代表钻石,那么在写合成表时,钻石的位置用A表示,要大写其他字母同理,只是A改成了其他字母,材料也变了,"item": "him:gongju",则是代表的材料
"item": "him:gongju",:合成出来的东西
"count": 1:合成出来的数量
然后就完了,合成表合成出来的也可以改成其他东西,比如方块,那么本期教程就没了
|
评分查看全部评分
|