Skip to content
26 changes: 14 additions & 12 deletions Canopy [BP]/scripts/src/rules/quickFillContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,21 @@ class QuickFillContainer extends AbilityRule {
sendFeedbackMessage(isFilling, player, block, itemStack, inventory) {
const feedback = { rawtext: [] };
if (isFilling) {
feedback.rawtext.push({ rawtext: [
{ translate: `rules.quickFillContainer.filled.pt1` },
{ translate: block.localizationKey },
{ translate: `rules.quickFillContainer.filled.pt2` },
{ translate: itemStack.localizationKey }
]});
feedback.rawtext.push({
translate: 'rules.quickFillContainer.filled',
with: { rawtext: [
{ translate: block.localizationKey },
{ translate: itemStack.localizationKey }
]}
});
} else {
feedback.rawtext.push({ rawtext: [
{ translate: `rules.quickFillContainer.taken.pt1` },
{ translate: itemStack.localizationKey },
{ translate: `rules.quickFillContainer.taken.pt2` },
{ translate: block.localizationKey }
]});
feedback.rawtext.push({
translate: 'rules.quickFillContainer.taken',
with: { rawtext: [
{ translate: itemStack.localizationKey },
{ translate: block.localizationKey }
]}
});
}
feedback.rawtext.push({ text: ` (§a${inventory.size - inventory.emptySlotsCount}§7/§a${inventory.size}§7)` });
player.onScreenDisplay.setActionBar(feedback);
Expand Down
445 changes: 445 additions & 0 deletions Canopy [RP]/texts/cy_GB.lang

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions Canopy [RP]/texts/de_DE.lang
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,8 @@ rules.noWelcomeMessage=Deaktiviert die §lCanopy§r§8 wilkommen Nachricht.
rules.pistonBedrockBreaking=Erlaubt, dass Kolben Grundgestein brechen, wenn sie von einem Grundgesteinblock wegzeigen und sich ausdehnen.
rules.playerSit=Erlaubt es Spielern, sich nach %s schnellen Schleichen hinzusetzen.
rules.quickFillContainer=Wenn man einen Gegenstand auf einem Container mit einem Pfeil oben links im Inventar benutzt, wird der Rest des Gegenstandes in den Container gelegt.
rules.quickFillContainer.filled.pt1=§7Füllt
rules.quickFillContainer.filled.pt2=mit allen
rules.quickFillContainer.taken.pt1=§7Nimt alle
rules.quickFillContainer.taken.pt2=von
rules.quickFillContainer.filled=§7Füllt %1 mit allen %2
rules.quickFillContainer.taken=§7Nimt alle %1 von %2
rules.refillHand=Füllt deine Hand mit Gegenständen aus deinem Inventar auf, wenn du keine mehr hast. Lege einen Pfeil in den slot oben links in eurem Inventar, um es zu nutzten.
rules.renewableElytra=Phantome haben eine Chance von 1%, eine Elytra fallen zu lassen, wenn sie von einem Shulker-Projektil getötet werden.
rules.renewableSponge=Wächter verwandeln sich in ältere Wächter, wenn sie von Blitzen getroffen werden.
Expand Down
6 changes: 2 additions & 4 deletions Canopy [RP]/texts/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,8 @@ rules.noWelcomeMessage=Disables the §lCanopy§r§8 welcome message.
rules.pistonBedrockBreaking=Allows pistons to break bedrock when facing away from a bedrock block and expanding.
rules.playerSit=Allows players to sit down after %s quick sneaks.
rules.quickFillContainer=Using an item on a container with an arrow in inventory slot 9 (top left) will deposit all of that item into the container.
rules.quickFillContainer.filled.pt1=§7Filled
rules.quickFillContainer.filled.pt2= with all
rules.quickFillContainer.taken.pt1=§7Took all
rules.quickFillContainer.taken.pt2= from
rules.quickFillContainer.filled=§7Filled %1 with all %2
rules.quickFillContainer.taken=§7Took all %1 from %2
rules.refillHand=Refills your hand with items from your inventory when you run out. Put an arrow in inventory slot 10 (next to the top left) to use.
rules.renewableElytraDropChance=Gives phantoms a chance to drop elytra when killed by a shulker bullet.
rules.renewableSponge=Guardians transform into elder guardians when hurt by lightning.
Expand Down
6 changes: 2 additions & 4 deletions Canopy [RP]/texts/id_ID.lang
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,8 @@ rules.noWelcomeMessage=Menonaktifkan pesan selamat datang §lCanopy§r§8.
rules.pistonBedrockBreaking=Memungkinkan piston menghancurkan batuan dasar saat membelakangi blok batuan dasar dan mengembang.
rules.playerSit=Memungkinkan pemain untuk duduk setelah %s kali menyelinap dengan cepat.
rules.quickFillContainer=Menggunakan item pada kontainer dengan panah di slot inventaris 9 (kiri atas), akan menyimpan semua item tersebut ke dalam kontainer.
rules.quickFillContainer.filled.pt1=§7Mengisi
rules.quickFillContainer.filled.pt2= dengan semua
rules.quickFillContainer.taken.pt1=§7Mengambil semua
rules.quickFillContainer.taken.pt2= dari
rules.quickFillContainer.filled=§7Mengisi %1 dengan semua %2
rules.quickFillContainer.taken=§7Mengambil semua %1 dari %2
rules.refillHand=Mengisi ulang tangan Anda dengan item dari inventaris saat Anda kehabisan. Letakkan panah di slot inventaris 10 (di sebelah kiri atas) untuk digunakan.
rules.renewableElytraDropChance=Hantu memiliki peluang untuk menjatuhkan elytra ketika terbunuh oleh peluru shulker.
rules.renewableSponge=Guardians berubah menjadi elder guardians saat tersambar oleh petir.
Expand Down
Loading
Loading