Skip to content

Commit 96bb458

Browse files
authored
Merge pull request #2670 from TBPig/pigs/1.21
Ponder for the Block Devourer and a Charger Change 方块吞噬者铁砧思索和充放电器修改
2 parents cd70f19 + 2dff317 commit 96bb458

12 files changed

Lines changed: 388 additions & 132 deletions

File tree

‎src/generated/resources/assets/anvilcraft/lang/en_ud.json‎

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,14 @@
178178
"anvilcraft.ponder.block_comparator.header": "ɹoʇɐɹɐdɯoƆ ʞɔoןᗺ",
179179
"anvilcraft.ponder.block_comparator.text_1": "˙ןɐubıs ɐ ʇno puǝs ןן’ʇı 'ǝɯɐs ǝɥʇ ǝɹɐ ɹoʇɐɹɐdɯoɔ ǝɥʇ ɟo ǝpıs ɹǝɥʇıǝ uo sʞɔoןq ǝɥʇ uǝɥM",
180180
"anvilcraft.ponder.block_comparator.text_2": "˙ǝɯɐs ǝɥʇ ʎןʇɔɐxǝ ǝɹɐ sʞɔoןq ǝɥʇ ɟı ʎןןnɟǝɹɐɔ ɹǝdns ʞɔǝɥɔ ןן’ʇı—ǝpoɯ ǝsıɔǝɹd uo uɹnʇ oʇ ʞɔıןɔ-ʇɥbıᴚ",
181+
"anvilcraft.ponder.block_devourer.header": "ɹǝɹnoʌǝᗡ ʞɔoןᗺ",
182+
"anvilcraft.ponder.block_devourer.text_1": "˙pɐǝɥɐ ǝɔɐds ƐxƐ ǝɥʇ uı ǝqnɔ ǝɥʇ ʎoɹʇsǝp oʇ ʎɹʇ ןןıʍ ʇı 'ןɐubıs ǝuoʇspǝᴚ ǝɥʇ sǝʌıǝɔǝɹ ɹǝɹnoʌǝᗡ ʞɔoןᗺ ǝɥʇ uǝɥM",
183+
"anvilcraft.ponder.block_devourer.text_2": "˙ʞɔɐq ǝɥʇ ʇɐ ʞɔɐq ʇsǝɥɔ ǝɥʇ oʇuı sʞɔoןq pǝʎoɹʇsǝp ǝɥʇ ǝɔɐןd uɐɔ ɹǝɹnoʌǝᗡ ʞɔoןᗺ ǝɥ⟘",
184+
"anvilcraft.ponder.block_devourer.text_3": "˙pǝuıɐʇǝɹ ǝq ןןıʍ sʞɔoןq ǝsɐq s,pןɹoʍ ǝɥʇ ɟo uoıʇɹod ןןɐɯs ʎɹǝʌ ɐ ʎןuO",
185+
"anvilcraft.ponder.block_devourer_anvil.header": "ןıʌuⱯ ɥʇıʍ ɹnoʌǝᗡ",
186+
"anvilcraft.ponder.block_devourer_anvil.text_1": "˙6x6 ɟo ɐǝɹɐ ɯnɯıxɐɯ ɐ ɥʇıʍ 'sןןɐɟ ןıʌuɐ ǝɥʇ ɥɔıɥʍ ɯoɹɟ ʇɥbıǝɥ ǝɥʇ uo pǝsɐq sʞɔoןq ɹǝbɹɐן ʎoɹʇsǝp uɐɔ ɹǝɹnoʌǝᗡ ʞɔoןᗺ ǝɥ⟘",
187+
"anvilcraft.ponder.block_devourer_anvil_fall.header": "ɹǝɹnoʌǝᗡ ʞɔoןᗺ buıןןɐℲ",
188+
"anvilcraft.ponder.block_devourer_anvil_fall.text_1": "˙ǝɯıʇ ǝɯɐs ǝɥʇ ʇɐ ʞɔoןq ǝuo uʍop ǝʌoɯ ןןıʍ ʇı 'ןıʌuɐ uɐ ʎq ʇıɥ sı ɹǝɹnoʌǝp ʞɔoןq buıɔɐɟ-pɹɐʍuʍop ɐ uǝɥM",
181189
"anvilcraft.ponder.block_placer.header": "ɹǝɔɐןԀ ʞɔoןᗺ",
182190
"anvilcraft.ponder.block_placer.text_1": "˙ǝuoʇspǝɹ ʎq pǝɹǝʍod uǝɥʍ ʇı ɟo ʇuoɹɟ uı sʞɔoןq ǝɔɐןd uɐɔ ɹǝɔɐןԀ ʞɔoןᗺ",
183191
"anvilcraft.ponder.block_placer.text_2": "˙ɹǝuıɐʇuoɔ ǝɥʇ uı sɯǝʇı ǝɥʇ pɐǝɹ osןɐ uɐɔ ʇI",
@@ -219,8 +227,8 @@
219227
"anvilcraft.ponder.get_corrupted_beacon.header": "uoɔɐǝᗺ pǝʇdnɹɹoƆ ʇǝ⅁",
220228
"anvilcraft.ponder.get_corrupted_beacon.text_1": "˙pǝɯɹoɟsuɐɹʇ buıǝq ɟo ʎʇıןıqɐqoɹd ɐ ǝʌɐɥ suoɔɐǝᗺ",
221229
"anvilcraft.ponder.get_corrupted_beacon.text_2": "˙ʎʇıןıqɐqoɹd ǝɥʇ ɹǝɥbıɥ ǝɥʇ 'ǝsɐq ǝɥʇ ɹǝbbıq ǝɥ⟘",
222-
"anvilcraft.ponder.giant_anvil.header": "ןıʌuⱯ ʇuɐı⅁ ʇǝ⅁",
223-
"anvilcraft.ponder.giant_anvil.text_1": "˙sןıʌuɐ ʇuɐıb buıʎɹɹɐɔ sʇuɐıb oʇuı pǝɯɹoɟsuɐɹʇ ǝq ןןıʍ ʎǝɥʇ ʇɐɥʇ ʎʇıןıqɐqoɹd ǝɥʇ ɹǝʇɐǝɹb ǝɥʇ 'sǝıqɯoz oʇ ǝʌıb noʎ sןıʌuɐ ǝɹoɯ ǝɥ⟘",
230+
"anvilcraft.ponder.get_giant_anvil.header": "ןıʌuⱯ ʇuɐı⅁ ʇǝ⅁",
231+
"anvilcraft.ponder.get_giant_anvil.text_1": "˙sןıʌuɐ ʇuɐıb buıʎɹɹɐɔ sʇuɐıb oʇuı pǝɯɹoɟsuɐɹʇ ǝq ןןıʍ ʎǝɥʇ ʇɐɥʇ ʎʇıןıqɐqoɹd ǝɥʇ ɹǝʇɐǝɹb ǝɥʇ 'sǝıqɯoz oʇ ǝʌıb noʎ sןıʌuɐ ǝɹoɯ ǝɥ⟘",
224232
"anvilcraft.ponder.heater.header": "ǝdıɔǝɹ ʇɐǝɥ-ɥbıɥ ǝɥʇ ǝʇnɔǝxǝ oʇ ɹǝʇɐǝɥ ǝs∩",
225233
"anvilcraft.ponder.heater.text_1": "˙pıɹb ǝɥʇ uı ʞɹoʍ oʇ ɹǝʍod ɟo Mʞ 9Ɩ sǝɹınbǝɹ ʇI",
226234
"anvilcraft.ponder.heater.text_2": "˙ʎןɹǝdoɹd buıʞɹoʍ ʍou sı ɹǝʇɐǝɥ ǝɥ⟘",
@@ -268,11 +276,28 @@
268276
"anvilcraft.ponder.mesh.text_1": "˙sɯǝʇı uǝǝɹɔs uɐɔ buıpןoɟɟɐɔS",
269277
"anvilcraft.ponder.mob_transform.header": "ɯɹoɟsuɐɹ⟘ qoW",
270278
"anvilcraft.ponder.mob_transform.text_1": "˙pǝɯɹoɟsuɐɹʇ ǝq uɐɔ qoɯ ǝɯoS",
279+
"anvilcraft.ponder.mode_of_shock.header": "˙ǝpoɯ ʞɔoɥS sǝuıɯɹǝʇǝp ʞɔoןᗺ uoɹI ʎʌɐǝH ǝɥʇ punoɹɐ sʞɔoןᗺ",
280+
"anvilcraft.ponder.mode_of_shock.text_1": "˙ǝpoɯ ʞɔoɥS ǝɥʇ ɹǝʇןɐ uɐɔ ʞɔoןᗺ uoɹI ʎʌɐǝH ǝɥʇ buıpunoɹɹns sʞɔoןq ǝɥʇ buıbuɐɥƆ",
281+
"anvilcraft.ponder.mode_of_shock.text_2": "˙ǝɔuo pɹɐʍdn ǝɔunoq ǝbuɐɹ ʞɔoɥs ǝɥʇ uıɥʇıʍ sןıʌuɐ ǝʞɐɯ uɐɔ ʞɔoןq uısǝɹ 'ǝןdɯɐxǝ ɹoℲ",
282+
"anvilcraft.ponder.mode_of_shock.text_3": "˙ǝbɐɯɐp ʞɔoɥs ǝɥʇ oʇ ǝbɐɯɐp ןɐuoıʇıppɐ ןɐnbǝ ppɐ uɐɔ sǝpıs ɹnoɟ ǝɥʇ uo sʞɔoןᗺ pןo⅁ pǝsɹnƆ buıɔɐןԀ",
283+
"anvilcraft.ponder.mode_of_shock.text_4": "˙ǝbɐɯɐp ɟo sǝdʎʇ snoıɹɐʌ ppɐ uɐɔ sɹǝuɹoɔ ɹnoɟ ǝɥʇ ʇɐ sʞɔoןq ɯǝb ʇuǝɹǝɟɟıp buıɔɐןԀ",
284+
"anvilcraft.ponder.mode_of_shock.text_5": "˙ǝbɐɯɐp ǝɹıɟ ppɐ uɐɔ sʞɔoןᗺ ʎqnᴚ 'ǝןdɯɐxǝ ɹoℲ",
285+
"anvilcraft.ponder.mode_of_shock.text_6": "˙ǝbɐɯɐp buızǝǝɹɟ ppɐ uɐɔ sʞɔoןᗺ ǝɹıɥddɐS",
286+
"anvilcraft.ponder.mode_of_shock.text_7": "˙ǝbɐɯɐp buıuʇɥbıן ppɐ uɐɔ sʞɔoןᗺ zɐdo⟘",
287+
"anvilcraft.ponder.mode_of_shock.text_8": "˙ǝbɐɯɐp pıoʌ buıɔɹǝıd-ɹoɯɹɐ ppɐ uɐɔ sʞɔoןᗺ ɹǝʇʇɐW pıoΛ",
271288
"anvilcraft.ponder.powered_sliding_rail.header": "sɔısɐq ןıɐɹ buıpıןs pǝɹǝʍoԀ",
272289
"anvilcraft.ponder.powered_sliding_rail.text_1": "sʞɔoןq puɐ sɯǝʇı ɹoɟ doʇs ןıɐɹ buıpıןs ɐ ǝʞıן sʇɔɐ ןıɐɹ buıpıןs pǝɹǝʍod 'ןɐubıs ǝuoʇspǝɹ ʇnoɥʇıM",
273290
"anvilcraft.ponder.powered_sliding_rail.text_2": "ןıɐɹ pǝɹǝʍod ǝɥʇ ʎq pǝʇɔǝɟɟɐ ʇou ǝɹɐ sʇoɹɹɐd ǝʞıן sǝıʇıʇuǝ buıʌıן ʇnᗺ",
274291
"anvilcraft.ponder.powered_sliding_rail.text_3": "pǝddoʇs puɐ pǝʇɔɐɹʇʇɐ ǝq ןןıʍ ɹǝʌo buıssɐd sʞɔoןq puɐ sɯǝʇI",
275292
"anvilcraft.ponder.powered_sliding_rail.text_4": "pɹɐʍɹoɟ sʞɔoןq sǝɥsnd puɐ sɯǝʇı sǝʇɐɹǝןǝɔɔɐ ʇı 'ǝuoʇspǝɹ ɥʇıʍ pǝɹǝʍod uǝɥM",
293+
"anvilcraft.ponder.range_of_shock.header": "ǝbuɐɹ ʞɔoɥs ǝɥʇ sǝuıɯɹǝʇǝp ןıʌuⱯ ʇuɐı⅁ ɟo ǝɔuɐʇsıᗡןןɐℲ ǝɥ⟘",
294+
"anvilcraft.ponder.range_of_shock.text_1": "²ɯϛᄅ ɟo ɐǝɹɐ uɐ ʞɔoɥs uɐɔ ɯƐ sןןɐɟ ןıʌuⱯ ʇuɐı⅁",
295+
"anvilcraft.ponder.range_of_shock.text_2": "²ɯ680Ɩ ɟo ɐǝɹɐ uɐ ʞɔoɥs uɐɔ ɯ9Ɩ sןןɐɟ ןıʌuⱯ ʇuɐı⅁ puⱯ",
296+
"anvilcraft.ponder.range_of_shock.text_3": "˙ןıʌuⱯ ʇuɐı⅁ ɟo ǝɔuɐʇsıᗡןןɐℲ ǝɥʇ ɥʇıʍ sǝsɐǝɹɔuı ǝbɐɯɐp ʞɔoɥs 'ʎןןɐuoıʇıppⱯ",
297+
"anvilcraft.ponder.shock.header": "ʞɔoןq uoɹı ʎʌɐǝɥ uo ʞɔoɥs",
298+
"anvilcraft.ponder.shock.text_1": "ʞɔoןq uoɹı ʎʌɐǝɥ ɐ oʇuo sןןɐɟ ןıʌuɐ ʇuɐıb ɐ uǝɥM",
299+
"anvilcraft.ponder.shock.text_2": "suoıʇɔǝɹıp ןןɐ uı pɹɐʍʇno sǝןddıɹ ǝʌɐʍʞɔoɥs ɐ sǝɥsɐǝןun ʇI",
300+
"anvilcraft.ponder.shock.text_3": "˙sǝoɥs buıɹɐǝʍ ʇou ǝɹnʇɐǝɹɔ ʎuɐ sɯɹɐɥ ǝʌɐʍʞɔoɥs ǝɥ⟘",
276301
"anvilcraft.ponder.simple_chute.header": "ǝʇnɥɔ ןɐɯɹou puɐ ǝʇnɥɔ ǝןdɯıS",
277302
"anvilcraft.ponder.simple_chute.text_1": "ǝʇnɥɔ ǝןdɯıs ɐ sǝɯoɔǝq ʇı 'ǝʇnɥɔ ɹǝɥʇouɐ ɟo uoıʇɔǝɹıp ʇndʇno ǝɥʇ oʇ pǝʇɔǝuuoɔ sı ǝʇnɥɔ ǝuo uǝɥM",
278303
"anvilcraft.ponder.simple_chute.text_2": "suoıʇɔǝɹıp ǝןdıʇןnɯ ɯoɹɟ sǝʇnɥɔ ɹǝɥʇo ɯoɹɟ sɯǝʇı ǝʌıǝɔǝɹ uɐɔ ǝʇnɥɔ ǝןdɯıs ǝɥ⟘",

