diff --git a/CHANGELOG.md b/CHANGELOG.md index 446bd0d3a..a18012a9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - External Storage screen unnecessarily showing upgrade slots. - Grid setting changes not persisting after restarting Minecraft. - Fixed not being able to extract fluids from the Grid with an empty bucket or other empty fluid container. +- All blocks and items now correctly retain their custom name. ## [2.0.0-milestone.4.6] - 2024-08-08 diff --git a/refinedstorage-common-api/src/main/java/com/refinedmods/refinedstorage/common/api/support/energy/AbstractNetworkEnergyItem.java b/refinedstorage-common-api/src/main/java/com/refinedmods/refinedstorage/common/api/support/energy/AbstractNetworkEnergyItem.java index f9646e79d..171c7d7fd 100644 --- a/refinedstorage-common-api/src/main/java/com/refinedmods/refinedstorage/common/api/support/energy/AbstractNetworkEnergyItem.java +++ b/refinedstorage-common-api/src/main/java/com/refinedmods/refinedstorage/common/api/support/energy/AbstractNetworkEnergyItem.java @@ -8,7 +8,9 @@ import java.util.List; import java.util.Optional; +import javax.annotation.Nullable; +import net.minecraft.core.component.DataComponents; import net.minecraft.network.chat.Component; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.InteractionHand; @@ -69,10 +71,13 @@ public void use(final ServerPlayer player, final ItemStack stack, final SlotRefe player, slotReference ); - use(player, slotReference, context); + use(stack.get(DataComponents.CUSTOM_NAME), player, slotReference, context); } - protected abstract void use(ServerPlayer player, SlotReference slotReference, NetworkItemContext context); + protected abstract void use(@Nullable Component name, + ServerPlayer player, + SlotReference slotReference, + NetworkItemContext context); public boolean isBound(final ItemStack stack) { return networkItemHelper.isBound(stack); diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_cable.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_cable.json index 648334b11..cff2dcaf0 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_cable.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_cable.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_constructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_constructor.json index 8be210c46..d58175384 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_constructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_constructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_controller.json index 8123a56fc..57f51d01a 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_controller.json @@ -3,6 +3,13 @@ "functions": [ { "function": "refinedstorage:energy" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } ], "pools": [ diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_crafting_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_crafting_grid.json index 8f0b69498..4ccc243cd 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_crafting_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_crafting_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_creative_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_creative_controller.json index 5ec03bd97..0b2407503 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_creative_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_creative_controller.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_destructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_destructor.json index a9a83086b..d37d81a3e 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_destructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_destructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_detector.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_detector.json index 52898b736..8de1c722e 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_detector.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_detector.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_disk_interface.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_disk_interface.json index 24c802142..ac1f6222d 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_disk_interface.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_disk_interface.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_grid.json index e574c4fdd..417539c4d 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_network_receiver.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_network_receiver.json index c4384836c..23450acea 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_network_receiver.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_network_receiver.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_network_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_network_transmitter.json index a9ed752ae..ac3570184 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_network_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_network_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_pattern_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_pattern_grid.json index 1bbbc9cf6..4c1716fb9 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_pattern_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_pattern_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_relay.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_relay.json index 8d07fbbd0..8c273d43e 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_relay.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_relay.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_security_manager.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_security_manager.json index defbf005a..b02501bfe 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_security_manager.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_security_manager.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_wireless_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_wireless_transmitter.json index 3933a7c36..4f58d61be 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_wireless_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/black_wireless_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_cable.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_cable.json index a58ea2e45..ef5e0dc34 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_cable.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_cable.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_constructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_constructor.json index 64d2af459..d1e4f8fed 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_constructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_constructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_controller.json index 56885102f..99625ac33 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_controller.json @@ -3,6 +3,13 @@ "functions": [ { "function": "refinedstorage:energy" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } ], "pools": [ diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_crafting_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_crafting_grid.json index 1bb7d29e5..a1c86a75d 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_crafting_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_crafting_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_creative_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_creative_controller.json index 12da65050..c33d112a4 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_creative_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_creative_controller.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_destructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_destructor.json index d274f5fd8..0299f4905 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_destructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_destructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_detector.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_detector.json index 0809791cb..8b81ed4cd 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_detector.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_detector.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_disk_interface.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_disk_interface.json index 18a317a93..8f7ea70cd 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_disk_interface.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_disk_interface.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_grid.json index a44f903cf..10d11d097 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_network_receiver.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_network_receiver.json index 217df93e6..78ec1a7f6 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_network_receiver.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_network_receiver.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_network_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_network_transmitter.json index 2cc41cc84..e0733074d 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_network_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_network_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_pattern_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_pattern_grid.json index 1158b0064..77567bfce 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_pattern_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_pattern_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_relay.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_relay.json index 96b197d1b..047bb9285 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_relay.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_relay.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_security_manager.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_security_manager.json index e75eaaab8..2c674b682 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_security_manager.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_security_manager.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_wireless_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_wireless_transmitter.json index 984dcc955..97d86a90c 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_wireless_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/blue_wireless_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_cable.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_cable.json index 8a0b39f6a..4a937d211 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_cable.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_cable.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_constructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_constructor.json index 1ad80947f..baf5f28ef 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_constructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_constructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_controller.json index 9eae82c39..8df740050 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_controller.json @@ -3,6 +3,13 @@ "functions": [ { "function": "refinedstorage:energy" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } ], "pools": [ diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_crafting_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_crafting_grid.json index 428bae5fe..7bb8667fe 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_crafting_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_crafting_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_creative_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_creative_controller.json index bd406e189..4cbb38ab1 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_creative_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_creative_controller.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_destructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_destructor.json index 208ca71b7..99f1644ad 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_destructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_destructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_detector.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_detector.json index c27e729d3..d49d59b87 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_detector.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_detector.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_disk_interface.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_disk_interface.json index 080a5f622..efd0a64b9 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_disk_interface.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_disk_interface.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_grid.json index a4f3fdc25..c7be84a60 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_network_receiver.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_network_receiver.json index 772cc7a3a..5a9f2e3aa 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_network_receiver.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_network_receiver.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_network_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_network_transmitter.json index 1e2dc8f4e..d576bf397 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_network_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_network_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_pattern_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_pattern_grid.json index 684d5e8c9..6c7e60827 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_pattern_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_pattern_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_relay.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_relay.json index 866982400..f192c2d89 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_relay.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_relay.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_security_manager.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_security_manager.json index efaa86333..8509f56ba 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_security_manager.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_security_manager.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_wireless_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_wireless_transmitter.json index 3312f0440..fe131ab2b 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_wireless_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/brown_wireless_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cable.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cable.json index f9956450f..9de758211 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cable.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cable.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/constructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/constructor.json index 04230b181..a1c6a199b 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/constructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/constructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/controller.json index 6316da1bd..2c0663d27 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/controller.json @@ -3,6 +3,13 @@ "functions": [ { "function": "refinedstorage:energy" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } ], "pools": [ diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/crafting_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/crafting_grid.json index 757bac51c..5a184f330 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/crafting_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/crafting_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/creative_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/creative_controller.json index c76ba2f3a..a2a00584c 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/creative_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/creative_controller.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_cable.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_cable.json index fd572122f..ddc65c136 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_cable.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_cable.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_constructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_constructor.json index 2a5f8ed8d..e53bdea0f 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_constructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_constructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_controller.json index efa1911f4..086edc8ad 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_controller.json @@ -3,6 +3,13 @@ "functions": [ { "function": "refinedstorage:energy" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } ], "pools": [ diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_crafting_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_crafting_grid.json index e412b1d4d..3b7b8e5d3 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_crafting_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_crafting_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_creative_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_creative_controller.json index c105f081c..f53cd7d82 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_creative_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_creative_controller.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_destructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_destructor.json index 9c36b7308..701bf64d2 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_destructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_destructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_detector.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_detector.json index 5f9ae121e..661b2cf01 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_detector.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_detector.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_disk_interface.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_disk_interface.json index 1ae5ce2ee..9eb4a7244 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_disk_interface.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_disk_interface.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_grid.json index 7954e6cf2..80dae33d9 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_network_receiver.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_network_receiver.json index 3731c0cfb..0c67be32d 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_network_receiver.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_network_receiver.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_network_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_network_transmitter.json index f8126882b..2ba0d682f 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_network_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_network_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_pattern_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_pattern_grid.json index 1e3e94404..6262e75af 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_pattern_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_pattern_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_relay.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_relay.json index 0bb33a77e..7fecc7e70 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_relay.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_relay.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_security_manager.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_security_manager.json index ccd1d4309..5158422a4 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_security_manager.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_security_manager.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_wireless_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_wireless_transmitter.json index d6e57fea8..3342c8af7 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_wireless_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/cyan_wireless_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/destructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/destructor.json index 5aefe9504..667f0bc63 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/destructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/destructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/detector.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/detector.json index 158f38e5e..2dbbfe44c 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/detector.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/detector.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/disk_interface.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/disk_interface.json index 05c0639bd..f74c4e015 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/disk_interface.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/disk_interface.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_controller.json index a2e7791ea..a28157f14 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_controller.json @@ -3,6 +3,13 @@ "functions": [ { "function": "refinedstorage:energy" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } ], "pools": [ diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_crafting_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_crafting_grid.json index 30b2c0f42..87dae7822 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_crafting_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_crafting_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_creative_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_creative_controller.json index c09227605..aaef02567 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_creative_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_creative_controller.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_detector.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_detector.json index 91ad54b1f..91c3b84e4 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_detector.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_detector.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_disk_interface.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_disk_interface.json index 8f2ae3499..e21985760 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_disk_interface.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_disk_interface.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_grid.json index 6ee8c592e..03ac5621b 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_network_receiver.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_network_receiver.json index ea905f0f9..b44cfe627 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_network_receiver.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_network_receiver.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_network_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_network_transmitter.json index 83b00cd87..efc4e740b 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_network_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_network_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_pattern_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_pattern_grid.json index 8d9660d5a..74107f8aa 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_pattern_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_pattern_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_relay.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_relay.json index 635106c6a..aa973e181 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_relay.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_relay.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_security_manager.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_security_manager.json index c48615268..3c3fc36c8 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_security_manager.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_security_manager.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_wireless_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_wireless_transmitter.json index 244be7449..8336d76e9 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_wireless_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/gray_wireless_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_cable.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_cable.json index 49a2b9a72..5f427d6e7 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_cable.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_cable.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_constructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_constructor.json index 75609629f..912f36bcb 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_constructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_constructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_controller.json index c8463fe0a..2707cceb7 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_controller.json @@ -3,6 +3,13 @@ "functions": [ { "function": "refinedstorage:energy" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } ], "pools": [ diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_crafting_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_crafting_grid.json index 36d2e970e..d60e874c0 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_crafting_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_crafting_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_creative_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_creative_controller.json index ca4cdc980..e807d7b32 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_creative_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_creative_controller.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_destructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_destructor.json index 3adcf929a..fb5cf3e5c 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_destructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_destructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_detector.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_detector.json index b0ce29372..283d00b40 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_detector.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_detector.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_disk_interface.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_disk_interface.json index efda445ca..9e03648c1 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_disk_interface.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_disk_interface.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_grid.json index 0c3640b49..f708ceffb 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_network_receiver.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_network_receiver.json index 3396f152f..1e1260028 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_network_receiver.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_network_receiver.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_network_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_network_transmitter.json index aeb7ec831..7c99588d7 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_network_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_network_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_pattern_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_pattern_grid.json index 25e15cb87..da86ab6d7 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_pattern_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_pattern_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_relay.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_relay.json index effbee11b..d7f2f3be3 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_relay.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_relay.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_security_manager.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_security_manager.json index 477a5def5..3d922ff62 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_security_manager.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_security_manager.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_wireless_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_wireless_transmitter.json index facfa38a7..85c96b81a 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_wireless_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/green_wireless_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/grid.json index 1d872c7a7..db92cf22e 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_blue_cable.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_blue_cable.json index 0bf3d6281..e4f463207 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_blue_cable.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_blue_cable.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_blue_constructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_blue_constructor.json index 6ee100f09..bf53d4095 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_blue_constructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_blue_constructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_blue_destructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_blue_destructor.json index bf974dec0..0c4c29537 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_blue_destructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_blue_destructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_cable.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_cable.json index c02e7952f..cdbf59291 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_cable.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_cable.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_constructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_constructor.json index 1d8abc1d3..1a31e4852 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_constructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_constructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_controller.json index 73318448f..49da85264 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_controller.json @@ -3,6 +3,13 @@ "functions": [ { "function": "refinedstorage:energy" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } ], "pools": [ diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_crafting_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_crafting_grid.json index e923a22c8..1a6d9847c 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_crafting_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_crafting_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_creative_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_creative_controller.json index fed9b9a50..baa00eff0 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_creative_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_creative_controller.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_destructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_destructor.json index b560cf89d..56d16f0c7 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_destructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_destructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_detector.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_detector.json index d0ab4ca69..ab9611123 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_detector.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_detector.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_disk_interface.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_disk_interface.json index 36a02aace..f731a8306 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_disk_interface.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_disk_interface.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_grid.json index dbdf999f9..331fd5506 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_network_receiver.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_network_receiver.json index 2d160c49b..ea21ec792 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_network_receiver.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_network_receiver.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_network_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_network_transmitter.json index c650f9b12..d85e5fc30 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_network_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_network_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_pattern_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_pattern_grid.json index 9346120a7..08df7cc29 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_pattern_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_pattern_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_relay.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_relay.json index 48a5e7f03..b00c24eeb 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_relay.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_relay.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_security_manager.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_security_manager.json index 48e4e6b02..99bb7ac43 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_security_manager.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_security_manager.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_wireless_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_wireless_transmitter.json index ddf3e5d0a..ecbabafb3 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_wireless_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/light_gray_wireless_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_cable.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_cable.json index 9585b32c5..7b0c164b7 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_cable.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_cable.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_constructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_constructor.json index 492673796..4cd4cbef9 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_constructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_constructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_controller.json index 1a2782e67..9a1ae5682 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_controller.json @@ -3,6 +3,13 @@ "functions": [ { "function": "refinedstorage:energy" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } ], "pools": [ diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_crafting_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_crafting_grid.json index 57cc8b57c..500445c85 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_crafting_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_crafting_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_creative_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_creative_controller.json index fdd127086..fe43115a0 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_creative_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_creative_controller.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_destructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_destructor.json index 258475a29..aa79f5191 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_destructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_destructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_detector.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_detector.json index b56c8ee45..c1abb84bc 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_detector.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_detector.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_disk_interface.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_disk_interface.json index 50029864d..c2db65b4b 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_disk_interface.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_disk_interface.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_grid.json index e3244476e..f401bfea7 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_network_receiver.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_network_receiver.json index bb87854ee..51b360210 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_network_receiver.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_network_receiver.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_network_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_network_transmitter.json index 98678ab6d..1a691ebc3 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_network_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_network_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_pattern_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_pattern_grid.json index 4c5fd5b37..140079619 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_pattern_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_pattern_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_relay.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_relay.json index 23d4b416b..cd66741f4 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_relay.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_relay.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_security_manager.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_security_manager.json index 5a276b206..935b7cf5d 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_security_manager.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_security_manager.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_wireless_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_wireless_transmitter.json index 7fa08e6be..fb710751d 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_wireless_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/lime_wireless_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_cable.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_cable.json index 4518d8e9c..d55135e83 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_cable.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_cable.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_constructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_constructor.json index b9f46f2f0..82a724338 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_constructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_constructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_controller.json index 220e8f226..5607183c4 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_controller.json @@ -3,6 +3,13 @@ "functions": [ { "function": "refinedstorage:energy" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } ], "pools": [ diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_crafting_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_crafting_grid.json index 213e7070f..c23a6cb7a 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_crafting_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_crafting_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_creative_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_creative_controller.json index 3386023c0..1becc21b3 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_creative_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_creative_controller.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_destructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_destructor.json index 1e14318b7..aa222cef6 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_destructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_destructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_detector.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_detector.json index 75cbfb2df..62f8a6725 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_detector.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_detector.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_disk_interface.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_disk_interface.json index ea4c18868..b5dee629e 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_disk_interface.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_disk_interface.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_grid.json index a3b9967da..cdd717286 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_network_receiver.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_network_receiver.json index 20c7c3fc7..8993c6fc4 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_network_receiver.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_network_receiver.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_network_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_network_transmitter.json index 519cc93c5..50cbf8a5b 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_network_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_network_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_pattern_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_pattern_grid.json index d6da01e5b..ed4785574 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_pattern_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_pattern_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_relay.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_relay.json index 9d5ae07c8..b289f16bf 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_relay.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_relay.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_security_manager.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_security_manager.json index e99c042f4..dc682d150 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_security_manager.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_security_manager.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_wireless_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_wireless_transmitter.json index 98150a16a..1b69f90fd 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_wireless_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/magenta_wireless_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/network_receiver.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/network_receiver.json index a2b0583de..46604ffe0 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/network_receiver.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/network_receiver.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/network_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/network_transmitter.json index 54bd2e7c4..f248db369 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/network_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/network_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_cable.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_cable.json index ec66f74f5..57f8e5760 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_cable.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_cable.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_constructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_constructor.json index 91775c6e6..53b95aaba 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_constructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_constructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_controller.json index bb1c56a6a..1852afc31 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_controller.json @@ -3,6 +3,13 @@ "functions": [ { "function": "refinedstorage:energy" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } ], "pools": [ diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_crafting_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_crafting_grid.json index 2d58ffded..719934716 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_crafting_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_crafting_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_creative_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_creative_controller.json index d3288c66e..bd2050211 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_creative_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_creative_controller.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_destructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_destructor.json index 3316fc948..09d5acb8a 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_destructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_destructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_detector.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_detector.json index f606197b6..38bcb3bd0 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_detector.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_detector.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_disk_interface.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_disk_interface.json index d822a7f76..4fcca5dd7 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_disk_interface.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_disk_interface.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_grid.json index 2f8450762..e748399bf 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_network_receiver.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_network_receiver.json index 06e007fd4..42dd39a14 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_network_receiver.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_network_receiver.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_network_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_network_transmitter.json index 66a257655..ad9f0777e 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_network_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_network_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_pattern_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_pattern_grid.json index 964916d38..d638e5327 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_pattern_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_pattern_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_relay.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_relay.json index b39a4057a..b973a8456 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_relay.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_relay.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_security_manager.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_security_manager.json index d38d3f6ae..8c4dfa5b8 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_security_manager.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_security_manager.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_wireless_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_wireless_transmitter.json index 45ebec51f..2366631ec 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_wireless_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/orange_wireless_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pattern_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pattern_grid.json index f395323e7..18266c1d1 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pattern_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pattern_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_cable.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_cable.json index b64de0634..35bc6f384 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_cable.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_cable.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_constructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_constructor.json index b13ff1611..c44ac8e92 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_constructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_constructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_controller.json index cbbcd5491..92615ed53 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_controller.json @@ -3,6 +3,13 @@ "functions": [ { "function": "refinedstorage:energy" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } ], "pools": [ diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_crafting_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_crafting_grid.json index 56e94f59e..645ff2141 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_crafting_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_crafting_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_creative_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_creative_controller.json index 614cbbfa5..b8487b1f2 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_creative_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_creative_controller.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_destructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_destructor.json index 5372cc420..0d1753e6f 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_destructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_destructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_detector.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_detector.json index cc9ef919e..20b43fba1 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_detector.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_detector.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_disk_interface.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_disk_interface.json index a4d9c7132..07aeba55b 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_disk_interface.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_disk_interface.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_grid.json index 98a1a6cfe..233283357 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_network_receiver.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_network_receiver.json index 524b6f77d..2aaf630a4 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_network_receiver.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_network_receiver.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_network_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_network_transmitter.json index adfe359a8..e52d3b413 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_network_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_network_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_pattern_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_pattern_grid.json index 6bb450999..8581c6794 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_pattern_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_pattern_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_relay.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_relay.json index f6287c8f7..31c251a8f 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_relay.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_relay.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_security_manager.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_security_manager.json index 2b94afa0f..0a00660fd 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_security_manager.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_security_manager.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_wireless_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_wireless_transmitter.json index 732b922c0..fe614b525 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_wireless_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/pink_wireless_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_cable.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_cable.json index a60b36871..0fd1d1728 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_cable.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_cable.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_constructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_constructor.json index cfd9ff8a3..be70f60d9 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_constructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_constructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_controller.json index 312380c02..b46e03507 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_controller.json @@ -3,6 +3,13 @@ "functions": [ { "function": "refinedstorage:energy" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } ], "pools": [ diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_crafting_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_crafting_grid.json index 3c43045fd..4dce9422b 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_crafting_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_crafting_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_creative_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_creative_controller.json index 589ee2382..0e0c21dbd 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_creative_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_creative_controller.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_destructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_destructor.json index 73d247b5a..04f550b5a 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_destructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_destructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_detector.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_detector.json index 4ddd7f527..e02a40a65 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_detector.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_detector.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_disk_interface.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_disk_interface.json index e84dbb325..1e9de3dd5 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_disk_interface.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_disk_interface.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_grid.json index b4682e83f..765f18eef 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_network_receiver.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_network_receiver.json index bec3c2667..4f3c4902b 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_network_receiver.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_network_receiver.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_network_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_network_transmitter.json index 482dfb63e..2ba2217f6 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_network_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_network_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_pattern_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_pattern_grid.json index 42404be9c..1ff9d8b8d 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_pattern_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_pattern_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_relay.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_relay.json index 6b816941d..e843dabe7 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_relay.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_relay.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_security_manager.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_security_manager.json index e15d8cbe6..b99e6affc 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_security_manager.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_security_manager.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_wireless_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_wireless_transmitter.json index dc392f9d6..686d97323 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_wireless_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/purple_wireless_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_cable.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_cable.json index 1ccc97a34..e1eb6ff46 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_cable.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_cable.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_constructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_constructor.json index af687b3fd..514d23cf3 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_constructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_constructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_controller.json index ef8ab7d65..85282ec98 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_controller.json @@ -3,6 +3,13 @@ "functions": [ { "function": "refinedstorage:energy" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } ], "pools": [ diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_crafting_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_crafting_grid.json index 89def9c61..7d7afddbe 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_crafting_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_crafting_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_creative_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_creative_controller.json index 421a8ed51..fe7f36243 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_creative_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_creative_controller.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_destructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_destructor.json index 11226a220..98de66f73 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_destructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_destructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_detector.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_detector.json index 56df24da6..f69cf07ce 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_detector.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_detector.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_disk_interface.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_disk_interface.json index 926cb0bc3..d08717af0 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_disk_interface.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_disk_interface.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_grid.json index c65e393fe..ace9a15e5 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_network_receiver.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_network_receiver.json index 5310dfc53..9807be0d2 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_network_receiver.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_network_receiver.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_network_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_network_transmitter.json index 3355b6793..250ec8938 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_network_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_network_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_pattern_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_pattern_grid.json index 25237dce7..3d3f603dd 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_pattern_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_pattern_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_relay.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_relay.json index af0e1bf53..4ee4693b8 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_relay.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_relay.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_security_manager.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_security_manager.json index dd4ffddcb..596c78385 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_security_manager.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_security_manager.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_wireless_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_wireless_transmitter.json index cb659bbb9..28c8eb932 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_wireless_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/red_wireless_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/relay.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/relay.json index 2c727c13b..3dac491db 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/relay.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/relay.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/security_manager.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/security_manager.json index af5ebe762..837b33925 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/security_manager.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/security_manager.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_cable.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_cable.json index 8a7f09c24..b9fa781aa 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_cable.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_cable.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_constructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_constructor.json index dbe524878..5733edd79 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_constructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_constructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_controller.json index 56638f889..7cd7112ec 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_controller.json @@ -3,6 +3,13 @@ "functions": [ { "function": "refinedstorage:energy" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } ], "pools": [ diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_crafting_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_crafting_grid.json index 166c3a42b..b012f243d 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_crafting_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_crafting_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_creative_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_creative_controller.json index e8168fbc1..7212be8fe 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_creative_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_creative_controller.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_destructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_destructor.json index 806585694..fd99115b1 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_destructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_destructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_detector.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_detector.json index 44c0b1e6f..6932830ef 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_detector.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_detector.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_disk_interface.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_disk_interface.json index 1a39b9de4..307a75fb4 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_disk_interface.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_disk_interface.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_grid.json index 61361a837..bba29ff3a 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_network_receiver.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_network_receiver.json index 101a7f9f5..44ab9953a 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_network_receiver.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_network_receiver.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_network_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_network_transmitter.json index 34a4aeee6..89e7be9bd 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_network_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_network_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_pattern_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_pattern_grid.json index c059207d4..6179b0691 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_pattern_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_pattern_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_relay.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_relay.json index d23e95892..6a1bd2c96 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_relay.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_relay.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_security_manager.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_security_manager.json index 889a472bf..548f2af32 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_security_manager.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_security_manager.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_wireless_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_wireless_transmitter.json index 32a02bb65..bf1e7e4bd 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_wireless_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/white_wireless_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/wireless_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/wireless_transmitter.json index 968302c6f..d5d802148 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/wireless_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/wireless_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_cable.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_cable.json index 8f351c21d..589c38b0e 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_cable.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_cable.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_constructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_constructor.json index f91438fb8..9f4cfd260 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_constructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_constructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_controller.json index e4b17e966..bb51f0369 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_controller.json @@ -3,6 +3,13 @@ "functions": [ { "function": "refinedstorage:energy" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } ], "pools": [ diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_crafting_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_crafting_grid.json index a42021818..a629e836f 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_crafting_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_crafting_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_creative_controller.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_creative_controller.json index b280fb198..0a4585bcf 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_creative_controller.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_creative_controller.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_destructor.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_destructor.json index 473874387..a896c6b55 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_destructor.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_destructor.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_detector.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_detector.json index 4a969ba1e..345761b87 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_detector.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_detector.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_disk_interface.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_disk_interface.json index e67828299..394b00d00 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_disk_interface.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_disk_interface.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_grid.json index beea41b1d..22bfa898b 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_network_receiver.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_network_receiver.json index 1587bc1e1..689aab7fb 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_network_receiver.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_network_receiver.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_network_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_network_transmitter.json index 62262ec75..ff0dd2d84 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_network_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_network_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_pattern_grid.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_pattern_grid.json index d2f5ce5e4..a1f9453a0 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_pattern_grid.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_pattern_grid.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_relay.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_relay.json index ee66221db..7a3e86c0d 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_relay.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_relay.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_security_manager.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_security_manager.json index 621bd69a4..e3077b1c4 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_security_manager.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_security_manager.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_wireless_transmitter.json b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_wireless_transmitter.json index 7ba60d977..02fc5f478 100644 --- a/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_wireless_transmitter.json +++ b/refinedstorage-common/src/generated/resources/data/refinedstorage/loot_table/blocks/yellow_wireless_transmitter.json @@ -1,5 +1,14 @@ { "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "pools": [ { "bonus_rolls": 0.0, diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/autocrafting/PatternGridBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/autocrafting/PatternGridBlockEntity.java index 601aa36e3..6594c0590 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/autocrafting/PatternGridBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/autocrafting/PatternGridBlockEntity.java @@ -215,7 +215,7 @@ void setPatternType(final PatternType patternType) { @Override public Component getDisplayName() { - return ContentNames.PATTERN_GRID; + return getName(ContentNames.PATTERN_GRID); } @Override diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/constructordestructor/ConstructorBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/constructordestructor/ConstructorBlockEntity.java index d27776517..9f7acea16 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/constructordestructor/ConstructorBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/constructordestructor/ConstructorBlockEntity.java @@ -129,7 +129,7 @@ void setDropItems(final boolean dropItems) { @Override public Component getDisplayName() { - return ContentNames.CONSTRUCTOR; + return getName(ContentNames.CONSTRUCTOR); } @Nullable diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/constructordestructor/DestructorBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/constructordestructor/DestructorBlockEntity.java index 0381141d7..40b5c1833 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/constructordestructor/DestructorBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/constructordestructor/DestructorBlockEntity.java @@ -128,7 +128,7 @@ public StreamEncoder getMenuCode @Override public Component getDisplayName() { - return ContentNames.DESTRUCTOR; + return getName(ContentNames.DESTRUCTOR); } @Nullable diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/controller/ControllerBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/controller/ControllerBlockEntity.java index 455822a92..436e74356 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/controller/ControllerBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/controller/ControllerBlockEntity.java @@ -19,6 +19,7 @@ import net.minecraft.nbt.CompoundTag; import net.minecraft.network.RegistryFriendlyByteBuf; import net.minecraft.network.chat.Component; +import net.minecraft.network.chat.MutableComponent; import net.minecraft.network.codec.StreamEncoder; import net.minecraft.world.entity.player.Inventory; import net.minecraft.world.entity.player.Player; @@ -95,7 +96,10 @@ public void loadAdditional(final CompoundTag tag, final HolderLookup.Provider pr @Override public Component getDisplayName() { - return type == ControllerType.CREATIVE ? ContentNames.CREATIVE_CONTROLLER : ContentNames.CONTROLLER; + final MutableComponent defaultName = type == ControllerType.CREATIVE + ? ContentNames.CREATIVE_CONTROLLER + : ContentNames.CONTROLLER; + return getName(defaultName); } @Override diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/detector/DetectorBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/detector/DetectorBlockEntity.java index f3e5606be..f78a38032 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/detector/DetectorBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/detector/DetectorBlockEntity.java @@ -151,7 +151,7 @@ public StreamEncoder getMenuCodec() { @Override public Component getDisplayName() { - return ContentNames.DETECTOR; + return getName(ContentNames.DETECTOR); } @Nullable diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/exporter/ExporterBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/exporter/ExporterBlockEntity.java index f4f69e761..7de0bd47e 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/exporter/ExporterBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/exporter/ExporterBlockEntity.java @@ -80,7 +80,7 @@ protected void setEnergyUsage(final long upgradeEnergyUsage) { @Override public Component getDisplayName() { - return ContentNames.EXPORTER; + return getName(ContentNames.EXPORTER); } @Nullable diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/grid/CraftingGridBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/grid/CraftingGridBlockEntity.java index 1b00ec83d..fd5257c2c 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/grid/CraftingGridBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/grid/CraftingGridBlockEntity.java @@ -75,7 +75,7 @@ public StreamEncoder getMenuCodec() { @Override public Component getDisplayName() { - return ContentNames.CRAFTING_GRID; + return getName(ContentNames.CRAFTING_GRID); } @Override diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/grid/GridBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/grid/GridBlockEntity.java index 4f20e964f..32d2039b2 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/grid/GridBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/grid/GridBlockEntity.java @@ -32,7 +32,7 @@ public StreamEncoder getMenuCodec() { @Override public Component getDisplayName() { - return ContentNames.GRID; + return getName(ContentNames.GRID); } @Override diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/grid/WirelessGridExtendedMenuProvider.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/grid/WirelessGridExtendedMenuProvider.java index f66f2720c..74a8eb3c1 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/grid/WirelessGridExtendedMenuProvider.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/grid/WirelessGridExtendedMenuProvider.java @@ -15,10 +15,17 @@ import net.minecraft.world.inventory.AbstractContainerMenu; class WirelessGridExtendedMenuProvider implements ExtendedMenuProvider { + @Nullable + private final Component name; private final Grid grid; private final SlotReference slotReference; - WirelessGridExtendedMenuProvider(final Grid grid, final SlotReference slotReference) { + WirelessGridExtendedMenuProvider( + @Nullable final Component name, + final Grid grid, + final SlotReference slotReference + ) { + this.name = name; this.grid = grid; this.slotReference = slotReference; } @@ -38,7 +45,7 @@ public StreamEncoder getMenuCodec() { @Override public Component getDisplayName() { - return ContentNames.WIRELESS_GRID; + return name == null ? ContentNames.WIRELESS_GRID : name; } @Nullable diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/grid/WirelessGridItem.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/grid/WirelessGridItem.java index 16f203208..340059e20 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/grid/WirelessGridItem.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/grid/WirelessGridItem.java @@ -12,6 +12,9 @@ import com.refinedmods.refinedstorage.common.content.ContentNames; import com.refinedmods.refinedstorage.common.security.BuiltinPermission; +import javax.annotation.Nullable; + +import net.minecraft.network.chat.Component; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.item.Item; import net.minecraft.world.item.ItemStack; @@ -33,7 +36,8 @@ public EnergyStorage createEnergyStorage(final ItemStack stack) { } @Override - protected void use(final ServerPlayer player, + protected void use(@Nullable final Component name, + final ServerPlayer player, final SlotReference slotReference, final NetworkItemContext context) { final boolean isAllowed = context.resolveNetwork() @@ -44,6 +48,7 @@ protected void use(final ServerPlayer player, return; } final Grid grid = new WirelessGrid(context); - Platform.INSTANCE.getMenuOpener().openMenu(player, new WirelessGridExtendedMenuProvider(grid, slotReference)); + final var provider = new WirelessGridExtendedMenuProvider(name, grid, slotReference); + Platform.INSTANCE.getMenuOpener().openMenu(player, provider); } } diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/iface/InterfaceBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/iface/InterfaceBlockEntity.java index ddb9fde06..f9422b231 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/iface/InterfaceBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/iface/InterfaceBlockEntity.java @@ -173,7 +173,7 @@ public StreamEncoder getMenuCodec() { @Override public Component getDisplayName() { - return ContentNames.INTERFACE; + return getName(ContentNames.INTERFACE); } @Override diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/importer/ImporterBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/importer/ImporterBlockEntity.java index 38ee56e23..d2f922a5c 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/importer/ImporterBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/importer/ImporterBlockEntity.java @@ -138,7 +138,7 @@ public StreamEncoder getMenuCode @Override public Component getDisplayName() { - return ContentNames.IMPORTER; + return getName(ContentNames.IMPORTER); } @Nullable diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/networking/NetworkTransmitterBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/networking/NetworkTransmitterBlockEntity.java index 2235d07e4..131ad3861 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/networking/NetworkTransmitterBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/networking/NetworkTransmitterBlockEntity.java @@ -208,7 +208,7 @@ public StreamEncoder getMenuCod @Override public Component getDisplayName() { - return ContentNames.NETWORK_TRANSMITTER; + return getName(ContentNames.NETWORK_TRANSMITTER); } @Override diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/networking/RelayBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/networking/RelayBlockEntity.java index 6d8ff6b94..cacf099e2 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/networking/RelayBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/networking/RelayBlockEntity.java @@ -203,7 +203,7 @@ public StreamEncoder getMenuCode @Override public Component getDisplayName() { - return ContentNames.RELAY; + return getName(ContentNames.RELAY); } @Nullable diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/networking/WirelessTransmitterBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/networking/WirelessTransmitterBlockEntity.java index fc9803aa0..ebc62600d 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/networking/WirelessTransmitterBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/networking/WirelessTransmitterBlockEntity.java @@ -84,7 +84,7 @@ public boolean addUpgradeItem(final Item upgradeItem) { @Override public Component getDisplayName() { - return ContentNames.WIRELESS_TRANSMITTER; + return getName(ContentNames.WIRELESS_TRANSMITTER); } @Nullable diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/FallbackSecurityCardExtendedMenuProvider.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/FallbackSecurityCardExtendedMenuProvider.java index 6559f4408..9b9bad6f2 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/FallbackSecurityCardExtendedMenuProvider.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/FallbackSecurityCardExtendedMenuProvider.java @@ -16,12 +16,18 @@ import net.minecraft.world.inventory.AbstractContainerMenu; class FallbackSecurityCardExtendedMenuProvider extends AbstractSecurityCardExtendedMenuProvider { + @Nullable + private final Component name; private final SlotReference slotReference; - FallbackSecurityCardExtendedMenuProvider(final SlotReference slotReference, - final SecurityPolicy securityPolicy, - final Set dirtyPermissions) { + FallbackSecurityCardExtendedMenuProvider( + @Nullable final Component name, + final SlotReference slotReference, + final SecurityPolicy securityPolicy, + final Set dirtyPermissions + ) { super(securityPolicy, dirtyPermissions); + this.name = name; this.slotReference = slotReference; } @@ -37,7 +43,7 @@ public StreamEncoder getMenuCodec() { @Override public Component getDisplayName() { - return ContentNames.FALLBACK_SECURITY_CARD; + return name == null ? ContentNames.FALLBACK_SECURITY_CARD : name; } @Nullable diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/FallbackSecurityCardItem.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/FallbackSecurityCardItem.java index 05d452800..dc2438d8b 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/FallbackSecurityCardItem.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/FallbackSecurityCardItem.java @@ -10,6 +10,7 @@ import java.util.Optional; import java.util.Set; +import net.minecraft.core.component.DataComponents; import net.minecraft.network.chat.Component; import net.minecraft.server.MinecraftServer; import net.minecraft.world.inventory.tooltip.TooltipComponent; @@ -33,7 +34,12 @@ AbstractSecurityCardExtendedMenuProvider createMenuProvider( final Set dirtyPermissions, final ItemStack stack ) { - return new FallbackSecurityCardExtendedMenuProvider(slotReference, policy, dirtyPermissions); + return new FallbackSecurityCardExtendedMenuProvider( + stack.get(DataComponents.CUSTOM_NAME), + slotReference, + policy, + dirtyPermissions + ); } @Override diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/SecurityCardExtendedMenuProvider.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/SecurityCardExtendedMenuProvider.java index 20c98b8a3..d79933035 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/SecurityCardExtendedMenuProvider.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/SecurityCardExtendedMenuProvider.java @@ -17,16 +17,22 @@ import net.minecraft.world.inventory.AbstractContainerMenu; class SecurityCardExtendedMenuProvider extends AbstractSecurityCardExtendedMenuProvider { + @Nullable + private final Component name; private final MinecraftServer server; private final SlotReference slotReference; private final SecurityCardBoundPlayer boundPlayer; - SecurityCardExtendedMenuProvider(final MinecraftServer server, - final SlotReference slotReference, - final SecurityPolicy securityPolicy, - final Set dirtyPermissions, - final SecurityCardBoundPlayer boundPlayer) { + SecurityCardExtendedMenuProvider( + @Nullable final Component name, + final MinecraftServer server, + final SlotReference slotReference, + final SecurityPolicy securityPolicy, + final Set dirtyPermissions, + final SecurityCardBoundPlayer boundPlayer + ) { super(securityPolicy, dirtyPermissions); + this.name = name; this.server = server; this.slotReference = slotReference; this.boundPlayer = boundPlayer; @@ -48,7 +54,7 @@ public StreamEncoder getMe @Override public Component getDisplayName() { - return ContentNames.SECURITY_CARD; + return name == null ? ContentNames.SECURITY_CARD : name; } @Nullable diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/SecurityCardItem.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/SecurityCardItem.java index 2feabe88b..cb3c1bba9 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/SecurityCardItem.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/SecurityCardItem.java @@ -78,6 +78,7 @@ AbstractSecurityCardExtendedMenuProvider createMenu final ItemStack stack ) { return new SecurityCardExtendedMenuProvider( + stack.get(net.minecraft.core.component.DataComponents.CUSTOM_NAME), server, slotReference, policy, diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/SecurityManagerBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/SecurityManagerBlockEntity.java index 0efa12921..b546d1bc5 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/SecurityManagerBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/security/SecurityManagerBlockEntity.java @@ -163,7 +163,7 @@ static boolean isValidFallbackSecurityCard(final ItemStack stack) { @Override public Component getDisplayName() { - return ContentNames.SECURITY_MANAGER; + return getName(ContentNames.SECURITY_MANAGER); } @Nullable diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/diskdrive/AbstractDiskDriveBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/diskdrive/AbstractDiskDriveBlockEntity.java index d315ff0e7..1f90f44fa 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/diskdrive/AbstractDiskDriveBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/diskdrive/AbstractDiskDriveBlockEntity.java @@ -64,7 +64,7 @@ public void writeConfiguration(final CompoundTag tag, final HolderLookup.Provide @Override public Component getDisplayName() { - return ContentNames.DISK_DRIVE; + return getName(ContentNames.DISK_DRIVE); } @Override diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/diskinterface/AbstractDiskInterfaceBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/diskinterface/AbstractDiskInterfaceBlockEntity.java index 29e6cada4..666161d25 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/diskinterface/AbstractDiskInterfaceBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/diskinterface/AbstractDiskInterfaceBlockEntity.java @@ -137,7 +137,7 @@ public boolean addUpgradeItem(final Item upgradeItem) { @Override public Component getDisplayName() { - return ContentNames.DISK_INTERFACE; + return getName(ContentNames.DISK_INTERFACE); } @Override diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/externalstorage/ExternalStorageBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/externalstorage/ExternalStorageBlockEntity.java index 580c8ea61..0ff1d8cdc 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/externalstorage/ExternalStorageBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/externalstorage/ExternalStorageBlockEntity.java @@ -157,7 +157,7 @@ public StreamEncoder getMenuCode @Override public Component getDisplayName() { - return ContentNames.EXTERNAL_STORAGE; + return getName(ContentNames.EXTERNAL_STORAGE); } @Nullable diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/portablegrid/AbstractPortableGridBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/portablegrid/AbstractPortableGridBlockEntity.java index b00adf832..1e406e393 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/portablegrid/AbstractPortableGridBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/portablegrid/AbstractPortableGridBlockEntity.java @@ -29,6 +29,8 @@ import com.google.common.util.concurrent.RateLimiter; import net.minecraft.core.BlockPos; import net.minecraft.core.HolderLookup; +import net.minecraft.core.component.DataComponentMap; +import net.minecraft.core.component.DataComponents; import net.minecraft.nbt.CompoundTag; import net.minecraft.nbt.Tag; import net.minecraft.network.RegistryFriendlyByteBuf; @@ -55,9 +57,12 @@ public abstract class AbstractPortableGridBlockEntity extends BlockEntity private static final String TAG_DISK_INVENTORY = "inv"; private static final String TAG_DISKS = "disks"; private static final String TAG_REDSTONE_MODE = "rm"; + private static final String TAG_CUSTOM_NAME = "CustomName"; @Nullable protected Disk disk; + @Nullable + private Component name; private final DiskInventory diskInventory; private final DiskStateChangeListener diskStateListener = new DiskStateChangeListener(this); @@ -169,6 +174,9 @@ public void readConfiguration(final CompoundTag tag, final HolderLookup.Provider if (tag.contains(TAG_REDSTONE_MODE)) { redstoneMode = RedstoneModeSettings.getRedstoneMode(tag.getInt(TAG_REDSTONE_MODE)); } + if (tag.contains(TAG_CUSTOM_NAME, Tag.TAG_STRING)) { + this.name = parseCustomNameSafe(tag.getString(TAG_CUSTOM_NAME), provider); + } } private void fromClientTag(final CompoundTag tag) { @@ -194,6 +202,21 @@ public void saveAdditional(final CompoundTag tag, final HolderLookup.Provider pr @Override public void writeConfiguration(final CompoundTag tag, final HolderLookup.Provider provider) { tag.putInt(TAG_REDSTONE_MODE, RedstoneModeSettings.getRedstoneMode(redstoneMode)); + if (name != null) { + tag.putString(TAG_CUSTOM_NAME, Component.Serializer.toJson(name, provider)); + } + } + + @Override + protected void applyImplicitComponents(final BlockEntity.DataComponentInput componentInput) { + super.applyImplicitComponents(componentInput); + this.name = componentInput.get(DataComponents.CUSTOM_NAME); + } + + @Override + protected void collectImplicitComponents(final DataComponentMap.Builder components) { + super.collectImplicitComponents(components); + components.set(DataComponents.CUSTOM_NAME, name); } @Override @@ -219,7 +242,7 @@ public void setRedstoneMode(final RedstoneMode redstoneMode) { @Override public Component getDisplayName() { - return ContentNames.PORTABLE_GRID; + return name == null ? ContentNames.PORTABLE_GRID : name; } @Override diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/portablegrid/PortableGridBlockItem.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/portablegrid/PortableGridBlockItem.java index 5ce20f07b..3c0bd225a 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/portablegrid/PortableGridBlockItem.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/portablegrid/PortableGridBlockItem.java @@ -139,6 +139,7 @@ public void use(final ServerPlayer player, final ItemStack stack, final SlotRefe energyStorage.portableGrid = portableGrid; portableGrid.updateStorage(); Platform.INSTANCE.getMenuOpener().openMenu(player, new PortableGridItemExtendedMenuProvider( + stack.get(DataComponents.CUSTOM_NAME), portableGrid, energyStorage, diskInventory, diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/portablegrid/PortableGridItemExtendedMenuProvider.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/portablegrid/PortableGridItemExtendedMenuProvider.java index 362cb3939..89f6c70d7 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/portablegrid/PortableGridItemExtendedMenuProvider.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/portablegrid/PortableGridItemExtendedMenuProvider.java @@ -20,15 +20,21 @@ import net.minecraft.world.inventory.AbstractContainerMenu; class PortableGridItemExtendedMenuProvider implements ExtendedMenuProvider { + @Nullable + private final Component name; private final Grid grid; private final EnergyStorage energyStorage; private final DiskInventory diskInventory; private final SlotReference slotReference; - PortableGridItemExtendedMenuProvider(final Grid grid, - final EnergyStorage energyStorage, - final DiskInventory diskInventory, - final SlotReference slotReference) { + PortableGridItemExtendedMenuProvider( + @Nullable final Component name, + final Grid grid, + final EnergyStorage energyStorage, + final DiskInventory diskInventory, + final SlotReference slotReference + ) { + this.name = name; this.grid = grid; this.energyStorage = energyStorage; this.diskInventory = diskInventory; @@ -52,7 +58,7 @@ public StreamEncoder getMenuCodec() { @Override public Component getDisplayName() { - return ContentNames.PORTABLE_GRID; + return name == null ? ContentNames.PORTABLE_GRID : name; } @Nullable diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/storageblock/FluidStorageBlockBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/storageblock/FluidStorageBlockBlockEntity.java index 68cb63b5c..33034dbf4 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/storageblock/FluidStorageBlockBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/storageblock/FluidStorageBlockBlockEntity.java @@ -55,7 +55,7 @@ protected SerializableStorage createStorage(final Runnable listener) { @Override public Component getDisplayName() { - return displayName; + return getName(displayName); } @Override diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/storageblock/ItemStorageBlockBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/storageblock/ItemStorageBlockBlockEntity.java index 55409495d..8f6147b83 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/storageblock/ItemStorageBlockBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storage/storageblock/ItemStorageBlockBlockEntity.java @@ -51,7 +51,7 @@ protected SerializableStorage createStorage(final Runnable listener) { @Override public Component getDisplayName() { - return displayName; + return getName(displayName); } @Override diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storagemonitor/StorageMonitorBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storagemonitor/StorageMonitorBlockEntity.java index 052685ee9..3d7d2700b 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storagemonitor/StorageMonitorBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/storagemonitor/StorageMonitorBlockEntity.java @@ -295,7 +295,7 @@ public StreamEncoder getMenuCode @Override public Component getDisplayName() { - return ContentNames.STORAGE_MONITOR; + return getName(ContentNames.STORAGE_MONITOR); } @Nullable diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/support/network/AbstractRedstoneModeNetworkNodeContainerBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/support/network/AbstractRedstoneModeNetworkNodeContainerBlockEntity.java index 10a83f4e3..941729598 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/support/network/AbstractRedstoneModeNetworkNodeContainerBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/support/network/AbstractRedstoneModeNetworkNodeContainerBlockEntity.java @@ -2,7 +2,6 @@ import com.refinedmods.refinedstorage.api.network.impl.node.AbstractNetworkNode; import com.refinedmods.refinedstorage.common.Platform; -import com.refinedmods.refinedstorage.common.api.configurationcard.ConfigurationCardTarget; import com.refinedmods.refinedstorage.common.support.PlayerAwareBlockEntity; import com.refinedmods.refinedstorage.common.support.RedstoneMode; import com.refinedmods.refinedstorage.common.support.RedstoneModeSettings; @@ -20,7 +19,7 @@ import net.minecraft.world.level.block.state.BlockState; public abstract class AbstractRedstoneModeNetworkNodeContainerBlockEntity - extends BaseNetworkNodeContainerBlockEntity implements PlayerAwareBlockEntity, ConfigurationCardTarget { + extends BaseNetworkNodeContainerBlockEntity implements PlayerAwareBlockEntity { private static final String TAG_REDSTONE_MODE = "rm"; private static final String TAG_PLACED_BY_PLAYER_ID = "pbpid"; @@ -45,7 +44,6 @@ protected boolean calculateActive() { @Override public void saveAdditional(final CompoundTag tag, final HolderLookup.Provider provider) { super.saveAdditional(tag, provider); - writeConfiguration(tag, provider); if (placedByPlayerId != null) { tag.putUUID(TAG_PLACED_BY_PLAYER_ID, placedByPlayerId); } @@ -53,13 +51,13 @@ public void saveAdditional(final CompoundTag tag, final HolderLookup.Provider pr @Override public void writeConfiguration(final CompoundTag tag, final HolderLookup.Provider provider) { + super.writeConfiguration(tag, provider); tag.putInt(TAG_REDSTONE_MODE, RedstoneModeSettings.getRedstoneMode(getRedstoneMode())); } @Override public void loadAdditional(final CompoundTag tag, final HolderLookup.Provider provider) { super.loadAdditional(tag, provider); - readConfiguration(tag, provider); if (tag.hasUUID(TAG_PLACED_BY_PLAYER_ID)) { placedByPlayerId = tag.getUUID(TAG_PLACED_BY_PLAYER_ID); } @@ -67,6 +65,7 @@ public void loadAdditional(final CompoundTag tag, final HolderLookup.Provider pr @Override public void readConfiguration(final CompoundTag tag, final HolderLookup.Provider provider) { + super.readConfiguration(tag, provider); if (tag.contains(TAG_REDSTONE_MODE)) { redstoneMode = RedstoneModeSettings.getRedstoneMode(tag.getInt(TAG_REDSTONE_MODE)); } diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/support/network/BaseNetworkNodeContainerBlockEntity.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/support/network/BaseNetworkNodeContainerBlockEntity.java index 1149a0177..b58d133d1 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/support/network/BaseNetworkNodeContainerBlockEntity.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/support/network/BaseNetworkNodeContainerBlockEntity.java @@ -4,6 +4,7 @@ import com.refinedmods.refinedstorage.api.network.energy.EnergyNetworkComponent; import com.refinedmods.refinedstorage.api.network.impl.node.AbstractNetworkNode; import com.refinedmods.refinedstorage.common.api.RefinedStorageApi; +import com.refinedmods.refinedstorage.common.api.configurationcard.ConfigurationCardTarget; import com.refinedmods.refinedstorage.common.api.support.network.AbstractNetworkNodeContainerBlockEntity; import com.refinedmods.refinedstorage.common.api.support.network.InWorldNetworkNodeContainer; import com.refinedmods.refinedstorage.common.api.support.network.item.NetworkItemTargetBlockEntity; @@ -12,6 +13,13 @@ import com.google.common.util.concurrent.RateLimiter; import net.minecraft.core.BlockPos; +import net.minecraft.core.HolderLookup; +import net.minecraft.core.component.DataComponentMap; +import net.minecraft.core.component.DataComponents; +import net.minecraft.nbt.CompoundTag; +import net.minecraft.nbt.Tag; +import net.minecraft.network.chat.Component; +import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraft.world.level.block.entity.BlockEntityType; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.block.state.properties.BooleanProperty; @@ -19,11 +27,16 @@ import org.slf4j.LoggerFactory; public class BaseNetworkNodeContainerBlockEntity - extends AbstractNetworkNodeContainerBlockEntity implements NetworkItemTargetBlockEntity { + extends AbstractNetworkNodeContainerBlockEntity + implements NetworkItemTargetBlockEntity, ConfigurationCardTarget { + private static final String TAG_CUSTOM_NAME = "CustomName"; private static final Logger LOGGER = LoggerFactory.getLogger(BaseNetworkNodeContainerBlockEntity.class); private final RateLimiter activenessChangeRateLimiter = RateLimiter.create(1); + @Nullable + private Component name; + public BaseNetworkNodeContainerBlockEntity(final BlockEntityType type, final BlockPos pos, final BlockState state, @@ -113,4 +126,46 @@ public void setBlockState(final BlockState newBlockState) { public Network getNetworkForItem() { return mainNetworkNode.getNetwork(); } + + @Override + public void saveAdditional(final CompoundTag tag, final HolderLookup.Provider provider) { + super.saveAdditional(tag, provider); + writeConfiguration(tag, provider); + } + + @Override + public void loadAdditional(final CompoundTag tag, final HolderLookup.Provider provider) { + super.loadAdditional(tag, provider); + readConfiguration(tag, provider); + } + + @Override + public void writeConfiguration(final CompoundTag tag, final HolderLookup.Provider provider) { + if (name != null) { + tag.putString(TAG_CUSTOM_NAME, Component.Serializer.toJson(name, provider)); + } + } + + @Override + public void readConfiguration(final CompoundTag tag, final HolderLookup.Provider provider) { + if (tag.contains(TAG_CUSTOM_NAME, Tag.TAG_STRING)) { + this.name = parseCustomNameSafe(tag.getString(TAG_CUSTOM_NAME), provider); + } + } + + @Override + protected void applyImplicitComponents(final BlockEntity.DataComponentInput componentInput) { + super.applyImplicitComponents(componentInput); + this.name = componentInput.get(DataComponents.CUSTOM_NAME); + } + + @Override + protected void collectImplicitComponents(final DataComponentMap.Builder components) { + super.collectImplicitComponents(components); + components.set(DataComponents.CUSTOM_NAME, name); + } + + protected final Component getName(final Component defaultName) { + return name == null ? defaultName : name; + } } diff --git a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/upgrade/RegulatorUpgradeItem.java b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/upgrade/RegulatorUpgradeItem.java index 8f93f191f..64987928b 100644 --- a/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/upgrade/RegulatorUpgradeItem.java +++ b/refinedstorage-common/src/main/java/com/refinedmods/refinedstorage/common/upgrade/RegulatorUpgradeItem.java @@ -53,6 +53,7 @@ public InteractionResultHolder use(final Level level, final Player pl RegulatorUpgradeState.EMPTY ); Platform.INSTANCE.getMenuOpener().openMenu(serverPlayer, new ExtendedMenuProviderImpl( + stack.get(net.minecraft.core.component.DataComponents.CUSTOM_NAME), createResourceFilterContainer(stack, initialState), initialState.amount(), newAmount -> setAmount(stack, newAmount), @@ -130,7 +131,8 @@ public record RegulatorTooltipComponent(Component helpText, @Nullable ResourceAm implements TooltipComponent { } - private record ExtendedMenuProviderImpl(ResourceContainer resourceContainer, + private record ExtendedMenuProviderImpl(@Nullable Component name, + ResourceContainer resourceContainer, double amount, Consumer amountAcceptor, SlotReference slotReference) @@ -151,7 +153,7 @@ public StreamEncoder getMenuCodec() { @Override public Component getDisplayName() { - return ContentNames.REGULATOR_UPGRADE; + return name == null ? ContentNames.REGULATOR_UPGRADE : name; } @Override diff --git a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/1024b_fluid_storage_block.json b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/1024b_fluid_storage_block.json index e1249ca23..ff654b764 100644 --- a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/1024b_fluid_storage_block.json +++ b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/1024b_fluid_storage_block.json @@ -6,12 +6,19 @@ "entries": [ { "type": "minecraft:item", - "name": "refinedstorage:1024b_fluid_storage_block", "functions": [ { "function": "refinedstorage:storage_block" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } - ] + ], + "name": "refinedstorage:1024b_fluid_storage_block" } ] } diff --git a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/16k_storage_block.json b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/16k_storage_block.json index f1382ec5f..2d2244772 100644 --- a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/16k_storage_block.json +++ b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/16k_storage_block.json @@ -6,13 +6,20 @@ "entries": [ { "type": "minecraft:item", + "functions": [ + { + "function": "refinedstorage:storage_block" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "name": "refinedstorage:16k_storage_block" } - ], - "functions": [ - { - "function": "refinedstorage:storage_block" - } ] } ] diff --git a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/1k_storage_block.json b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/1k_storage_block.json index a29c5192d..108660613 100644 --- a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/1k_storage_block.json +++ b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/1k_storage_block.json @@ -6,13 +6,20 @@ "entries": [ { "type": "minecraft:item", + "functions": [ + { + "function": "refinedstorage:storage_block" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "name": "refinedstorage:1k_storage_block" } - ], - "functions": [ - { - "function": "refinedstorage:storage_block" - } ] } ] diff --git a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/256b_fluid_storage_block.json b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/256b_fluid_storage_block.json index a5424a30f..1dc789be1 100644 --- a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/256b_fluid_storage_block.json +++ b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/256b_fluid_storage_block.json @@ -6,12 +6,19 @@ "entries": [ { "type": "minecraft:item", - "name": "refinedstorage:256b_fluid_storage_block", "functions": [ { "function": "refinedstorage:storage_block" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } - ] + ], + "name": "refinedstorage:256b_fluid_storage_block" } ] } diff --git a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/4096b_fluid_storage_block.json b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/4096b_fluid_storage_block.json index 2ff734543..37f043124 100644 --- a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/4096b_fluid_storage_block.json +++ b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/4096b_fluid_storage_block.json @@ -6,12 +6,19 @@ "entries": [ { "type": "minecraft:item", - "name": "refinedstorage:4096b_fluid_storage_block", "functions": [ { "function": "refinedstorage:storage_block" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } - ] + ], + "name": "refinedstorage:4096b_fluid_storage_block" } ] } diff --git a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/4k_storage_block.json b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/4k_storage_block.json index c30f61de3..d11a6a1ce 100644 --- a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/4k_storage_block.json +++ b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/4k_storage_block.json @@ -6,13 +6,20 @@ "entries": [ { "type": "minecraft:item", + "functions": [ + { + "function": "refinedstorage:storage_block" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "name": "refinedstorage:4k_storage_block" } - ], - "functions": [ - { - "function": "refinedstorage:storage_block" - } ] } ] diff --git a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/64b_fluid_storage_block.json b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/64b_fluid_storage_block.json index 3912817f5..d66c49028 100644 --- a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/64b_fluid_storage_block.json +++ b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/64b_fluid_storage_block.json @@ -6,12 +6,19 @@ "entries": [ { "type": "minecraft:item", - "name": "refinedstorage:64b_fluid_storage_block", "functions": [ { "function": "refinedstorage:storage_block" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } - ] + ], + "name": "refinedstorage:64b_fluid_storage_block" } ] } diff --git a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/64k_storage_block.json b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/64k_storage_block.json index aa8bbd677..2933388f5 100644 --- a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/64k_storage_block.json +++ b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/64k_storage_block.json @@ -6,13 +6,20 @@ "entries": [ { "type": "minecraft:item", + "functions": [ + { + "function": "refinedstorage:storage_block" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "name": "refinedstorage:64k_storage_block" } - ], - "functions": [ - { - "function": "refinedstorage:storage_block" - } ] } ] diff --git a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/creative_fluid_storage_block.json b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/creative_fluid_storage_block.json index 829e9de35..821d302aa 100644 --- a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/creative_fluid_storage_block.json +++ b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/creative_fluid_storage_block.json @@ -6,12 +6,19 @@ "entries": [ { "type": "minecraft:item", - "name": "refinedstorage:creative_fluid_storage_block", "functions": [ { "function": "refinedstorage:storage_block" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } - ] + ], + "name": "refinedstorage:creative_fluid_storage_block" } ] } diff --git a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/creative_portable_grid.json b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/creative_portable_grid.json index 8847a0627..522276677 100644 --- a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/creative_portable_grid.json +++ b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/creative_portable_grid.json @@ -6,12 +6,19 @@ "entries": [ { "type": "minecraft:item", - "name": "refinedstorage:creative_portable_grid", "functions": [ { "function": "refinedstorage:portable_grid" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } - ] + ], + "name": "refinedstorage:creative_portable_grid" } ] } diff --git a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/creative_storage_block.json b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/creative_storage_block.json index 1472b7692..f0a6e5c36 100644 --- a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/creative_storage_block.json +++ b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/creative_storage_block.json @@ -6,6 +6,15 @@ "entries": [ { "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "name": "refinedstorage:creative_storage_block" } ], diff --git a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/disk_drive.json b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/disk_drive.json index 99c8c6f34..36e190a89 100644 --- a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/disk_drive.json +++ b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/disk_drive.json @@ -6,6 +6,15 @@ "entries": [ { "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "name": "refinedstorage:disk_drive" } ], diff --git a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/exporter.json b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/exporter.json index b27651dc7..dd36f78e9 100644 --- a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/exporter.json +++ b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/exporter.json @@ -6,6 +6,15 @@ "entries": [ { "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "name": "refinedstorage:exporter" } ], diff --git a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/external_storage.json b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/external_storage.json index 3b8bb9058..51ba468e4 100644 --- a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/external_storage.json +++ b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/external_storage.json @@ -6,6 +6,15 @@ "entries": [ { "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "name": "refinedstorage:external_storage" } ], diff --git a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/importer.json b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/importer.json index 0b7e38e4f..ed6ba2686 100644 --- a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/importer.json +++ b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/importer.json @@ -6,6 +6,15 @@ "entries": [ { "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "name": "refinedstorage:importer" } ], diff --git a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/interface.json b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/interface.json index 123a5f704..b87c07cbd 100644 --- a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/interface.json +++ b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/interface.json @@ -6,6 +6,15 @@ "entries": [ { "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "name": "refinedstorage:interface" } ], diff --git a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/portable_grid.json b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/portable_grid.json index 3970f8e98..83b268878 100644 --- a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/portable_grid.json +++ b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/portable_grid.json @@ -6,12 +6,19 @@ "entries": [ { "type": "minecraft:item", - "name": "refinedstorage:portable_grid", "functions": [ { "function": "refinedstorage:portable_grid" + }, + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" } - ] + ], + "name": "refinedstorage:portable_grid" } ] } diff --git a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/storage_monitor.json b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/storage_monitor.json index 6e79b8f3c..2d589a4bb 100644 --- a/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/storage_monitor.json +++ b/refinedstorage-common/src/main/resources/data/refinedstorage/loot_table/blocks/storage_monitor.json @@ -6,6 +6,15 @@ "entries": [ { "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:copy_components", + "include": [ + "minecraft:custom_name" + ], + "source": "block_entity" + } + ], "name": "refinedstorage:storage_monitor" } ], diff --git a/refinedstorage-neoforge/src/main/java/com/refinedmods/refinedstorage/neoforge/datagen/loot/BlockDropProvider.java b/refinedstorage-neoforge/src/main/java/com/refinedmods/refinedstorage/neoforge/datagen/loot/BlockDropProvider.java index 801c31c73..ebff81162 100644 --- a/refinedstorage-neoforge/src/main/java/com/refinedmods/refinedstorage/neoforge/datagen/loot/BlockDropProvider.java +++ b/refinedstorage-neoforge/src/main/java/com/refinedmods/refinedstorage/neoforge/datagen/loot/BlockDropProvider.java @@ -8,9 +8,11 @@ import java.util.Set; import net.minecraft.core.HolderLookup; +import net.minecraft.core.component.DataComponents; import net.minecraft.data.loot.BlockLootSubProvider; import net.minecraft.world.flag.FeatureFlags; import net.minecraft.world.level.block.Block; +import net.minecraft.world.level.storage.loot.functions.CopyComponentsFunction; public class BlockDropProvider extends BlockLootSubProvider { public BlockDropProvider(final HolderLookup.Provider provider) { @@ -19,24 +21,36 @@ public BlockDropProvider(final HolderLookup.Provider provider) { @Override protected void generate() { - Blocks.INSTANCE.getCable().forEach((color, id, block) -> dropSelf(block.get())); - Blocks.INSTANCE.getGrid().forEach((color, id, block) -> dropSelf(block.get())); - Blocks.INSTANCE.getCraftingGrid().forEach((color, id, block) -> dropSelf(block.get())); - Blocks.INSTANCE.getPatternGrid().forEach((color, id, block) -> dropSelf(block.get())); + Blocks.INSTANCE.getCable().forEach((color, id, block) -> drop(block.get())); + Blocks.INSTANCE.getGrid().forEach((color, id, block) -> drop(block.get())); + Blocks.INSTANCE.getCraftingGrid().forEach((color, id, block) -> drop(block.get())); + Blocks.INSTANCE.getPatternGrid().forEach((color, id, block) -> drop(block.get())); Blocks.INSTANCE.getController().forEach((color, id, block) -> add( block.get(), - createSingleItemTable(block.get()).apply(EnergyLootItemFunction::new) + createSingleItemTable(block.get()) + .apply(EnergyLootItemFunction::new) + .apply(copyName()) )); - Blocks.INSTANCE.getCreativeController().forEach((color, id, block) -> dropSelf(block.get())); - Blocks.INSTANCE.getDetector().forEach((color, id, block) -> dropSelf(block.get())); - Blocks.INSTANCE.getConstructor().forEach((color, id, block) -> dropSelf(block.get())); - Blocks.INSTANCE.getDestructor().forEach((color, id, block) -> dropSelf(block.get())); - Blocks.INSTANCE.getWirelessTransmitter().forEach((color, id, block) -> dropSelf(block.get())); - Blocks.INSTANCE.getNetworkReceiver().forEach((color, id, block) -> dropSelf(block.get())); - Blocks.INSTANCE.getNetworkTransmitter().forEach((color, id, block) -> dropSelf(block.get())); - Blocks.INSTANCE.getSecurityManager().forEach((color, id, block) -> dropSelf(block.get())); - Blocks.INSTANCE.getRelay().forEach((color, id, block) -> dropSelf(block.get())); - Blocks.INSTANCE.getDiskInterface().forEach((color, id, block) -> dropSelf(block.get())); + Blocks.INSTANCE.getCreativeController().forEach((color, id, block) -> drop(block.get())); + Blocks.INSTANCE.getDetector().forEach((color, id, block) -> drop(block.get())); + Blocks.INSTANCE.getConstructor().forEach((color, id, block) -> drop(block.get())); + Blocks.INSTANCE.getDestructor().forEach((color, id, block) -> drop(block.get())); + Blocks.INSTANCE.getWirelessTransmitter().forEach((color, id, block) -> drop(block.get())); + Blocks.INSTANCE.getNetworkReceiver().forEach((color, id, block) -> drop(block.get())); + Blocks.INSTANCE.getNetworkTransmitter().forEach((color, id, block) -> drop(block.get())); + Blocks.INSTANCE.getSecurityManager().forEach((color, id, block) -> drop(block.get())); + Blocks.INSTANCE.getRelay().forEach((color, id, block) -> drop(block.get())); + Blocks.INSTANCE.getDiskInterface().forEach((color, id, block) -> drop(block.get())); + } + + private void drop(final Block block) { + add(block, createSingleItemTable(block) + .apply(copyName())); + } + + private static CopyComponentsFunction.Builder copyName() { + return CopyComponentsFunction.copyComponents(CopyComponentsFunction.Source.BLOCK_ENTITY) + .include(DataComponents.CUSTOM_NAME); } @Override