Skip to content

Commit 0ce4816

Browse files
committed
refactor: Update to new Vintage's optional smart values
1 parent 0373287 commit 0ce4816

22 files changed

Lines changed: 21 additions & 44 deletions

templates/custom_items/data/bubblellaneous/loot_table/item/%[id].json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
"translate": "item.bubblellaneous.%[id]"
2828
},
2929
"%[consumable_prefix]minecraft:consumable": "%[consumable_value]",
30-
"%[food_prefix]minecraft:food": "%[food_value]",
31-
"minecraft:max_stack_size": "%[max_stack_size]"
30+
"minecraft:food": "%[food?]",
31+
"minecraft:max_stack_size": "%[max_stack_size]",
32+
"minecraft:equippable": "%[equippable?]"
3233
}
3334
}
3435
]

templates/custom_items/definitions/%[card_suit]_%[card_rank]_playing_card.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,5 @@
1616
],
1717
"consumable_prefix": "!",
1818
"consumable_value": {},
19-
"food_prefix": "!",
20-
"food_value": {},
2119
"max_stack_size": 64
2220
}

templates/custom_items/definitions/%[color]_beer_bottle.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
}
4040
]
4141
},
42-
"food_prefix": "",
43-
"food_value": {
42+
"food": {
4443
"nutrition": 4,
4544
"saturation": 5,
4645
"can_always_eat": true

templates/custom_items/definitions/%[color]_key.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@
2121
],
2222
"consumable_prefix": "",
2323
"consumable_value": {},
24-
"food_prefix": "!",
25-
"food_value": {},
2624
"max_stack_size": 16
2725
}

templates/custom_items/definitions/broccoli.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
"consume_seconds": 1.0,
2121
"has_consume_particles": true
2222
},
23-
"food_prefix": "",
24-
"food_value": {
23+
"food": {
2524
"nutrition": 3,
2625
"saturation": 3,
2726
"can_always_eat": false

templates/custom_items/definitions/burger.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
"consume_seconds": 5.0,
2626
"has_consume_particles": true
2727
},
28-
"food_prefix": "",
29-
"food_value": {
28+
"food": {
3029
"nutrition": 8,
3130
"saturation": 6,
3231
"can_always_eat": false

templates/custom_items/definitions/cereal.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
"consume_seconds": 6.0,
2626
"has_consume_particles": false
2727
},
28-
"food_prefix": "",
29-
"food_value": {
28+
"food": {
3029
"nutrition": 10,
3130
"saturation": 14,
3231
"can_always_eat": false

templates/custom_items/definitions/cheese.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
"consume_seconds": 2.0,
2121
"has_consume_particles": true
2222
},
23-
"food_prefix": "",
24-
"food_value": {
23+
"food": {
2524
"nutrition": 2,
2625
"saturation": 1,
2726
"can_always_eat": false

templates/custom_items/definitions/chocolate_bar.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
"consume_seconds": 1.6,
2121
"has_consume_particles": true
2222
},
23-
"food_prefix": "",
24-
"food_value": {
23+
"food": {
2524
"nutrition": 3,
2625
"saturation": 0,
2726
"can_always_eat": false

templates/custom_items/definitions/coffee_cup.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
"has_consume_particles": false,
2222
"sound": "minecraft:entity.generic.drink"
2323
},
24-
"food_prefix": "",
25-
"food_value": {
24+
"food": {
2625
"nutrition": 3,
2726
"saturation": 10,
2827
"can_always_eat": true

0 commit comments

Comments
 (0)