我的世界关于自定义属性和附魔的相关知识

游攻社 人气:8.7K

首先简单来说我的世界自定义属性是改变物品本身的伤害(其他属性)。附魔则是增加某些属性,或者让某些物品拥有某些功能,这两种都需要用到nbt。什么是nbt?自己百度。好,开始教程。/give@Pminecraft:diamond_sword 1 0 这是一条获得普通的钻石剑的指令。然后进阶:/give @p minecraft:diamond_sword 1 0 {ench:[{id:16,lvl:0}]}注意到{ench:[{id:16,lvl:0}]}了吗?

我的世界关于自定义属性和附魔的相关知识

ench:自定义附魔

id:魔咒id id是什么?自己百度

lvl:魔咒等级

魔咒id自己搜,这里不详列。

多条附魔

/give @p minecraft:diamond_sword 1 0 {ench:[{id:16,lvl:1},{id:17,lvl:1}]}看懂了吗?看不懂也得懂,不详细讲,注意逗号。

自定义属性

/give @p minecraft:diamond_sword 1 0 {AttributeModifiers:[{Operation:0,UUIDLeast:2065457359,UUIDMost:2065457359,Amount:1,AttributeName:ckDamage,Name:Attack}]}

决定属性的是: {AttributeModifiers:[{Operation:0,UUIDLeast:2065457359,UUIDMost:2065457359,Amount:1,AttributeName:ckDamage,Name:Attack}]}

可以复制,唯独有一个地方不能复制:AttributeName:ckDamage 这段是类型。比如我这个,是增加物品的伤害。类型和id差不多。至于有哪些自定义属性,老话:百度去。

特殊属性:/give @p minecraft:diamond_sword 1 0 {Unbreakable:1}{Unbreakable:1}代表无法消耗耐久。

彩蛋1:/give @p minecraft:diamond_sword 1 0 {display:{Name:"这就是彩蛋",Lore:["真的是彩蛋哦。"]},HideFlags:63}

{display:{Name:"这就是彩蛋",Lore:["真的是彩蛋哦。"]},HideFlags:63}名称加介绍。

