feat: init
This commit is contained in:
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 80 KiB |
@@ -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"}`);
|
||||||
|
})
|
||||||
|
})
|
||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
|||||||
|
import "./core"
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
["en_US", "zh_CN"]
|
||||||
@@ -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**.
|
||||||
@@ -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" }
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 80 KiB |
@@ -0,0 +1,3 @@
|
|||||||
|
|
||||||
|
##食物
|
||||||
|
item.we:dried_fish.name=风干鱼
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"resource_pack_name": "Vanilla",
|
||||||
|
"texture_name": "atlas.items",
|
||||||
|
"texture_data": {
|
||||||
|
"we:dried_fish": {
|
||||||
|
"textures": "textures/items/foods/dried_fish"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 400 B |
Reference in New Issue
Block a user