‎src/generated/resources/assets/anvilcraft/lang/en_us.json‎

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,14 @@
178178
"anvilcraft.ponder.block_comparator.header": "Block Comparator",
179179
"anvilcraft.ponder.block_comparator.text_1": "When the blocks on either side of the comparator are the same, it’ll send out a signal.",
180180
"anvilcraft.ponder.block_comparator.text_2": "Right-click to turn on precise mode—it’ll check super carefully if the blocks are exactly the same.",
181+
"anvilcraft.ponder.block_devourer.header": "Block Devourer",
182+
"anvilcraft.ponder.block_devourer.text_1": "When the Block Devourer receives the Redstone signal, it will try to destroy the cube in the 3x3 space ahead.",
183+
"anvilcraft.ponder.block_devourer.text_2": "The Block Devourer can place the destroyed blocks into the chest back at the back.",
184+
"anvilcraft.ponder.block_devourer.text_3": "Only a very small portion of the world's base blocks will be retained.",
185+
"anvilcraft.ponder.block_devourer_anvil.header": "Devour with Anvil",
186+
"anvilcraft.ponder.block_devourer_anvil.text_1": "The Block Devourer can destroy larger blocks based on the height from which the anvil falls, with a maximum area of 9x9.",
187+
"anvilcraft.ponder.block_devourer_anvil_fall.header": "Falling Block Devourer",
188+
"anvilcraft.ponder.block_devourer_anvil_fall.text_1": "When a downward-facing block devourer is hit by an anvil, it will move down one block at the same time.",
181189
"anvilcraft.ponder.block_placer.header": "Block Placer",
182190
"anvilcraft.ponder.block_placer.text_1": "Block Placer can place blocks in front of it when powered by redstone.",
183191
"anvilcraft.ponder.block_placer.text_2": "It can also read the items in the container.",
@@ -219,8 +227,8 @@
219227
"anvilcraft.ponder.get_corrupted_beacon.header": "Get Corrupted Beacon",
220228
"anvilcraft.ponder.get_corrupted_beacon.text_1": "Beacons have a probability of being transformed.",
221229
"anvilcraft.ponder.get_corrupted_beacon.text_2": "The bigger the base, the higher the probability.",
222-
"anvilcraft.ponder.giant_anvil.header": "Get Giant Anvil",
223-
"anvilcraft.ponder.giant_anvil.text_1": "The more anvils you give to zombies, the greater the probability that they will be transformed into giants carrying giant anvils.",
230+
"anvilcraft.ponder.get_giant_anvil.header": "Get Giant Anvil",
231+
"anvilcraft.ponder.get_giant_anvil.text_1": "The more anvils you give to zombies, the greater the probability that they will be transformed into giants carrying giant anvils.",
224232
"anvilcraft.ponder.heater.header": "Use heater to execute the high-heat recipe",
225233
"anvilcraft.ponder.heater.text_1": "It requires 16 kW of power to work in the grid.",
226234
"anvilcraft.ponder.heater.text_2": "The heater is now working properly.",
@@ -268,11 +276,28 @@
268276
"anvilcraft.ponder.mesh.text_1": "Scaffolding can screen items.",
269277
"anvilcraft.ponder.mob_transform.header": "Mob Transform",
270278
"anvilcraft.ponder.mob_transform.text_1": "Some mob can be transformed.",
279+
"anvilcraft.ponder.mode_of_shock.header": "Blocks around the Heavy Iron Block determines Shock mode.",
280+
"anvilcraft.ponder.mode_of_shock.text_1": "Changing the blocks surrounding the Heavy Iron Block can alter the Shock mode.",
281+
"anvilcraft.ponder.mode_of_shock.text_2": "For example, resin block can make anvils within the shock range bounce upward once.",
282+
"anvilcraft.ponder.mode_of_shock.text_3": "Placing Cursed Gold Blocks on the four sides can add equal additional damage to the shock damage.",
283+
"anvilcraft.ponder.mode_of_shock.text_4": "Placing different gem blocks at the four corners can add various types of damage.",
284+
"anvilcraft.ponder.mode_of_shock.text_5": "For example, Ruby Blocks can add fire damage.",
285+
"anvilcraft.ponder.mode_of_shock.text_6": "Sapphire Blocks can add freezing damage.",
286+
"anvilcraft.ponder.mode_of_shock.text_7": "Topaz Blocks can add lightning damage.",
287+
"anvilcraft.ponder.mode_of_shock.text_8": "Void Matter Blocks can add armor-piercing void damage.",
271288
"anvilcraft.ponder.powered_sliding_rail.header": "Powered sliding rail basics",
272289
"anvilcraft.ponder.powered_sliding_rail.text_1": "Without redstone signal, powered sliding rail acts like a sliding rail stop for items and blocks",
273290
"anvilcraft.ponder.powered_sliding_rail.text_2": "But living entities like parrots are not affected by the powered rail",
274291
"anvilcraft.ponder.powered_sliding_rail.text_3": "Items and blocks passing over will be attracted and stopped",
275292
"anvilcraft.ponder.powered_sliding_rail.text_4": "When powered with redstone, it accelerates items and pushes blocks forward",
293+
"anvilcraft.ponder.range_of_shock.header": "The FallDistance of Giant Anvil determines the shock range",
294+
"anvilcraft.ponder.range_of_shock.text_1": "Giant Anvil falls 3m can shock an area of 25m²",
295+
"anvilcraft.ponder.range_of_shock.text_2": "And Giant Anvil falls 16m can shock an area of 1089m²",
296+
"anvilcraft.ponder.range_of_shock.text_3": "Additionally, shock damage increases with the FallDistance of Giant Anvil.",
297+
"anvilcraft.ponder.shock.header": "shock on heavy iron block",
298+
"anvilcraft.ponder.shock.text_1": "When a giant anvil falls onto a heavy iron block",
299+
"anvilcraft.ponder.shock.text_2": "It unleashes a shockwave ripples outward in all directions",
300+
"anvilcraft.ponder.shock.text_3": "The shockwave harms any creature not wearing shoes.",
276301
"anvilcraft.ponder.simple_chute.header": "Simple chute and normal chute",
277302
"anvilcraft.ponder.simple_chute.text_1": "When one chute is connected to the output direction of another chute, it becomes a simple chute",
278303
"anvilcraft.ponder.simple_chute.text_2": "The simple chute can receive items from other chutes from multiple directions",

