Skip to content

Commit a7c5984

Browse files
committed
Merge branch 'dev/0.8' into feat/keyboard
# Conflicts: # build.gradle # src/generated/resources/.cache/67cce32b1c3cbbcb1f646605f4914e3f196986c2 # src/generated/resources/.cache/c622617f6fabf890a00b9275cd5f643584a8a2c8 # src/generated/resources/assets/advancedperipherals/lang/en_us.json # src/main/java/de/srendi/advancedperipherals/common/data/EnUsLanguageProvider.java # src/main/java/de/srendi/advancedperipherals/common/setup/APItems.java
2 parents 5e439b9 + c2907bb commit a7c5984

39 files changed

Lines changed: 495 additions & 260 deletions

build.gradle

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,14 @@ dependencies {
324324
compileOnly fg.deobf("com.ldtteam:domum_ornamentum:${domumornamentum_version}:universal")
325325
compileOnly fg.deobf("com.ldtteam:blockui:${blockui_version}")
326326
// IMPORTANT. This should be removed/commented when running `runData`
327-
/*runtimeOnly fg.deobf("com.ldtteam:minecolonies:${minecolonies_version}")
328-
runtimeOnly fg.deobf("com.ldtteam:structurize:${structurize_version}")
329-
runtimeOnly fg.deobf("com.ldtteam:multipiston:${multipiston_version}")
330-
runtimeOnly fg.deobf("com.ldtteam:domum_ornamentum:${domumornamentum_version}:universal")
331-
runtimeOnly fg.deobf("com.ldtteam:blockui:${blockui_version}")
332-
*/
327+
// Automated now, tho if you are not executing runData directly it's no help
328+
if (!project.gradle.startParameter.taskNames.contains("runData")) {
329+
runtimeOnly fg.deobf("com.ldtteam:minecolonies:${minecolonies_version}")
330+
runtimeOnly fg.deobf("com.ldtteam:structurize:${structurize_version}")
331+
runtimeOnly fg.deobf("com.ldtteam:multipiston:${multipiston_version}")
332+
runtimeOnly fg.deobf("com.ldtteam:domum_ornamentum:${domumornamentum_version}:universal")
333+
runtimeOnly fg.deobf("com.ldtteam:blockui:${blockui_version}")
334+
}
333335

334336
// Patchouli
335337
compileOnly fg.deobf("vazkii.patchouli:Patchouli:${patchouli_version}")
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// 1.19.2 2024-09-25T15:15:12.3008086 Languages: en_us
2-
c5dde7701295d5ad506663dba947865df73d753c assets/advancedperipherals/lang/en_us.json
1+
// 1.19.2 2025-01-16T15:59:34.693839 Languages: en_us
2+
d0fe3ab5a88d6b925369860038c76f23d9910143 assets/advancedperipherals/lang/en_us.json
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// 1.19.2 2024-05-28T14:53:16.656337 Block tags
1+
// 1.19.2 2025-01-16T15:46:41.859383 Block tags
22
e1f71dcb4f9e7e36e29b0ad09d6520dc3adfa4a6 data/forge/tags/blocks/needs_wood_tool.json
3-
ef4684e10e5054e8cfd515dffa4a98169d281078 data/minecraft/tags/blocks/mineable/pickaxe.json
4-
8de9358ffeaa8d5f015774f70244a93b915427b8 data/minecraft/tags/blocks/needs_iron_tool.json
3+
03322cd493601129eaad6ba7c2a6d808023dfac1 data/minecraft/tags/blocks/mineable/pickaxe.json
4+
277fe59db076a3eab3c97080531ad345f8ca5f3d data/minecraft/tags/blocks/needs_iron_tool.json

src/generated/resources/assets/advancedperipherals/lang/en_us.json

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
"advancedperipherals.name": "Advanced Peripherals",
33
"advancements.advancedperipherals.base_toolkit": "Gentleman's set!",
44
"advancements.advancedperipherals.base_toolkit.description": "Collect a redstone integrator, inventory manager and energy detector. How did you even play without this?",
5-
"advancements.advancedperipherals.end_automata_core": "End automata core",
5+
"advancements.advancedperipherals.end_automata_core": "End Automata Core",
66
"advancements.advancedperipherals.end_automata_core.description": "If you can code gps-free position location with this, you're a powerful human being",
7-
"advancements.advancedperipherals.husbandry_automata_core": "Husbandry automata core",
7+
"advancements.advancedperipherals.husbandry_automata_core": "Husbandry Automata Core",
88
"advancements.advancedperipherals.husbandry_automata_core.description": "Is this core gluten-free?",
99
"advancements.advancedperipherals.nbt_toolkit": "No secrets",
1010
"advancements.advancedperipherals.nbt_toolkit.description": "Collect a NBT storage and block reader. Now, all the world's secrets are open to you!",
11-
"advancements.advancedperipherals.overpowered_automata_core": "Overpowered automata core",
11+
"advancements.advancedperipherals.overpowered_automata_core": "Overpowered Automata Core",
1212
"advancements.advancedperipherals.overpowered_automata_core.description": "Can you handle so much power?",
1313
"advancements.advancedperipherals.root": "Advanced Peripherals",
1414
"advancements.advancedperipherals.root.description": "Every journey starts with the first block",
1515
"advancements.advancedperipherals.sense_toolkit": "The truth can't hide forever",
1616
"advancements.advancedperipherals.sense_toolkit.description": "Collect a geo scanner and environmental detector. There are no limits for observability!",
17-
"advancements.advancedperipherals.weak_automata_core": "First automata core",
17+
"advancements.advancedperipherals.weak_automata_core": "First Automata Core",
1818
"advancements.advancedperipherals.weak_automata_core.description": "Does the afterlife exist in minecraft?",
1919
"block.advancedperipherals.block_reader": "Block Reader",
2020
"block.advancedperipherals.chat_box": "Chat Box",
@@ -33,13 +33,12 @@
3333
"block.advancedperipherals.redstone_integrator": "Redstone Integrator",
3434
"block.advancedperipherals.rs_bridge": "RS Bridge",
3535
"curios.identifier.glasses": "Glasses",
36-
"entity.minecraft.villager.advancedperipherals.advancedperipherals:computer_scientist": "Computer Scientist",
36+
"entity.minecraft.villager.advancedperipherals.computer_scientist": "Computer Scientist",
3737
"item.advancedperipherals.chunk_controller": "Chunk Controller",
3838
"item.advancedperipherals.computer_tool": "Computer Tool",
3939
"item.advancedperipherals.end_automata_core": "End Automata Core",
4040
"item.advancedperipherals.hotkey_module": "Hotkey Module",
4141
"item.advancedperipherals.husbandry_automata_core": "Husbandry Automata Core",
42-
"item.advancedperipherals.keyboard": "Keyboard",
4342
"item.advancedperipherals.memory_card": "Memory Card",
4443
"item.advancedperipherals.nightvision_module": "Night Vision Module",
4544
"item.advancedperipherals.overlay_module": "Overlay Module",
@@ -49,8 +48,6 @@
4948
"item.advancedperipherals.smart_glasses": "Smart Glasses",
5049
"item.advancedperipherals.smart_glasses_interface": "Smart Glasses Interface",
5150
"item.advancedperipherals.smart_glasses_netherite": "Netherite reinforced Smart Glasses",
52-
"item.advancedperipherals.tooltip.binding.bound_to": "&7Bound to &b%s&7.",
53-
"item.advancedperipherals.tooltip.binding.bound_to_glasses": "&7Bound to Smart Glasses with Id &b%s&7.",
5451
"item.advancedperipherals.tooltip.block_reader": "&7Reads nbt data of blocks to interact with blocks which do not have computer support.",
5552
"item.advancedperipherals.tooltip.chat_box": "&7Interacts with the ingame chat, can read and write messages.",
5653
"item.advancedperipherals.tooltip.chunk_controller": "&7A crafting ingredient for the Chunky Turtle.",
@@ -63,14 +60,14 @@
6360
"item.advancedperipherals.tooltip.geo_scanner": "&7Scans the area around it to find some shiny ores.",
6461
"item.advancedperipherals.tooltip.husbandry_automata_core": "&7Upgrade for turtles, that allows basic and advanced interactions with animals.",
6562
"item.advancedperipherals.tooltip.inventory_manager": "&7This block is able to send or receive specific items from a player inventory.",
66-
"item.advancedperipherals.tooltip.keyboard": "&7Can be bound to a computer, used to type something on a computer without the need to open the computer.",
6763
"item.advancedperipherals.tooltip.me_bridge": "&7The ME Bridge interacts with Applied Energistics to manage your items.",
6864
"item.advancedperipherals.tooltip.memory_card": "&7Can save the rights of a player to use it in an inventory manager.",
65+
"item.advancedperipherals.tooltip.memory_card.bound": "&7Bound to &b%s&7.",
6966
"item.advancedperipherals.tooltip.nbt_storage": "&7Acts like a storage disk. Can store nbt based data.",
7067
"item.advancedperipherals.tooltip.overpowered_end_automata_core": "&7Improved version of the end automata core, that provides some overpowered uses! Be careful, the upgrade is very fragile.",
7168
"item.advancedperipherals.tooltip.overpowered_husbandry_automata_core": "&7Improved version of the husbandry automata core, that provides some overpowered uses! Be careful, the upgrade is very fragile.",
7269
"item.advancedperipherals.tooltip.overpowered_weak_automata_core": "&7Improved version of the weak automata core, that provides some overpowered uses! Be careful, the upgrade is very fragile.",
73-
"item.advancedperipherals.tooltip.peripheral_casing": "&7An empty hull without the love it deserves. Used as crafting ingredient.",
70+
"item.advancedperipherals.tooltip.peripheral_casing": "&7An empty hull without the love it deserves. Used as crafting ingredient",
7471
"item.advancedperipherals.tooltip.player_detector": "&7This peripheral can be used to interact with players, but don't be a stalker.",
7572
"item.advancedperipherals.tooltip.redstone_integrator": "&7This block is able to interact with redstone. Works exactly like the redstone api of an computer.",
7673
"item.advancedperipherals.tooltip.rs_bridge": "&7The RS Bridge interacts with Refined Storage to manage your items.",
@@ -85,27 +82,23 @@
8582
"pocket.advancedperipherals.environment_pocket": "Environment",
8683
"pocket.advancedperipherals.geoscanner_pocket": "Geo",
8784
"pocket.advancedperipherals.player_pocket": "Player Detector",
88-
"text.advancedperipherals.automata_core_feed_by_player": "You're trying to feed an entity to a soul, but your own body refuses to do this. Maybe something more mechanical can do this?",
89-
"text.advancedperipherals.bind_keyboard": "&7Bound to &b%s&7",
90-
"text.advancedperipherals.bind_memorycard": "&7Added you to the memory card",
91-
"text.advancedperipherals.cleared_keyboard": "&7Bind removed",
92-
"text.advancedperipherals.cleared_memorycard": "&7Cleared the memory card",
93-
"text.advancedperipherals.could_not_bind_keyboard": "&cCould not bind the keyboard to the computer located at &c%s",
94-
"text.advancedperipherals.keyboard_notbound": "&7Keyboard not bound",
95-
"text.advancedperipherals.saddle_turtle_dismount_hint": "Controlling %1$s. Press %2$s and %3$s to dismount.",
85+
"text.advancedperipherals.added_player": "Added you to the memory card",
86+
"text.advancedperipherals.automata_core.feed_by_player": "You're trying to feed an entity to a soul, but your own body refuses to do this. Maybe something more mechanical can do this?",
87+
"text.advancedperipherals.removed_player": "Cleared the memory card",
88+
"text.advancedperipherals.saddle_turtle.dismount_hint": "Controlling %1$s. Press %2$s and %3$s to dismount.",
9689
"text.advancedperipherals.smart_glasses.modules": "Modules",
9790
"text.advancedperipherals.smart_glasses.peripherals": "Peripherals",
9891
"turtle.advancedperipherals.chatty_turtle": "Chatty",
9992
"turtle.advancedperipherals.chunky_turtle": "Chunky",
10093
"turtle.advancedperipherals.compass_turtle": "Compass",
101-
"turtle.advancedperipherals.end_automata": "End automata",
94+
"turtle.advancedperipherals.end_automata": "End Automata",
10295
"turtle.advancedperipherals.environment_turtle": "Environment",
10396
"turtle.advancedperipherals.geoscanner_turtle": "Geo",
104-
"turtle.advancedperipherals.husbandry_automata": "Husbandry automata",
105-
"turtle.advancedperipherals.overpowered_end_automata": "Overpowered end automata",
106-
"turtle.advancedperipherals.overpowered_husbandry_automata": "Overpowered husbandry automata",
107-
"turtle.advancedperipherals.overpowered_weak_automata": "Overpowered weak automata",
97+
"turtle.advancedperipherals.husbandry_automata": "Husbandry Automata",
98+
"turtle.advancedperipherals.overpowered_end_automata": "Overpowered End Automata",
99+
"turtle.advancedperipherals.overpowered_husbandry_automata": "Overpowered Husbandry Automata",
100+
"turtle.advancedperipherals.overpowered_weak_automata": "Overpowered Weak Automata",
108101
"turtle.advancedperipherals.player_turtle": "Player Detector",
109102
"turtle.advancedperipherals.saddle_turtle": "Saddle",
110-
"turtle.advancedperipherals.weak_automata": "Weak automata"
103+
"turtle.advancedperipherals.weak_automata": "Weak Automata"
111104
}
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"values": [
3-
"advancedperipherals:environment_detector",
3+
"advancedperipherals:block_reader",
44
"advancedperipherals:chat_box",
5-
"advancedperipherals:player_detector",
6-
"advancedperipherals:me_bridge",
7-
"advancedperipherals:rs_bridge",
5+
"advancedperipherals:colony_integrator",
6+
"advancedperipherals:distance_detector",
87
"advancedperipherals:energy_detector",
8+
"advancedperipherals:environment_detector",
99
"advancedperipherals:fluid_detector",
1010
"advancedperipherals:gas_detector",
11-
"advancedperipherals:peripheral_casing",
12-
"advancedperipherals:inventory_manager",
13-
"advancedperipherals:redstone_integrator",
14-
"advancedperipherals:block_reader",
1511
"advancedperipherals:geo_scanner",
16-
"advancedperipherals:colony_integrator",
12+
"advancedperipherals:inventory_manager",
13+
"advancedperipherals:me_bridge",
1714
"advancedperipherals:nbt_storage",
18-
"advancedperipherals:distance_detector"
15+
"advancedperipherals:peripheral_casing",
16+
"advancedperipherals:player_detector",
17+
"advancedperipherals:redstone_integrator",
18+
"advancedperipherals:rs_bridge"
1919
]
2020
}
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
22
"values": [
3-
"advancedperipherals:environment_detector",
3+
"advancedperipherals:block_reader",
44
"advancedperipherals:chat_box",
5-
"advancedperipherals:player_detector",
6-
"advancedperipherals:me_bridge",
7-
"advancedperipherals:rs_bridge",
5+
"advancedperipherals:colony_integrator",
6+
"advancedperipherals:distance_detector",
87
"advancedperipherals:energy_detector",
8+
"advancedperipherals:environment_detector",
99
"advancedperipherals:fluid_detector",
1010
"advancedperipherals:gas_detector",
11-
"advancedperipherals:inventory_manager",
12-
"advancedperipherals:redstone_integrator",
13-
"advancedperipherals:block_reader",
1411
"advancedperipherals:geo_scanner",
15-
"advancedperipherals:colony_integrator",
12+
"advancedperipherals:inventory_manager",
13+
"advancedperipherals:me_bridge",
1614
"advancedperipherals:nbt_storage",
17-
"advancedperipherals:distance_detector"
15+
"advancedperipherals:player_detector",
16+
"advancedperipherals:redstone_integrator",
17+
"advancedperipherals:rs_bridge"
1818
]
1919
}

