- 积分
- 18500
- 帖子
- 主题
- 精华
贡献- 份
爱心- 心
- 钻石
- 颗
- 人气
- 点
- 下界之星
- 枚
- 最后登录
- 1970-1-1
- 注册时间
- 2014-3-20
|
发表于 2020-11-12 01:50:44
|
显示全部楼层
- [
- {
- "function": "minecraft:set_count",
- "count": 1,
- "conditions": [
- {
- "condition": "minecraft:location_check",
- "predicate": {
- "light": {
- "light": 0
- }
- }
- }
- ]
- },
- {
- "function": "minecraft:set_count",
- "count": 2,
- "conditions": [
- {
- "condition": "minecraft:location_check",
- "predicate": {
- "light": {
- "light": 1
- }
- }
- }
- ]
- },
- {
- "function": "minecraft:set_count",
- "count": 3,
- "conditions": [
- {
- "condition": "minecraft:location_check",
- "predicate": {
- "light": {
- "light": 2
- }
- }
- }
- ]
- },
- {
- "function": "minecraft:set_count",
- "count": 4,
- "conditions": [
- {
- "condition": "minecraft:location_check",
- "predicate": {
- "light": {
- "light": 3
- }
- }
- }
- ]
- },
- {
- "function": "minecraft:set_count",
- "count": 5,
- "conditions": [
- {
- "condition": "minecraft:location_check",
- "predicate": {
- "light": {
- "light": 4
- }
- }
- }
- ]
- },
- {
- "function": "minecraft:set_count",
- "count": 6,
- "conditions": [
- {
- "condition": "minecraft:location_check",
- "predicate": {
- "light": {
- "light": 5
- }
- }
- }
- ]
- },
- {
- "function": "minecraft:set_count",
- "count": 7,
- "conditions": [
- {
- "condition": "minecraft:location_check",
- "predicate": {
- "light": {
- "light": 6
- }
- }
- }
- ]
- },
- {
- "function": "minecraft:set_count",
- "count": 8,
- "conditions": [
- {
- "condition": "minecraft:location_check",
- "predicate": {
- "light": {
- "light": 7
- }
- }
- }
- ]
- },
- {
- "function": "minecraft:set_count",
- "count": 9,
- "conditions": [
- {
- "condition": "minecraft:location_check",
- "predicate": {
- "light": {
- "light": 8
- }
- }
- }
- ]
- },
- {
- "function": "minecraft:set_count",
- "count": 10,
- "conditions": [
- {
- "condition": "minecraft:location_check",
- "predicate": {
- "light": {
- "light": 9
- }
- }
- }
- ]
- },
- {
- "function": "minecraft:set_count",
- "count": 11,
- "conditions": [
- {
- "condition": "minecraft:location_check",
- "predicate": {
- "light": {
- "light": 10
- }
- }
- }
- ]
- },
- {
- "function": "minecraft:set_count",
- "count": 12,
- "conditions": [
- {
- "condition": "minecraft:location_check",
- "predicate": {
- "light": {
- "light": 11
- }
- }
- }
- ]
- },
- {
- "function": "minecraft:set_count",
- "count": 13,
- "conditions": [
- {
- "condition": "minecraft:location_check",
- "predicate": {
- "light": {
- "light": 12
- }
- }
- }
- ]
- },
- {
- "function": "minecraft:set_count",
- "count": 14,
- "conditions": [
- {
- "condition": "minecraft:location_check",
- "predicate": {
- "light": {
- "light": 13
- }
- }
- }
- ]
- },
- {
- "function": "minecraft:set_count",
- "count": 15,
- "conditions": [
- {
- "condition": "minecraft:location_check",
- "predicate": {
- "light": {
- "light": 14
- }
- }
- }
- ]
- },
- {
- "function": "minecraft:set_count",
- "count": 16,
- "conditions": [
- {
- "condition": "minecraft:location_check",
- "predicate": {
- "light": {
- "light": 15
- }
- }
- }
- ]
- }
- ]
复制代码- [
- {
- "function": "set_lore",
- "lore": [
- {
- "text": "Hello",
- "color": "red"
- }
- ],
- "replace": true
- },
- {
- "function": "minecraft:set_count",
- "count": {
- "min": 3.0,
- "max": {
- // number providers can now be nested, previous `max` could only be number
- "type": "score", // new provider for accessing scores
- "score": "count",
- "target": {"name": "test"} // `entity` -> `target`, also now allows fixed UUIDs to access fake players
- },
- "type": "minecraft:uniform"
- }
- },
- {
- "function": "set_damage",
- "add": true, // argument for relative changes, so we don't need to go via scoreboards to increment
- "damage": {
- "type": "score",
- "score": "damage",
- "target": "this",
- "scale": 0.01
- }
- },
- {
- "function": "set_enchantments", // new function to replace `/enchant`
- "enchantments": {
- "looting": {
- "type": "score",
- "score": "looting",
- "target": "this"
- }
- }
- },
- {
- "function": "copy_nbt",
- "source": {"storage": "test:whatever"}, // syntax for selecting data from storage, previously only allowed values like `this` or `block_entity`
- "ops": [
- {
- "source": "value",
- "target": "CustomModelData",
- "op": "replace"
- }
- ]
- }
- ]
复制代码
官方给了例子 |
评分
-
查看全部评分
|