‎src/main/java/dev/dubhe/anvilcraft/block/ChargerBlock.java‎

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import dev.dubhe.anvilcraft.util.IStateListener;
1212
import net.minecraft.core.BlockPos;
1313
import net.minecraft.server.level.ServerLevel;
14+
import net.minecraft.sounds.SoundEvents;
15+
import net.minecraft.sounds.SoundSource;
1416
import net.minecraft.util.RandomSource;
1517
import net.minecraft.world.Containers;
1618
import net.minecraft.world.InteractionHand;
@@ -173,6 +175,9 @@ protected ItemInteractionResult useItemOn(
173175
BlockHitResult hit
174176
) {
175177
if (level.getBlockEntity(pos) instanceof ChargerBlockEntity charger) {
178+
if (level.isClientSide) {
179+
return ItemInteractionResult.SUCCESS;
180+
}
176181
// 玩家空手时尝试取出物品
177182
if (stack.isEmpty()) {
178183
// 优先从输出槽(槽位2)取物品,如果为空则从输入槽(槽位0)取
@@ -182,22 +187,19 @@ protected ItemInteractionResult useItemOn(
182187
}) {
183188
ItemStack itemInSlot = charger.getFilteredItemStackHandler().getStackInSlot(slot);
184189
if (!itemInSlot.isEmpty()) {
185-
if (!level.isClientSide) {
186-
ItemStack extracted = charger.getFilteredItemStackHandler().extractItem(slot, itemInSlot.getCount(), false);
187-
player.getInventory().placeItemBackInInventory(extracted);
188-
}
189-
return ItemInteractionResult.sidedSuccess(level.isClientSide);
190+
ItemStack extracted = charger.getFilteredItemStackHandler().extractItem(slot, itemInSlot.getCount(), false);
191+
player.getInventory().placeItemBackInInventory(extracted);
192+
level.playSound(null, pos, SoundEvents.ITEM_PICKUP, SoundSource.PLAYERS, .2f, 1f + level.getRandom().nextFloat());
193+
return ItemInteractionResult.SUCCESS;
190194
}
191195
}
192196
} else if (charger.containsValidItem(stack)) {
193197
ItemStack result = charger.getFilteredItemStackHandler().insertItem(0, stack, true);
194198
if (result.isEmpty() || result.getCount() < stack.getCount()) {
195-
if (!level.isClientSide) {
196-
int countDiff = stack.getCount() - (result.isEmpty() ? 0 : result.getCount());
197-
ItemStack toInsert = stack.split(countDiff);
198-
charger.getFilteredItemStackHandler().insertItem(0, toInsert, false);
199-
}
200-
return ItemInteractionResult.sidedSuccess(level.isClientSide);
199+
int countDiff = stack.getCount() - (result.isEmpty() ? 0 : result.getCount());
200+
ItemStack toInsert = stack.split(countDiff);
201+
charger.getFilteredItemStackHandler().insertItem(0, toInsert, false);
202+
return ItemInteractionResult.SUCCESS;
201203
}
202204
}
203205
}

