diff --git a/behavior_pack/features/darkish_red_flower.json b/behavior_pack/features/darkish_red_flower.json new file mode 100644 index 0000000..e69de29 diff --git a/behavior_pack/items/foods/cooked_m_c.json b/behavior_pack/items/foods/cooked_m_c.json new file mode 100644 index 0000000..f4cf42c --- /dev/null +++ b/behavior_pack/items/foods/cooked_m_c.json @@ -0,0 +1,34 @@ +{ + "format_version": "1.21.90", + "minecraft:item": { + "description": { + "identifier": "we:cooked_m_c", + "menu_category": { + "category": "nature" + } + }, + "components": { + "minecraft:max_stack_size": 16, + "minecraft:display_name": { + "value": "item.we:cooked_m_c.name" + }, + "minecraft:food": { + "nutrition": 6, + "saturation_modifier": 2, + "can_always_eat": true + }, + "minecraft:use_modifiers": { + "use_duration": 1.5, + "movement_modifier": 0.5 + }, + "minecraft:use_animation": { + "value": "eat" + }, + "minecraft:icon": { + "textures": { + "default": "we:cooked_m_c" + } + } + } + } +} \ No newline at end of file diff --git a/behavior_pack/items/foods/dried_fish.json b/behavior_pack/items/foods/dried_fish.json new file mode 100644 index 0000000..2669f16 --- /dev/null +++ b/behavior_pack/items/foods/dried_fish.json @@ -0,0 +1,34 @@ +{ + "format_version": "1.21.90", + "minecraft:item": { + "description": { + "identifier": "we:dried_fish", + "menu_category": { + "category": "nature" + } + }, + "components": { + "minecraft:max_stack_size": 16, + "minecraft:display_name": { + "value": "item.we:dried_fish.name" + }, + "minecraft:food": { + "nutrition": 3, + "saturation_modifier": 2, + "can_always_eat": false + }, + "minecraft:use_modifiers": { + "use_duration": 1, + "movement_modifier": 0.5 + }, + "minecraft:use_animation": { + "value": "eat" + }, + "minecraft:icon": { + "textures": { + "default": "we:dried_fish" + } + } + } + } +} \ No newline at end of file diff --git a/behavior_pack/items/foods/dried_meat.json b/behavior_pack/items/foods/dried_meat.json new file mode 100644 index 0000000..7dbee50 --- /dev/null +++ b/behavior_pack/items/foods/dried_meat.json @@ -0,0 +1,34 @@ +{ + "format_version": "1.21.90", + "minecraft:item": { + "description": { + "identifier": "we:dried_meat", + "menu_category": { + "category": "nature" + } + }, + "components": { + "minecraft:max_stack_size": 16, + "minecraft:display_name": { + "value": "item.we:dried_meat.name" + }, + "minecraft:food": { + "nutrition": 5, + "saturation_modifier": 2, + "can_always_eat": false + }, + "minecraft:use_modifiers": { + "use_duration": 1.5, + "movement_modifier": 0.5 + }, + "minecraft:use_animation": { + "value": "eat" + }, + "minecraft:icon": { + "textures": { + "default": "we:dried_meat" + } + } + } + } +} \ No newline at end of file diff --git a/behavior_pack/items/foods/moldy bread.json b/behavior_pack/items/foods/moldy bread.json new file mode 100644 index 0000000..9366806 --- /dev/null +++ b/behavior_pack/items/foods/moldy bread.json @@ -0,0 +1,34 @@ +{ + "format_version": "1.21.90", + "minecraft:item": { + "description": { + "identifier": "we:modded_bread", + "menu_category": { + "category": "nature" + } + }, + "components": { + "minecraft:max_stack_size": 16, + "minecraft:display_name": { + "value": "item.we:modded_bread.name" + }, + "minecraft:food": { + "nutrition": 1, + "saturation_modifier": 2, + "can_always_eat": true + }, + "minecraft:use_modifiers": { + "use_duration": 1, + "movement_modifier": 0.2 + }, + "minecraft:use_animation": { + "value": "eat" + }, + "minecraft:icon": { + "textures": { + "default": "we:modded_bread" + } + } + } + } +} \ No newline at end of file diff --git a/behavior_pack/items/foods/smoked_meat.json b/behavior_pack/items/foods/smoked_meat.json new file mode 100644 index 0000000..7663211 --- /dev/null +++ b/behavior_pack/items/foods/smoked_meat.json @@ -0,0 +1,34 @@ +{ + "format_version": "1.21.90", + "minecraft:item": { + "description": { + "identifier": "we:smoked_fish", + "menu_category": { + "category": "nature" + } + }, + "components": { + "minecraft:max_stack_size": 16, + "minecraft:display_name": { + "value": "item.we:smoked_fish.name" + }, + "minecraft:food": { + "nutrition": 4, + "saturation_modifier": 2, + "can_always_eat": false + }, + "minecraft:use_modifiers": { + "use_duration": 1.5, + "movement_modifier": 0.5 + }, + "minecraft:use_animation": { + "value": "eat" + }, + "minecraft:icon": { + "textures": { + "default": "we:smoked_fish" + } + } + } + } +} \ No newline at end of file diff --git a/behavior_pack/manifest.json b/behavior_pack/manifest.json new file mode 100644 index 0000000..3145426 --- /dev/null +++ b/behavior_pack/manifest.json @@ -0,0 +1,36 @@ +{ + "format_version": 2, + "metadata": { + "authors": ["text"], + "license": "text", + "url": "https://github.com/wed150/Wild-Era-Addon", + "product_type": "addon" + }, + "header": { + "name": "蛮荒纪元demo", + "description": "此为蛮荒纪元的预览版", + "min_engine_version": [1, 21, 90], + "uuid": "6498d2f6-4ff2-4db3-847a-3f2931ed53a1", + "version": [1, 0, 2] + }, + "capabilities": ["script_eval"], + "modules": [ + { + "type": "data", + "uuid": "ec6aaa55-da0c-4353-9662-68e0b43e86cf", + "version": [1, 0, 2] + }, + { + "type": "script", + "uuid": "4d2ba385-f89b-4f06-a43f-b88a9fc8f399", + "version": [1, 0, 2], + "entry": "scripts/main.js" + } + ], + "dependencies": [ + { + "uuid": "b366db34-a899-4253-9dcb-fe63db5ce385", + "version": [1, 0, 2] + } + ] +} diff --git a/behavior_pack/pack_icon.png b/behavior_pack/pack_icon.png new file mode 100644 index 0000000..40e3035 Binary files /dev/null and b/behavior_pack/pack_icon.png differ diff --git a/behavior_pack/scripts/config.js b/behavior_pack/scripts/config.js new file mode 100644 index 0000000..d1b7935 --- /dev/null +++ b/behavior_pack/scripts/config.js @@ -0,0 +1,134 @@ +//配置文件 +export let Config = { + immune:{ + attack:{ + [EntityDamageCause.entityAttack]:[ + "minecraft:diamond_helmet"//可以免疫生物攻击(小于生命)的头盔 + ], + [EntityDamageCause.projectile]:[ + "minecraft:diamond_helmet"//可以免疫弹射物攻击(小于生命)的头盔 + ] + }, + effect:[ + "minecraft:diamond_helmet"//可以免疫药水效果的头盔 + ] + }, + canRot:{ + "minecraft:diamond_helmet":"minecraft:rotten_flesh", + "minecraft:mushroom_stew":"minecraft:rotten_flesh", + /*"原物品id":"腐烂后物品id",*/ + }, + rotTime:240/*00*/, + attackEvent:{ + addEffect:{ + "minecraft:diamond_helmet":{ + effect: [ + { + "effectId":"minecraft:slowness", + "duration":80, + "amplifier":1 + } + ] + }, + "minecraft:golden_helmet":{ + effect: [ + { + "effectId":"minecraft:poison", + "duration":120, + "amplifier":1 + } + ] + }, + "minecraft:iron_helmet":{ + effect: [ + { + "effectId":"minecraft:weakness", + "duration":160, + "amplifier":1 + } + ] + }, + "minecraft:chainmail_helmet":{ + effect: [ + { + "effectId":"minecraft:levitation", + "duration":200, + "amplifier":1 + } + ] + }, + "minecraft:netherite_helmet":{ + effect: [ + { + "effectId":"minecraft:wither", + "duration":240, + "amplifier":1 + } + ] + }, + "minecraft:leather_helmet":{ + effect: [ + { + "effectId":"minecraft:wither", + "duration":240, + "amplifier":1 + }, + { + "effectId":"minecraft:weakness", + "duration":240, + "amplifier":1 + } + ] + } + /* + "物品id":{ + effect: [ + { + "effectId":"效果id", + "duration":时间(tick), + "amplifier":效果等级 + }, + {…………} + ] + } + */ + }, + spwamEntity:{ + "minecraft:diamond_sword":"minecraft:lightning_bolt" + /*"攻击物品id":"生成的生物"*/ + + } + }, + bark:"minecraft:rotten_flesh",//树皮id + durability:[ + "minecraft:diamond_pickaxe", + ] +}; + + + + + + + + + + + + + + +//Debug配置 +import {CommandPermissionLevel, EntityDamageCause, system, world} from "@minecraft/server"; + +export let debug = false; +system.beforeEvents.startup.subscribe(event=>{ + event.customCommandRegistry.registerCommand( { + name: "mode:debug", + description: "切换 Debug Mode", + permissionLevel: CommandPermissionLevel.GameDirectors, + },() => { + debug = !debug; + world.sendMessage(`Debug mode ${debug ? "enabled" : "disabled"}`); + }) +}) \ No newline at end of file diff --git a/behavior_pack/scripts/core.js b/behavior_pack/scripts/core.js new file mode 100644 index 0000000..e8f57f0 --- /dev/null +++ b/behavior_pack/scripts/core.js @@ -0,0 +1 @@ +const _0x39191f=_0x494f;(function(_0x4db4fb,_0x1a462a){const _0x4f6a20=_0x494f,_0x38775f=_0x4db4fb();while(!![]){try{const _0x20100b=-parseInt(_0x4f6a20(0x227))/0x1*(-parseInt(_0x4f6a20(0x214))/0x2)+parseInt(_0x4f6a20(0x243))/0x3*(-parseInt(_0x4f6a20(0x216))/0x4)+-parseInt(_0x4f6a20(0x237))/0x5+parseInt(_0x4f6a20(0x1f4))/0x6*(-parseInt(_0x4f6a20(0x23c))/0x7)+parseInt(_0x4f6a20(0x1f1))/0x8+parseInt(_0x4f6a20(0x21f))/0x9+-parseInt(_0x4f6a20(0x1fe))/0xa;if(_0x20100b===_0x1a462a)break;else _0x38775f['push'](_0x38775f['shift']());}catch(_0x9dc38b){_0x38775f['push'](_0x38775f['shift']());}}}(_0x56fc,0x816a4));function _0x56fc(){const _0x16def9=['\x63\x6f\x6e\x74\x61\x69\x6e\x65\x72','\x79\x57\x4f\x6b\x46','\x65\x66\x66\x65\x63\x74\x49\x64','\x6e\x61\x6d\x65\x54\x61\x67','\x67\x65\x74\x44\x79\x6e\x61\x6d\x69\x63\x50\x72\x6f\x70\x65\x72\x74\x79','\x6e\x65\x77\x53\x6c\x6f\x74\x53\x65\x6c\x65\x63\x74\x65\x64','\x72\x75\x6e','\x78\x47\x5a\x45\x67','\x62\x65\x66\x6f\x72\x65\x45\x76\x65\x6e\x74\x73','\x73\x70\x77\x61\x6d\x45\x6e\x74\x69\x74\x79','\x6f\x6e\x53\x63\x72\x65\x65\x6e\x44\x69\x73\x70\x6c\x61\x79','\x68\x61\x73\x54\x61\x67','\x52\x4c\x68\x67\x4a','\x63\x6c\x6f\x6e\x65','\x77\x4b\x68\x61\x49','\x73\x6c\x6f\x74','\x50\x41\x6e\x70\x6e','\x63\x61\x6e\x63\x65\x6c','\x74\x6f\x53\x74\x72\x69\x6e\x67','\x69\x78\x61\x58\x6a','\x69\x73\x41\x72\x72\x61\x79','\x70\x6c\x61\x79\x65\x72\x48\x6f\x74\x62\x61\x72\x53\x65\x6c\x65\x63\x74\x65\x64\x53\x6c\x6f\x74\x43\x68\x61\x6e\x67\x65','\x61\x64\x64\x45\x66\x66\x65\x63\x74','\x43\x72\x65\x61\x74\x69\x76\x65','\x75\x72\x65\x7a\x48','\x63\x75\x72\x72\x65\x6e\x74\x56\x61\x6c\x75\x65','\x73\x65\x74\x49\x74\x65\x6d','\x74\x79\x70\x65','\x6c\x6f\x63\x61\x74\x69\x6f\x6e','\x34\x37\x37\x30\x33\x32\x30\x76\x57\x65\x73\x50\x47','\x4d\x61\x69\x6e\x68\x61\x6e\x64','\x69\x6e\x63\x6c\x75\x64\x65\x73','\x36\x69\x75\x67\x70\x69\x66','\x63\x71\x51\x66\x55','\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67\x65','\x73\x6f\x75\x72\x63\x65','\x73\x70\x61\x77\x6e\x45\x6e\x74\x69\x74\x79','\x64\x75\x72\x61\x62\x69\x6c\x69\x74\x79','\x6d\x69\x6e\x65\x63\x72\x61\x66\x74\x3a\x70\x6c\x61\x79\x65\x72','\x67\x65\x74\x47\x61\x6d\x65\x4d\x6f\x64\x65','\x68\x75\x72\x74\x45\x6e\x74\x69\x74\x79','\x6c\x65\x76\x65\x6c','\x36\x36\x36\x38\x33\x35\x30\x6a\x57\x62\x6f\x6d\x61','\x6d\x61\x78\x44\x75\x72\x61\x62\x69\x6c\x69\x74\x79','\x73\x65\x74\x43\x75\x72\x72\x65\x6e\x74\x56\x61\x6c\x75\x65','\x6d\x69\x6e\x65\x63\x72\x61\x66\x74\x3a\x69\x73\x5f\x61\x78\x65','\x67\x65\x74\x43\x6f\x6d\x70\x6f\x6e\x65\x6e\x74','\x65\x66\x66\x65\x63\x74\x41\x64\x64','\x6c\x6f\x63\x6b\x4d\x6f\x64\x65','\u00a7\x72\u4f60\u62ff\u8d77\u4e86\u8089\u53d1\u73b0\u5b83\u5df2\u7ecf\u00a7\x32\u8150\u70c2\u00a7\x72\u4e86','\x75\x6e\x62\x72\x65\x61\x6b\x69\x6e\x67','\x65\x66\x66\x65\x63\x74','\x43\x4a\x49\x56\x53','\x67\x65\x74\x45\x71\x75\x69\x70\x6d\x65\x6e\x74','\x64\x61\x6d\x61\x67\x65','\u6389\u843d\u6982\u7387\u6570\u5b57\x28\x3c\x30\x2e\x38\u6389\u843d\x29','\x45\x59\x4a\x76\x49','\x64\x69\x6d\x65\x6e\x73\x69\x6f\x6e','\x62\x75\x44\x47\x55','\x4c\x59\x76\x74\x63','\x67\x65\x74\x41\x62\x73\x6f\x6c\x75\x74\x65\x54\x69\x6d\x65','\x72\x61\x6e\x64\x6f\x6d','\x65\x6e\x74\x69\x74\x79','\x48\x65\x61\x6c\x74\x68','\x31\x38\x37\x32\x30\x37\x34\x65\x51\x42\x74\x66\x6a','\x6f\x68\x65\x4d\x46','\x31\x32\x7a\x56\x72\x6f\x6f\x49','\x73\x70\x61\x77\x6e\x49\x74\x65\x6d','\u8010\u4e45\u6d88\u8017\u6982\u7387','\x69\x74\x65\x6d\x55\x73\x65','\x48\x65\x61\x64','\x63\x61\x6e\x52\x6f\x74','\x64\x61\x6d\x61\x67\x69\x6e\x67\x45\x6e\x74\x69\x74\x79','\x73\x65\x74\x45\x71\x75\x69\x70\x6d\x65\x6e\x74','\x59\x5a\x56\x61\x52','\x34\x37\x38\x38\x38\x33\x37\x69\x46\x4b\x64\x54\x52','\x46\x78\x72\x45\x4b','\x6b\x4f\x74\x49\x47','\x61\x70\x70\x6c\x79','\x62\x6c\x6f\x63\x6b','\x4a\x6a\x51\x4a\x6f','\x61\x74\x74\x61\x63\x6b','\x72\x6f\x74\x54\x69\x6d\x65','\x31\x44\x73\x56\x67\x6a\x46','\x61\x74\x74\x61\x63\x6b\x45\x76\x65\x6e\x74','\x73\x67\x63\x45\x43','\x61\x66\x74\x65\x72\x45\x76\x65\x6e\x74\x73','\x70\x6c\x61\x79\x65\x72\x49\x6e\x76\x65\x6e\x74\x6f\x72\x79\x49\x74\x65\x6d\x43\x68\x61\x6e\x67\x65','\x63\x61\x75\x73\x65','\x73\x65\x74\x41\x63\x74\x69\x6f\x6e\x42\x61\x72','\x20\u5f39\u5c04\u514d\u75ab\x3a','\u653b\u51fb\u514d\u75ab\x3a','\x70\x6c\x61\x79\x65\x72','\x63\x6f\x6d\x70\x6f\x6e\x65\x6e\x74\x49\x64','\x73\x65\x6c\x65\x63\x74\x65\x64\x53\x6c\x6f\x74\x49\x6e\x64\x65\x78','\x65\x6e\x63\x68\x61\x6e\x74\x61\x62\x6c\x65','\x43\x5a\x6a\x5a\x79','\x67\x65\x74\x49\x74\x65\x6d','\x67\x65\x74\x45\x6e\x63\x68\x61\x6e\x74\x6d\x65\x6e\x74','\x37\x33\x33\x37\x36\x30\x6b\x4a\x74\x56\x71\x6f','\x73\x75\x62\x73\x63\x72\x69\x62\x65','\x70\x6c\x61\x79\x65\x72\x49\x6e\x74\x65\x72\x61\x63\x74\x57\x69\x74\x68\x42\x6c\x6f\x63\x6b','\x4e\x56\x58\x6c\x42','\x45\x71\x75\x69\x70\x70\x61\x62\x6c\x65','\x31\x39\x33\x34\x30\x37\x32\x42\x73\x4a\x79\x6d\x4d','\x6c\x6f\x67','\x6b\x65\x65\x70\x4f\x6e\x44\x65\x61\x74\x68','\x69\x6d\x6d\x75\x6e\x65','\x20\u80f8\u7532\x3a','\x62\x61\x72\x6b','\x66\x6f\x72\x45\x61\x63\x68','\x34\x34\x34\x34\x35\x33\x46\x4c\x4a\x4d\x79\x66','\x74\x79\x70\x65\x49\x64','\x65\x6e\x74\x69\x74\x79\x48\x69\x74\x45\x6e\x74\x69\x74\x79','\x28\x28\x28\x2e\x2b\x29\x2b\x29\x2b\x29\x2b\x24','\x68\x69\x74\x45\x6e\x74\x69\x74\x79'];_0x56fc=function(){return _0x16def9;};return _0x56fc();}function _0x494f(_0x1925f8,_0x3ebebb){const _0x398332=_0x56fc();return _0x494f=function(_0x50008c,_0x1d5707){_0x50008c=_0x50008c-0x1ee;let _0x56fc79=_0x398332[_0x50008c];return _0x56fc79;},_0x494f(_0x1925f8,_0x3ebebb);}const _0x1d5707=(function(){let _0x13507b=!![];return function(_0x521355,_0x4b22f2){const _0x207875=_0x13507b?function(){const _0x49f931=_0x494f;if(_0x4b22f2){const _0x19d8f2=_0x4b22f2[_0x49f931(0x222)](_0x521355,arguments);return _0x4b22f2=null,_0x19d8f2;}}:function(){};return _0x13507b=![],_0x207875;};}()),_0x50008c=_0x1d5707(this,function(){const _0x5cb858=_0x494f,_0x71c16a={'\x78\x47\x5a\x45\x67':_0x5cb858(0x246)};return _0x50008c[_0x5cb858(0x25a)]()['\x73\x65\x61\x72\x63\x68'](_0x71c16a[_0x5cb858(0x24f)])['\x74\x6f\x53\x74\x72\x69\x6e\x67']()['\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f\x72'](_0x50008c)['\x73\x65\x61\x72\x63\x68'](_0x71c16a[_0x5cb858(0x24f)]);});_0x50008c();import{Config,debug}from'\x2e\x2f\x63\x6f\x6e\x66\x69\x67';import{EntityComponentTypes,EquipmentSlot,system,world,ItemStack,EntityDamageCause,EntityEquippableComponent,GameMode}from'\x40\x6d\x69\x6e\x65\x63\x72\x61\x66\x74\x2f\x73\x65\x72\x76\x65\x72';world[_0x39191f(0x22a)][_0x39191f(0x245)][_0x39191f(0x238)](_0x4ba012=>{const _0x85472a=_0x39191f,_0x177702={'\x45\x59\x4a\x76\x49':function(_0x351b91,_0x2bcea4){return _0x351b91!==_0x2bcea4;},'\x42\x6f\x47\x4c\x6a':_0x85472a(0x1fa)};if(_0x177702[_0x85472a(0x20c)](_0x4ba012[_0x85472a(0x21c)]?.['\x74\x79\x70\x65\x49\x64'],_0x177702['\x42\x6f\x47\x4c\x6a']))return;system[_0x85472a(0x24e)](()=>{const _0x18ac49=_0x85472a;let _0x4060a9=_0x4ba012['\x64\x61\x6d\x61\x67\x69\x6e\x67\x45\x6e\x74\x69\x74\x79'][_0x18ac49(0x202)](EntityComponentTypes['\x45\x71\x75\x69\x70\x70\x61\x62\x6c\x65'])[_0x18ac49(0x209)](EquipmentSlot[_0x18ac49(0x1f2)]);Config[_0x18ac49(0x228)][_0x18ac49(0x25e)][_0x4060a9?.['\x74\x79\x70\x65']?.['\x69\x64']]&&system[_0x18ac49(0x24e)](()=>{const _0x3a357b=_0x18ac49,_0x35f6ba=Config[_0x3a357b(0x228)]['\x61\x64\x64\x45\x66\x66\x65\x63\x74'][_0x4060a9[_0x3a357b(0x244)]]['\x65\x66\x66\x65\x63\x74'];_0x35f6ba&&Array[_0x3a357b(0x25c)](_0x35f6ba)&&_0x35f6ba[_0x3a357b(0x242)](_0x34e3b8=>{const _0x3de931=_0x3a357b;_0x4ba012[_0x3de931(0x247)][_0x3de931(0x25e)](_0x34e3b8[_0x3de931(0x24a)],_0x34e3b8['\x64\x75\x72\x61\x74\x69\x6f\x6e'],{'\x61\x6d\x70\x6c\x69\x66\x69\x65\x72':_0x34e3b8['\x61\x6d\x70\x6c\x69\x66\x69\x65\x72']});});}),Config['\x61\x74\x74\x61\x63\x6b\x45\x76\x65\x6e\x74'][_0x18ac49(0x251)][_0x4060a9?.[_0x18ac49(0x1ef)]?.['\x69\x64']]&&_0x4ba012['\x68\x69\x74\x45\x6e\x74\x69\x74\x79'][_0x18ac49(0x20d)][_0x18ac49(0x1f8)](Config['\x61\x74\x74\x61\x63\x6b\x45\x76\x65\x6e\x74'][_0x18ac49(0x251)][_0x4060a9[_0x18ac49(0x244)]],_0x4ba012[_0x18ac49(0x247)][_0x18ac49(0x1f0)]);});}),world[_0x39191f(0x22a)]['\x65\x6e\x74\x69\x74\x79\x48\x75\x72\x74'][_0x39191f(0x238)](_0x19ea0e=>{const _0x5b7a6a=_0x39191f,_0x23bf81={'\x43\x5a\x6a\x5a\x79':function(_0x591167,_0x49e05a){return _0x591167!==_0x49e05a;},'\x79\x57\x4f\x6b\x46':function(_0x4a2b2f,_0xa4fad5){return _0x4a2b2f+_0xa4fad5;}};if(_0x23bf81[_0x5b7a6a(0x234)](_0x19ea0e[_0x5b7a6a(0x1fc)]?.[_0x5b7a6a(0x244)],_0x5b7a6a(0x1fa)))return;const _0x4b49cd=_0x19ea0e[_0x5b7a6a(0x1fc)][_0x5b7a6a(0x202)](EntityEquippableComponent[_0x5b7a6a(0x231)])?.['\x67\x65\x74\x45\x71\x75\x69\x70\x6d\x65\x6e\x74\x53\x6c\x6f\x74'](EquipmentSlot[_0x5b7a6a(0x21a)])?.[_0x5b7a6a(0x235)]();if(!_0x4b49cd?.[_0x5b7a6a(0x1ef)]?.['\x69\x64'])return;const _0x30bb08=_0x4b49cd[_0x5b7a6a(0x1ef)]['\x69\x64'],_0x1500a6=_0x19ea0e['\x64\x61\x6d\x61\x67\x65\x53\x6f\x75\x72\x63\x65']?.[_0x5b7a6a(0x22c)],_0x100aa2=Config[_0x5b7a6a(0x23f)][_0x5b7a6a(0x225)][[_0x1500a6]];if(_0x100aa2&&_0x100aa2[_0x5b7a6a(0x1f3)](_0x30bb08)){const _0x2673ba=_0x19ea0e[_0x5b7a6a(0x1fc)][_0x5b7a6a(0x202)](EntityComponentTypes[_0x5b7a6a(0x213)]);_0x2673ba[_0x5b7a6a(0x200)](_0x23bf81[_0x5b7a6a(0x249)](_0x2673ba[_0x5b7a6a(0x261)],_0x19ea0e[_0x5b7a6a(0x20a)]));}debug&&_0x19ea0e[_0x5b7a6a(0x1fc)]['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67\x65'](_0x5b7a6a(0x22f)+Config[_0x5b7a6a(0x23f)][_0x5b7a6a(0x225)][EntityDamageCause['\x65\x6e\x74\x69\x74\x79\x41\x74\x74\x61\x63\x6b']][_0x5b7a6a(0x1f3)](_0x30bb08)+_0x5b7a6a(0x22e)+Config[_0x5b7a6a(0x23f)][_0x5b7a6a(0x225)][EntityDamageCause['\x70\x72\x6f\x6a\x65\x63\x74\x69\x6c\x65']][_0x5b7a6a(0x1f3)](_0x30bb08)+_0x5b7a6a(0x240)+_0x30bb08);}),world[_0x39191f(0x250)][_0x39191f(0x203)]['\x73\x75\x62\x73\x63\x72\x69\x62\x65'](_0x16fd3b=>{const _0x50838d=_0x39191f,_0x5267a0={'\x4a\x6a\x51\x4a\x6f':function(_0x595dd9,_0x490eff){return _0x595dd9!==_0x490eff;}};if(_0x5267a0[_0x50838d(0x224)](_0x16fd3b[_0x50838d(0x212)]?.[_0x50838d(0x244)],'\x6d\x69\x6e\x65\x63\x72\x61\x66\x74\x3a\x70\x6c\x61\x79\x65\x72'))return;Config[_0x50838d(0x23f)][_0x50838d(0x207)]['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0x16fd3b[_0x50838d(0x212)][_0x50838d(0x202)](EntityComponentTypes[_0x50838d(0x23b)])[_0x50838d(0x209)](EquipmentSlot['\x48\x65\x61\x64'])?.[_0x50838d(0x244)])&&(_0x16fd3b[_0x50838d(0x259)]=!![]);});function rotIO(_0x148a1c,_0x5ca1d0){const _0xe336bc=_0x39191f,_0x3b20e6={'\x73\x67\x63\x45\x43':function(_0x122def,_0x44897c){return _0x122def===_0x44897c;},'\x52\x4c\x68\x67\x4a':_0xe336bc(0x226),'\x50\x41\x6e\x70\x6e':function(_0x25f718,_0x1071cc){return _0x25f718>_0x1071cc;},'\x6e\x70\x61\x6f\x6f':'\x6d\x69\x6e\x65\x63\x72\x61\x66\x74\x3a\x69\x6e\x76\x65\x6e\x74\x6f\x72\x79'},_0x11c62e=_0x148a1c[_0xe336bc(0x202)](_0x3b20e6['\x6e\x70\x61\x6f\x6f'])[_0xe336bc(0x248)],_0x3eecaa=_0x11c62e?.['\x67\x65\x74\x49\x74\x65\x6d'](_0x5ca1d0);if(!Config[_0xe336bc(0x21b)][_0x3eecaa?.[_0xe336bc(0x244)]])return;system[_0xe336bc(0x24e)](()=>{const _0x25b81d=_0xe336bc;if(_0x3b20e6[_0x25b81d(0x229)](_0x3eecaa?.[_0x25b81d(0x24c)](_0x3b20e6[_0x25b81d(0x254)]),undefined)){const _0x30209c=_0x3eecaa[_0x25b81d(0x255)]();_0x30209c&&(_0x30209c['\x73\x65\x74\x44\x79\x6e\x61\x6d\x69\x63\x50\x72\x6f\x70\x65\x72\x74\x79'](_0x3b20e6[_0x25b81d(0x254)],world[_0x25b81d(0x210)]()),_0x11c62e?.[_0x25b81d(0x1ee)](_0x5ca1d0,_0x30209c));return;}const _0x1bd715=_0x3eecaa['\x67\x65\x74\x44\x79\x6e\x61\x6d\x69\x63\x50\x72\x6f\x70\x65\x72\x74\x79'](_0x25b81d(0x226));debug&&_0x148a1c[_0x25b81d(0x1f6)](''+(world[_0x25b81d(0x210)]()-_0x1bd715));if(_0x3b20e6[_0x25b81d(0x258)](world[_0x25b81d(0x210)]()-_0x1bd715,Config[_0x25b81d(0x226)])){if(Config[_0x25b81d(0x21b)][_0x3eecaa[_0x25b81d(0x244)]]){const _0x52531e=new ItemStack(Config[_0x25b81d(0x21b)][_0x3eecaa[_0x25b81d(0x244)]],_0x3eecaa['\x61\x6d\x6f\x75\x6e\x74']);_0x52531e[_0x25b81d(0x24b)]=_0x3eecaa[_0x25b81d(0x24b)],_0x52531e[_0x25b81d(0x204)]=_0x3eecaa['\x6c\x6f\x63\x6b\x4d\x6f\x64\x65'],_0x52531e['\x6b\x65\x65\x70\x4f\x6e\x44\x65\x61\x74\x68']=_0x3eecaa[_0x25b81d(0x23e)],_0x11c62e[_0x25b81d(0x1ee)](_0x5ca1d0,_0x52531e),_0x148a1c[_0x25b81d(0x252)][_0x25b81d(0x22d)](_0x25b81d(0x205));}}});}world['\x61\x66\x74\x65\x72\x45\x76\x65\x6e\x74\x73'][_0x39191f(0x22b)][_0x39191f(0x238)](_0x154c4c=>{const _0x10af5f=_0x39191f,_0x340f70={'\x4e\x56\x58\x6c\x42':function(_0x1c6400,_0x526e45,_0xdb9635){return _0x1c6400(_0x526e45,_0xdb9635);}};_0x340f70[_0x10af5f(0x23a)](rotIO,_0x154c4c[_0x10af5f(0x230)],_0x154c4c[_0x10af5f(0x257)]);}),world[_0x39191f(0x22a)][_0x39191f(0x25d)]['\x73\x75\x62\x73\x63\x72\x69\x62\x65'](_0x1d90fc=>{const _0x1975b3=_0x39191f;rotIO(_0x1d90fc[_0x1975b3(0x230)],_0x1d90fc[_0x1975b3(0x24d)]);}),world[_0x39191f(0x250)][_0x39191f(0x219)][_0x39191f(0x238)](_0x591643=>{const _0x355ff9=_0x39191f,_0x46630d={'\x68\x76\x58\x63\x4a':function(_0x23bb93,_0x201248,_0x464878){return _0x23bb93(_0x201248,_0x464878);}};_0x46630d['\x68\x76\x58\x63\x4a'](rotIO,_0x591643[_0x355ff9(0x1f7)],_0x591643[_0x355ff9(0x1f7)][_0x355ff9(0x232)]);}),world['\x62\x65\x66\x6f\x72\x65\x45\x76\x65\x6e\x74\x73'][_0x39191f(0x239)][_0x39191f(0x238)](_0x37d7ae=>{const _0x11aafd=_0x39191f,_0x24929f={'\x63\x71\x51\x66\x55':function(_0x419718,_0x195df7){return _0x419718>_0x195df7;},'\x62\x75\x44\x47\x55':function(_0x2acdfd,_0x2eea2d){return _0x2acdfd-_0x2eea2d;},'\x75\x72\x65\x7a\x48':function(_0x58be56,_0x1c0daf){return _0x58be56+_0x1c0daf;},'\x59\x5a\x56\x61\x52':function(_0x539839,_0x96453f){return _0x539839*_0x96453f;},'\x77\x4b\x68\x61\x49':function(_0x5ed0fd,_0x501918){return _0x5ed0fd*_0x501918;},'\x43\x48\x44\x59\x51':function(_0x5f04a1,_0x353735){return _0x5f04a1/_0x353735;},'\x6b\x4f\x74\x49\x47':function(_0x140ed0,_0x2999da){return _0x140ed0+_0x2999da;}};_0x37d7ae[_0x11aafd(0x223)][_0x11aafd(0x253)](_0x11aafd(0x23d))&&_0x37d7ae['\x69\x74\x65\x6d\x53\x74\x61\x63\x6b'][_0x11aafd(0x253)](_0x11aafd(0x201))&&system[_0x11aafd(0x24e)](()=>{const _0xa2f30e=_0x11aafd;let _0x2ad980=Math[_0xa2f30e(0x211)]();debug&&_0x37d7ae['\x70\x6c\x61\x79\x65\x72'][_0xa2f30e(0x1f6)](_0xa2f30e(0x20b)+_0x2ad980);if(_0x24929f[_0xa2f30e(0x1f5)](_0x2ad980,0.8))return;const _0x5f1611=_0x37d7ae[_0xa2f30e(0x230)][_0xa2f30e(0x1f0)],_0x1babfb=_0x37d7ae[_0xa2f30e(0x223)]['\x63\x65\x6e\x74\x65\x72'](),_0x12a354=_0x24929f[_0xa2f30e(0x20e)](_0x5f1611['\x78'],_0x1babfb['\x78']),_0x1989a1=_0x24929f[_0xa2f30e(0x20e)](_0x5f1611['\x79'],_0x1babfb['\x79']),_0x1a4b09=_0x24929f[_0xa2f30e(0x20e)](_0x5f1611['\x7a'],_0x1babfb['\x7a']),_0xf33cec=Math['\x73\x71\x72\x74'](_0x24929f[_0xa2f30e(0x260)](_0x24929f[_0xa2f30e(0x21e)](_0x12a354,_0x12a354)+_0x24929f[_0xa2f30e(0x256)](_0x1989a1,_0x1989a1),_0x24929f[_0xa2f30e(0x256)](_0x1a4b09,_0x1a4b09)));if(_0x24929f['\x63\x71\x51\x66\x55'](_0xf33cec,0.8)){const _0x2e9014=_0x12a354/_0xf33cec,_0x33bbbc=_0x24929f['\x43\x48\x44\x59\x51'](_0x1989a1,_0xf33cec),_0x272bd6=_0x24929f['\x43\x48\x44\x59\x51'](_0x1a4b09,_0xf33cec),_0x3ae72b=_0x1babfb['\x78']+_0x2e9014*0.8,_0x382271=_0x1babfb['\x79']+_0x33bbbc*0.8,_0x139ce1=_0x24929f[_0xa2f30e(0x221)](_0x1babfb['\x7a'],_0x24929f[_0xa2f30e(0x21e)](_0x272bd6,0.8));_0x37d7ae['\x70\x6c\x61\x79\x65\x72'][_0xa2f30e(0x20d)]['\x73\x70\x61\x77\x6e\x49\x74\x65\x6d'](new ItemStack(Config[_0xa2f30e(0x241)],0x1),{'\x78':_0x3ae72b,'\x79':_0x382271,'\x7a':_0x139ce1});}else _0x37d7ae['\x70\x6c\x61\x79\x65\x72'][_0xa2f30e(0x20d)][_0xa2f30e(0x217)](new ItemStack(Config[_0xa2f30e(0x241)],0x1),_0x37d7ae['\x70\x6c\x61\x79\x65\x72'][_0xa2f30e(0x1f0)]);});}),world['\x61\x66\x74\x65\x72\x45\x76\x65\x6e\x74\x73']['\x70\x6c\x61\x79\x65\x72\x42\x72\x65\x61\x6b\x42\x6c\x6f\x63\x6b'][_0x39191f(0x238)](_0x48a98a=>{const _0x4c012a=_0x39191f,_0x2fc318={'\x43\x4a\x49\x56\x53':function(_0x5972fd,_0x1c20fb){return _0x5972fd===_0x1c20fb;},'\x67\x62\x69\x69\x6f':_0x4c012a(0x1f9),'\x4c\x59\x76\x74\x63':_0x4c012a(0x233),'\x5a\x46\x67\x56\x68':_0x4c012a(0x206),'\x46\x78\x72\x45\x4b':function(_0x189176,_0x564f4b){return _0x189176+_0x564f4b;},'\x6f\x68\x65\x4d\x46':function(_0x2e9add,_0x39fbfc){return _0x2e9add<_0x39fbfc;},'\x69\x78\x61\x58\x6a':function(_0xbdefe2,_0x420ef6){return _0xbdefe2>=_0x420ef6;}};let _0x3a8632=_0x48a98a['\x69\x74\x65\x6d\x53\x74\x61\x63\x6b\x42\x65\x66\x6f\x72\x65\x42\x72\x65\x61\x6b']['\x63\x6c\x6f\x6e\x65']();if(_0x2fc318[_0x4c012a(0x208)](_0x48a98a[_0x4c012a(0x230)][_0x4c012a(0x1fb)](),GameMode[_0x4c012a(0x25f)])&&!debug)return;if(!Config[_0x4c012a(0x1f9)][_0x4c012a(0x1f3)](_0x3a8632?.['\x74\x79\x70\x65\x49\x64']))return;const _0x1a14f6=_0x3a8632[_0x4c012a(0x202)](_0x2fc318['\x67\x62\x69\x69\x6f']);let _0x2e3b8d=!![];const _0x299671=_0x3a8632['\x67\x65\x74\x43\x6f\x6d\x70\x6f\x6e\x65\x6e\x74'](_0x2fc318[_0x4c012a(0x20f)])?.[_0x4c012a(0x236)](_0x2fc318['\x5a\x46\x67\x56\x68']);if(_0x299671){const _0x30acf0=_0x299671[_0x4c012a(0x1fd)],_0x5edb59=0x64/_0x2fc318[_0x4c012a(0x220)](_0x30acf0,0x1)/0x64;debug&&_0x48a98a[_0x4c012a(0x230)][_0x4c012a(0x1f6)](_0x4c012a(0x218)+_0x5edb59),_0x2e3b8d=_0x2fc318[_0x4c012a(0x215)](Math[_0x4c012a(0x211)](),_0x5edb59);}if(_0x2e3b8d){_0x1a14f6['\x64\x61\x6d\x61\x67\x65']+=0x1;if(_0x2fc318[_0x4c012a(0x25b)](_0x1a14f6[_0x4c012a(0x20a)],_0x1a14f6[_0x4c012a(0x1ff)])){_0x48a98a['\x70\x6c\x61\x79\x65\x72'][_0x4c012a(0x202)](EntityComponentTypes[_0x4c012a(0x23b)])[_0x4c012a(0x21d)](EquipmentSlot['\x4d\x61\x69\x6e\x68\x61\x6e\x64'],undefined);return;}_0x48a98a[_0x4c012a(0x230)]['\x67\x65\x74\x43\x6f\x6d\x70\x6f\x6e\x65\x6e\x74'](EntityComponentTypes[_0x4c012a(0x23b)])[_0x4c012a(0x21d)](EquipmentSlot['\x4d\x61\x69\x6e\x68\x61\x6e\x64'],_0x3a8632);}}); \ No newline at end of file diff --git a/behavior_pack/scripts/main.js b/behavior_pack/scripts/main.js new file mode 100644 index 0000000..8b59d39 --- /dev/null +++ b/behavior_pack/scripts/main.js @@ -0,0 +1 @@ +import "./core" \ No newline at end of file diff --git a/behavior_pack/texts/en_US.lang b/behavior_pack/texts/en_US.lang new file mode 100644 index 0000000..e69de29 diff --git a/behavior_pack/texts/languages.json b/behavior_pack/texts/languages.json new file mode 100644 index 0000000..2a03013 --- /dev/null +++ b/behavior_pack/texts/languages.json @@ -0,0 +1 @@ +["en_US", "zh_CN"] diff --git a/behavior_pack/texts/zh_CN.lang b/behavior_pack/texts/zh_CN.lang new file mode 100644 index 0000000..e69de29 diff --git a/resource_pack/LICENSE.md b/resource_pack/LICENSE.md new file mode 100644 index 0000000..f5c8bc6 --- /dev/null +++ b/resource_pack/LICENSE.md @@ -0,0 +1,7 @@ +# The License of Addon + +Copyright (c) 2025 **Wild Era Developer Team**. + +All Rights Reserved. + +Unauthorized copying, modification, distribution, or use of this software, in whole or in part, is **strictly prohibited**. diff --git a/resource_pack/blocks.json b/resource_pack/blocks.json new file mode 100644 index 0000000..e69de29 diff --git a/resource_pack/manifest.json b/resource_pack/manifest.json new file mode 100644 index 0000000..76c589b --- /dev/null +++ b/resource_pack/manifest.json @@ -0,0 +1,22 @@ +{ + "format_version": 2, + "header": { + "name": "蛮荒纪元demo", + "description": "此为蛮荒纪元的预览版", + "uuid": "b366db34-a899-4253-9dcb-fe63db5ce385", + "pack_scope": "world", + "version": [1, 0, 1], + "min_engine_version": [1, 21, 90] + }, + "modules": [ + { + "type": "resources", + "uuid": "1091e8ef-e1a4-443c-9e22-550917f3487c", + "version": [1, 0, 1] + } + ], + "dependencies": [ + { "uuid": "6498d2f6-4ff2-4db3-847a-3f2931ed53a1", "version": [1, 0, 1] } + ], + "metadata": { "product_type": "addon" } +} diff --git a/resource_pack/pack_icon.png b/resource_pack/pack_icon.png new file mode 100644 index 0000000..40e3035 Binary files /dev/null and b/resource_pack/pack_icon.png differ diff --git a/resource_pack/sounds.json b/resource_pack/sounds.json new file mode 100644 index 0000000..e69de29 diff --git a/resource_pack/sounds/sound_definitions.json b/resource_pack/sounds/sound_definitions.json new file mode 100644 index 0000000..e69de29 diff --git a/resource_pack/statement.txt b/resource_pack/statement.txt new file mode 100644 index 0000000..e69de29 diff --git a/resource_pack/texts/zh_CN.lang b/resource_pack/texts/zh_CN.lang new file mode 100644 index 0000000..4b955d1 --- /dev/null +++ b/resource_pack/texts/zh_CN.lang @@ -0,0 +1,3 @@ + +##食物 +item.we:dried_fish.name=风干鱼 \ No newline at end of file diff --git a/resource_pack/textures/item_texture.json b/resource_pack/textures/item_texture.json new file mode 100644 index 0000000..4408d5b --- /dev/null +++ b/resource_pack/textures/item_texture.json @@ -0,0 +1,9 @@ +{ + "resource_pack_name": "Vanilla", + "texture_name": "atlas.items", + "texture_data": { + "we:dried_fish": { + "textures": "textures/items/foods/dried_fish" + } + } +} \ No newline at end of file diff --git a/resource_pack/textures/items/foods/dried_fish.png b/resource_pack/textures/items/foods/dried_fish.png new file mode 100644 index 0000000..8e62d8c Binary files /dev/null and b/resource_pack/textures/items/foods/dried_fish.png differ