Skip to content

Commit 1ada6ee

Browse files
我终于自由了
1 parent d6e2358 commit 1ada6ee

65 files changed

Lines changed: 1357 additions & 737 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
// 1.21.1 2025-10-06T21:28:50.1447389 Item Models: futurefood
1+
// 1.21.1 2025-10-07T19:57:49.1616654 Item Models: futurefood
22
8f780145ad2000b0300eb2dfb01eb5f356276c2e assets/futurefood/models/item/battery.json
33
d0a59be612dbaf93cb4d5963ff91c314b55fde23 assets/futurefood/models/item/cyber_wrench.json
44
939de49376d8b37f26c3602097e6469f28ca3333 assets/futurefood/models/item/food_essence.json
55
558b99d41471bba5ece3ff7c757173383db95d30 assets/futurefood/models/item/food_essence1.json
66
92955f95517826b1a46f49009ebf9252b894998d assets/futurefood/models/item/gluttony.json
7+
8f780145ad2000b0300eb2dfb01eb5f356276c2e assets/futurefood/models/item/infinite_battery.json
78
cf22bfb9e3b1a3f6751185b38846e707c90e2b8e assets/futurefood/models/item/quantum_energy_diffuser.json
89
ebe5021677af67de7a7528e7cb59bc3cd1b0cab7 assets/futurefood/models/item/quantum_energy_receiver.json

src/generated/resources/.cache/3db86d42f514d86a67f98d7184941b13cc0cc94f

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
// 1.21.1 2025-10-06T21:11:09.6337847 Block States: futurefood
1+
// 1.21.1 2025-10-07T19:57:49.1641773 Block States: futurefood
22
f412ed10afdce23d06a36e689c211885265ae88e assets/futurefood/blockstates/battery.json
33
c5ba86ad7431689cdf47724d1fef847975b1e4ce assets/futurefood/blockstates/gluttony.json
4+
f412ed10afdce23d06a36e689c211885265ae88e assets/futurefood/blockstates/infinite_battery.json
45
92f590ca2adbb247d6063d6578f248d7ed238c17 assets/futurefood/blockstates/particle_collider.json
56
9a1a1546abb8707a2f1ebf184920e60b0794ed42 assets/futurefood/blockstates/quantum_energy_diffuser.json
67
3a8b6dfb82a35cc32067cc7213cd0f3ee90b7c1a assets/futurefood/blockstates/quantum_energy_receiver.json
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
// 1.21.1 2025-10-06T22:38:12.3647535 Loot Tables
2-
cbab5c0fa5fa5789f4461a5f5ad7c1da0d5b5b10 data/futurefood/loot_table/blocks/battery.json
1+
// 1.21.1 2025-10-07T19:57:49.1596663 Loot Tables
2+
f02e1e085acac59faf684efda5fc546f24f51997 data/futurefood/loot_table/blocks/battery.json
33
0a2a358df6f3a56898cbc4a796fc3f93d866fb94 data/futurefood/loot_table/blocks/gluttony.json
4+
c72340dc685ad2926c49711e24a08ff29c3d5ef0 data/futurefood/loot_table/blocks/infinite_battery.json
45
2b78696bcfaf4b8dae4217962d2837c84fea5939 data/futurefood/loot_table/blocks/particle_collider.json
56
c2e76271f7b2d4fec7d67fafa9059c2c5f702c48 data/futurefood/loot_table/blocks/quantum_energy_diffuser.json
67
7058111c46dd376cf1a61c03bfa503e7ee0af4f4 data/futurefood/loot_table/blocks/quantum_energy_receiver.json
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// 1.21.1 2025-10-06T16:15:16.2160564 Languages: zh_cn for mod: futurefood
2-
3de5a6e15cd493e88c5cba7b4896d0b995acd42d assets/futurefood/lang/zh_cn.json
1+
// 1.21.1 2025-10-07T19:57:49.1661775 Languages: zh_cn for mod: futurefood
2+
cfc1f6d7fcf75780cb0810a7ba743793a8622adf assets/futurefood/lang/zh_cn.json
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"variants": {
3+
"facing=east": {
4+
"model": "futurefood:block/battery",
5+
"y": 90
6+
},
7+
"facing=north": {
8+
"model": "futurefood:block/battery"
9+
},
10+
"facing=south": {
11+
"model": "futurefood:block/battery",
12+
"y": 180
13+
},
14+
"facing=west": {
15+
"model": "futurefood:block/battery",
16+
"y": 270
17+
}
18+
}
19+
}