‎src/main/java/dev/dubhe/anvilcraft/block/entity/ChargerBlockEntity.java‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,11 @@ private void updateDisplayItemStack() {
187187
}
188188

189189
private ItemStack getDisplayItemStackForRender() {
190-
for (int i = 1; i >= 0; i--) {
190+
for (int i = 2; i >= 0; i--) {
191191
if (!itemHandler.getStackInSlot(i).isEmpty()) {
192192
return itemHandler.getStackInSlot(i);
193193
}
194194
}
195-
if (!itemHandler.getStackInSlot(2).isEmpty()) {
196-
return itemHandler.getStackInSlot(2);
197-
}
198195
return ItemStack.EMPTY;
199196
}
200197

‎src/main/java/dev/dubhe/anvilcraft/integration/ponder/AnvilCraftPonderScenes.java‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import dev.dubhe.anvilcraft.integration.ponder.scene.recipe.BlockRecipeScene;
1111
import dev.dubhe.anvilcraft.integration.ponder.scene.recipe.BulgingScene;
1212
import dev.dubhe.anvilcraft.integration.ponder.scene.recipe.CookingScene;
13-
import dev.dubhe.anvilcraft.integration.ponder.scene.recipe.CorruptedBeaconSence;
13+
import dev.dubhe.anvilcraft.integration.ponder.scene.recipe.CorruptedBeaconScene;
1414
import dev.dubhe.anvilcraft.integration.ponder.scene.recipe.HeaterScene;
1515
import dev.dubhe.anvilcraft.integration.ponder.scene.recipe.IronTrapdoorScene;
1616
import dev.dubhe.anvilcraft.integration.ponder.scene.recipe.ItemCompressScene;
@@ -19,6 +19,7 @@
1919
import dev.dubhe.anvilcraft.integration.ponder.scene.recipe.SpaceOvercompressorScene;
2020
import dev.dubhe.anvilcraft.integration.ponder.scene.recipe.StampingScene;
2121
import dev.dubhe.anvilcraft.integration.ponder.scene.redstone.BlockComparatorScene;
22+
import dev.dubhe.anvilcraft.integration.ponder.scene.redstone.BlockDevourerScene;
2223
import dev.dubhe.anvilcraft.integration.ponder.scene.redstone.BlockPlacerScene;
2324
import dev.dubhe.anvilcraft.integration.ponder.scene.redstone.MagnetScene;
2425
import dev.dubhe.anvilcraft.integration.ponder.scene.structure.GiantAnvilScene;
@@ -42,12 +43,13 @@ public static void register(PonderSceneRegistrationHelper<ResourceLocation> help
4243
ItemCrushScene.register(helper);
4344
MeshScene.register(helper);
4445
HeaterScene.register(helper);
45-
CorruptedBeaconSence.register(helper);
46+
CorruptedBeaconScene.register(helper);
4647
SpaceOvercompressorScene.register(helper);
4748
// redstone
4849
MagnetScene.register(helper);
4950
BlockComparatorScene.register(helper);
5051
BlockPlacerScene.register(helper);
52+
BlockDevourerScene.register(helper);
5153
// structure
5254
ImpactPileScene.register(helper);
5355
GiantAnvilScene.register(helper);

0 commit comments

Comments
 (0)