彩蛋2在这里:管理员书籍:/give @p written_book 1 0 {pages:["["",{"text":"Essen","color":"black","bold":true},{"text":"tial","color":"gold","bold":true},{"text":" Hand","bold":true,"color":"none"},{"text":"book","color":"gold","bold":true},{"text":" OP","color":"gold","italic":true,"bold":false},{"text":" Edition Alpha1.0","italic":true,"color":"none"},{"text":"--基础","bold":true,"italic":false,"color":"none"},{"text":"手册--","color":"gold","bold":true},{"text":" 管理员","color":"gold","italic":true,"bold":false},{"text":"测试版1.0","italic":true,"color":"none"},{"text":" 点击即可使用指令 (1.8以上) by:Infiniter","italic":true,"color":"none"}]","["",{"text":"GAME","bold":true,"underlined":true},{"text":" SETTING","color":"gold","bold":true,"underlined":true},{"text":" 游戏","color":"none","bold":false,"underlined":false},{"text":"设置","color":"gold"},{"text":"Time Setting ","color":"dark_aqua","bold":true,"italic":true},{"text":"·Set to day","underlined":true,"clickEvent":{"action":"run_command","value":"/time set 2000"},"color":"none","bold":false,"italic":false},{"text":" 设置为白天 ","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/time set 2000"}},{"text":"·Set to night","color":"black","underlined":true,"clickEvent":{"action":"run_command","value":"/time set 36000"}},{"text":" 设置为夜晚","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/time set 36000"}},{"text":"Gamemode setting ","color":"dark_green","bold":true,"italic":true,"underlined":false},{"text":"·Survival ","underlined":true,"clickEvent":{"action":"run_command","value":"/gamemode survival @p"},"color":"none","bold":false,"italic":false},{"text":"生存模式","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/gamemode survival @p"}},{"text":" ","color":"none","underlined":false},{"text":"·Creative","underlined":true,"clickEvent":{"action":"run_command","value":"/gamemode creative @p "},"color":"none"},{"text":" 创造模式","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/gamemode creative @p"}},{"text":" ","color":"none","underlined":false},{"text":"·Adventure","underlined":true,"clickEvent":{"action":"run_command","value":"/gamemode 2 @p"},"color":"none"},{"text":" 冒险模式","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/gamemode 2 @p"}},{"text":"","color":"none","underlined":false},{"text":"·Spectator","underlined":true,"clickEvent":{"action":"run_command","value":"/gamemode 3 @p"},"color":"none"},{"text":" 旁观者模式","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/gamemode 3 @p"}},{"text":"","color":"none","underlined":false},{"text":"Weather Setting","color":"dark_red","bold":true,"italic":true},{"text":"","color":"none","bold":false,"italic":false},{"text":"·Clearly","underlined":true,"clickEvent":{"action":"run_command","value":"/weather clear 600"},"color":"none"},{"text":" 晴朗的","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/weather clear 600"}},{"text":" ","color":"none","underlined":false},{"text":"·Rain or snow","underlined":true,"clickEvent":{"action":"run_command","value":"/weather rain 600"},"color":"none"},{"text":" 雨雪","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/weather rain 600"}},{"text":" ","color":"none","underlined":false},{"text":"·Thunder","underlined":true,"clickEvent":{"action":"run_command","value":"/weather thunder 100"},"color":"none"},{"text":" 雷阵雨","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/weather thunder 100"}}]","["",{"text":"Difficulty Setting","color":"aqua","bold":true,"italic":true},{"text":" ·Peaceful","underlined":true,"clickEvent":{"action":"run_command","value":"/difficulty 0"},"color":"none","bold":false,"italic":false},{"text":" 和平的","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/difficulty 0"}},{"text":" ","color":"none","underlined":false},{"text":"·Simple","color":"black","underlined":true,"clickEvent":{"action":"run_command","value":"/difficulty 1"}},{"text":"简单的","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/difficulty 1"}},{"text":" ","color":"none","underlined":false},{"text":"·Normal","underlined":true,"clickEvent":{"action":"run_command","value":"/difficulty 2"},"color":"none"},{"text":"普通的","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/difficulty 2"}},{"text":" ","color":"none","underlined":false},{"text":"·Difficult","color":"black","underlined":true,"clickEvent":{"action":"run_command","value":"/difficult 3"}},{"text":"困难的","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/difficulty 3"}},{"text":" TP Setting ","color":"dark_purple","bold":true,"italic":true,"underlined":false},{"text":"·Tpall","underlined":true,"clickEvent":{"action":"run_command","value":"/tpall"},"color":"none","bold":false,"italic":false},{"text":" 全体到此处","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/tpall"}},{"text":" ","color":"none","underlined":false},{"text":"Spawn Setting","color":"dark_blue","bold":true,"italic":true},{"text":" ","color":"none","bold":false,"italic":false},{"text":"·Setworldspawn","underlined":true,"clickEvent":{"action":"run_command","value":"/setworldspawn"},"color":"none"},{"text":" ","underlined":false,"color":"none"},{"text":"设置世界重生点","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/setworldspawn"}},{"text":" ","color":"none","underlined":false},{"text":"·Spawnpoint","underlined":true,"clickEvent":{"action":"run_command","value":"/spawnpoint @p"},"color":"none"},{"text":" ","underlined":false,"color":"none"},{"text":"设置自己重生点","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/spawnpoint @p"}},{"text":" ","color":"none","underlined":false},{"text":"Drops Setting","color":"green","bold":true,"italic":true},{"text":" ","color":"none","bold":false,"italic":false},{"text":"·Removedrop","underlined":true,"clickEvent":{"action":"run_command","value":"/remove drops 999999"},"color":"none"},{"text":" 清除掉落物","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/remove drops 99999"}}]","["",{"text":"Summon Setting","color":"blue","bold":true,"italic":true},{"text":" ","color":"none","bold":false,"italic":false},{"text":"·Zombie","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Zombie ~ ~1 ~"},"color":"none"},{"text":" 召唤僵尸","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Zombie ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Skeleton","color":"black","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Skeleton ~ ~1 ~"}},{"text":" 召唤骷髅","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Skeleton ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Creeper","color":"black","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Creeper ~ ~1 ~"}},{"text":" 召唤爬行者","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Creeper ~ ~1 ~"}},{"text":"","color":"none","underlined":false},{"text":"·Spider","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Spider ~ ~1 ~"},"color":"none"},{"text":" 召唤蜘蛛","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Spider ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Cavespider","underlined":true,"clickEvent":{"action":"run_command","value":"/summon CaveSpider ~ ~1 ~"},"color":"none"},{"text":"洞穴蜘蛛","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon CaveSpider ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Slime","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Slime ~ ~1 ~"},"color":"none"},{"text":" 召唤史莱姆","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Slime ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Ghast","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Ghast ~ ~1 ~"},"color":"none"},{"text":" 召唤恶魂","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Ghast ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Pigzombie","underlined":true,"clickEvent":{"action":"run_command","value":"/summon PigZombie ~ ~1 ~"},"color":"none"},{"text":" 召唤猪人","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon PigZombie ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Enderman","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Enderman ~ ~1 ~"},"color":"none"},{"text":" 召唤末影人","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Enderman ~ ~1 ~"}},{"text":"","color":"none","underlined":false},{"text":"·Blaze","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Blaze ~ ~1 ~"},"color":"none"},{"text":" 召唤烈焰人","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Blaze ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Lavaslime","underlined":true,"clickEvent":{"action":"run_command","value":"/summon LavaSlime ~ ~1 ~"},"color":"none"},{"text":"召唤岩浆怪","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon LavaSlime ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Witch","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Witch ~ ~1 ~"},"color":"none"},{"text":" 召唤女巫","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Witch ~ ~1 ~"}},{"text":" ","color":"none","underlined":false}]","["",{"text":"·Enderdragon","underlined":true,"clickEvent":{"action":"run_command","value":"/summon EnderDragon ~ ~1 ~"}},{"text":" 末影龙","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon EnderDragon ~ ~1 ~"}},{"text":"","color":"none","underlined":false},{"text":"·Wither","underlined":true,"clickEvent":{"action":"run_command","value":"/summon WitherBoss ~ ~1 ~"},"color":"none"},{"text":" 召唤凋零","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon WitherBoss ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Shulker","underlined":true,"clickEvent":{"action":"run_command","value":"/summon WitherBoss ~ ~1 ~"},"color":"none"},{"text":" 召唤潜影贝","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon WitherBoss ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Guardian","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Guardian ~ ~1 ~"},"color":"none"},{"text":" 召唤守护者","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Guardian ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Silverfish","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Silverfish ~ ~1 ~"},"color":"none"},{"text":" 召唤囊虫","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Silverfish ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Endermite","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Endermite ~ ~1 ~"},"color":"none"},{"text":" 召唤末影螨","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Endermite ~ ~1 ~"}},{"text":"","color":"none","underlined":false},{"text":"·Pig","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Pig ~ ~1 ~"},"color":"none"},{"text":" 召唤猪","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Pig ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Sheep","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Sheep ~ ~1 ~"},"color":"none"},{"text":" 召唤羊","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Sheep ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Cow","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Cow ~ ~1 ~"},"color":"none"},{"text":" 召唤牛","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Cow ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Chicken","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Chicken ~ ~1 ~"},"color":"none"},{"text":"召唤鸡","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Chicken ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Wolf","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Wolf ~ ~1 ~"},"color":"none"},{"text":" 召唤狼","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Wolf ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Ozelot","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Ozelot ~ ~1 ~"},"color":"none"},{"text":" 召唤豹猫","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Ozelot ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Mushroomcow","underlined":true,"clickEvent":{"action":"run_command","value":"/summon MushroomCow ~ ~1 ~"},"color":"none"},{"text":" 蘑菇牛","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon MushroomCow ~ ~1 ~"}}]","["",{"text":"·Snowman","underlined":true,"clickEvent":{"action":"run_command","value":"/summon SnowMan ~ ~1 ~"}},{"text":"召唤雪傀儡","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon SnowMan ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·villagerGolem","underlined":true,"clickEvent":{"action":"run_command","value":"/summon VillagerGolem ~ ~1 ~"},"color":"none"},{"text":" 铁傀儡","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon VillagerGolem ~ ~1 ~"}},{"text":"","color":"none","underlined":false},{"text":"·Squid","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Squid ~ ~1 ~"},"color":"none"},{"text":" 召唤鱿鱼","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Squid ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Bat","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Bat ~ ~1 ~"},"color":"none"},{"text":" 召唤蝙蝠","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Bat ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Rabbit","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Rabbit ~ ~1 ~"},"color":"none"},{"text":" 召唤兔子","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Rabbit ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Horse","underlined":true,"clickEvent":{"action":"run_command","value":"/summon EntityHorse ~ ~1 ~ {Attributes:[]}"},"color":"none"},{"text":" 召唤马","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon EntityHorse ~ ~1 ~ {Attributes:[]}"}},{"text":" ","color":"none","underlined":false},{"text":"·Villager","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Villager ~ ~1 ~"},"color":"none"},{"text":" 召唤村民","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon Villager ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Primed TNT","underlined":true,"clickEvent":{"action":"run_command","value":"/summon PrimedTnt ~ ~1 ~"},"color":"none"},{"text":"点燃的TNT","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon PrimedTnt ~ ~1 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Falling sand","underlined":true,"clickEvent":{"action":"run_command","value":"/summon FallingSand ~ ~7 ~"},"color":"none"},{"text":" 掉落沙","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon FallingSand ~ ~7 ~"}},{"text":" ","color":"none","underlined":false},{"text":"·Endercrystal","underlined":true,"clickEvent":{"action":"run_command","value":"/summon EnderCrystal ~ ~ ~"},"color":"none"},{"text":" 末影水晶","color":"gold","underlined":true,"clickEvent":{"action":"run_command","value":"/summon EnderCrystal ~ ~ ~"}}]"],title:Book,author:TellrawGenerator}