src/main/java/de/srendi/advancedperipherals/client/screens/SaddleTurtleScreen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private void renderDismountHint(PoseStack stack) {
124124
Minecraft minecraft = Minecraft.getInstance();
125125
Component name = Component.translatable("block.computercraft.turtle_normal.upgraded", Component.translatable("turtle.advancedperipherals.saddle_turtle"));
126126
// TODO: get and render turtle's label if exists
127-
Component text = Component.translatable("text.advancedperipherals.saddle_turtle_dismount_hint",
127+
Component text = Component.translatable("text.advancedperipherals.saddle_turtle.dismount_hint",
128128
name, minecraft.options.keyShift.getTranslatedKeyMessage(), minecraft.options.keyInventory.getTranslatedKeyMessage());
129129
float top = 10;
130130
float x = (float)(this.screenWidth / 2 - textWidth(text) / 2);

src/main/java/de/srendi/advancedperipherals/common/addons/appliedenergistics/AppEngApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ public static Map<String, Object> parseCraftingCPU(ICraftingCPU cpu, boolean rec
402402

403403
public static Map<String, Object> parseCraftingJob(CraftingJobStatus job, @Nullable ICraftingCPU cpu) {
404404
Map<String, Object> map = new HashMap<>();
405-
map.put("storage", parseGenericStack(job.crafting()));
405+
map.put("requestedItem", parseGenericStack(job.crafting()));
406406
map.put("elapsedTimeNanos", job.elapsedTimeNanos());
407407
map.put("totalItem", job.totalItems());
408408
map.put("progress", job.progress());

src/main/java/de/srendi/advancedperipherals/common/addons/computercraft/operations/SingleOperation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
public enum SingleOperation implements IPeripheralOperation<SingleOperationContext> {
1111
DIG(1000, 1),
1212
USE_ON_BLOCK(5000, 1),
13+
UPDATE_BLOCK(500, 1),
1314
SUCK(1000, 1),
1415
USE_ON_ANIMAL(2500, 10),
1516
CAPTURE_ANIMAL(50_000, 100),

src/main/java/de/srendi/advancedperipherals/common/addons/computercraft/owner/BlockEntityPeripheralOwner.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package de.srendi.advancedperipherals.common.addons.computercraft.owner;
22

3+
import dan200.computercraft.api.peripheral.IPeripheral;
34
import de.srendi.advancedperipherals.common.blocks.base.BaseBlock;
45
import de.srendi.advancedperipherals.common.blocks.blockentities.InventoryManagerEntity;
56
import de.srendi.advancedperipherals.common.util.DataStorageUtil;
@@ -20,7 +21,6 @@
2021
import org.jetbrains.annotations.Nullable;
2122

2223
import java.util.Objects;
23-
import java.util.function.Function;
2424

2525
public class BlockEntityPeripheralOwner<T extends BlockEntity & IPeripheralTileEntity> extends BasePeripheralOwner {
2626

@@ -90,7 +90,7 @@ public void markDataStorageDirty() {
9090
}
9191

9292
@Override
93-
public <T1> T1 withPlayer(Function<APFakePlayer, T1> function) {
93+
public <T1> T1 withPlayer(APFakePlayer.Action<T1> function) {
9494
throw new NotImplementedException();
9595
}
9696

@@ -124,4 +124,9 @@ public BlockEntityPeripheralOwner<T> attachFuel() {
124124
attachAbility(PeripheralOwnerAbility.FUEL, new TileEntityFuelAbility<>(this));
125125
return this;
126126
}
127+
128+
@Override
129+
public <U extends IPeripheral> U getConnectedPeripheral(Class<U> type) {
130+
throw new NotImplementedException();
131+
}
127132
}

0 commit comments

Comments
 (0)