src/generated/resources/assets/futurefood/lang/zh_cn.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"block.futurefood.battery": "储蓄方块",
33
"block.futurefood.gluttony": "暴食者",
4+
"block.futurefood.infinite_battery": "无限储蓄方块",
45
"block.futurefood.particle_collider": "粒子对撞器",
56
"block.futurefood.quantum_energy_diffuser": "量子能源扩散器",
67
"block.futurefood.quantum_energy_receiver": "量子能源接收器",
@@ -14,6 +15,7 @@
1415
"futurefood.gui.energy.tooltip": "能量存储:%s/%s",
1516
"futurefood.gui.gluttony.progress.tooltip": "剩余时间:%s",
1617
"futurefood.gui.particle_collider.progress.tooltip": "剩余时间:%s",
18+
"futurefood.item.tooltip.energyStorage": "能量存储:%s/%s",
1719
"futurefood.item.tooltip.position": "绑定的方块坐标:%s %s %s",
1820
"futurefood.item.tooltip.position.empty": "没有绑定方块坐标",
1921
"item.futurefood.cyber_wrench": "赛博扳手",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"parent": "futurefood:block/battery"
3+
}

src/generated/resources/data/futurefood/loot_table/blocks/battery.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@
1111
"entries": [
1212
{
1313
"type": "minecraft:item",
14-
"functions": [
15-
{
16-
"function": "minecraft:copy_components",
17-
"include": [
18-
"futurefood:energy_storage"
19-
],
20-
"source": "block_entity"
21-
}
22-
],
2314
"name": "futurefood:battery"
2415
}
2516
],
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"type": "minecraft:block",
3+
"pools": [
4+
{
5+
"bonus_rolls": 0.0,
6+
"conditions": [
7+
{
8+
"condition": "minecraft:survives_explosion"
9+
}
10+
],
11+
"entries": [
12+
{
13+
"type": "minecraft:item",
14+
"name": "futurefood:infinite_battery"
15+
}
16+
],
17+
"rolls": 1.0
18+
}
19+
],
20+
"random_sequence": "futurefood:blocks/infinite_battery"
21+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
package top.ctnstudio.futurefood.api.adapter;
2+
3+
public class InfiniteModEnergyStorage extends ModEnergyStorage {
4+
public InfiniteModEnergyStorage() {
5+
super(Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE);
6+
}
7+
8+
@Override
9+
public int getEnergyStored() {
10+
return Integer.MAX_VALUE;
11+
}
12+
13+
@Override
14+
public int getMaxEnergyStored() {
15+
return Integer.MAX_VALUE;
16+
}
17+
18+
@Override
19+
public int getMaxExtract() {
20+
return Integer.MAX_VALUE;
21+
}
22+
23+
@Override
24+
public int getMaxReceive() {
25+
return 0;
26+
}
27+
28+
@Override
29+
public boolean canExtract() {
30+
return true;
31+
}
32+
33+
@Override
34+
public boolean canReceive() {
35+
return false;
36+
}
37+
38+
@Override
39+
public void setEnergy(int energy) {
40+
}
41+
42+
@Override
43+
public void setMaxEnergyStored(int capacity) {
44+
}
45+
46+
@Override
47+
public void setMaxExtract(int maxExtract) {
48+
}
49+
50+
@Override
51+
public void setMaxReceive(int maxReceive) {
52+
}
53+
}

0 commit comments

Comments
 (0)