diff options
author | Linnea Gräf <nea@nea.moe> | 2024-04-02 03:26:21 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-04-02 03:26:21 +0200 |
commit | 4866f1360529d4d77dbd85c5e23d77a032043667 (patch) | |
tree | e4bd36d54ae0e00c3bb955bb0329e0f216e9c2de /src/main/kotlin/moe/nea | |
parent | 856d3242f34f7a787f02b086c0cb4b5b97eb34ca (diff) | |
download | potato-crimes-4866f1360529d4d77dbd85c5e23d77a032043667.tar.gz potato-crimes-4866f1360529d4d77dbd85c5e23d77a032043667.tar.bz2 potato-crimes-4866f1360529d4d77dbd85c5e23d77a032043667.zip |
Make carrots tradeable
Diffstat (limited to 'src/main/kotlin/moe/nea')
3 files changed, 5 insertions, 4 deletions
diff --git a/src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt b/src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt index b6ac78d..9aec040 100644 --- a/src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt +++ b/src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt @@ -49,6 +49,7 @@ object PotatoCrime : ModInitializer { } } }) + } fun hasContraband(entity: ServerPlayerEntity): Boolean { diff --git a/src/main/kotlin/moe/nea/potatocrime/item/ContrabandItem.kt b/src/main/kotlin/moe/nea/potatocrime/item/ContrabandItem.kt index 728d84a..06fe573 100644 --- a/src/main/kotlin/moe/nea/potatocrime/item/ContrabandItem.kt +++ b/src/main/kotlin/moe/nea/potatocrime/item/ContrabandItem.kt @@ -41,8 +41,8 @@ class ContrabandItem : Item( context: TooltipContext ) { val count = stack.getContrabandCount() - tooltip.add( - PotatoTranslations.contrabandFillText.format(count.toString()).styled { it.withColor(Formatting.DARK_GRAY) }) + tooltip.add(PotatoTranslations.contrabandFillText.format(count.toString()) + .styled { it.withColor(Formatting.DARK_GRAY) }) } override fun use(world: World, user: PlayerEntity, hand: Hand): TypedActionResult<ItemStack> { diff --git a/src/main/kotlin/moe/nea/potatocrime/registry/PotatoTranslations.kt b/src/main/kotlin/moe/nea/potatocrime/registry/PotatoTranslations.kt index a2cabf8..0f1f041 100644 --- a/src/main/kotlin/moe/nea/potatocrime/registry/PotatoTranslations.kt +++ b/src/main/kotlin/moe/nea/potatocrime/registry/PotatoTranslations.kt @@ -21,6 +21,6 @@ object PotatoTranslations { val noCarrotsToDeposit = PT("no-carrots", "No carrots to deposit.") val itemGroup = PT("item-group", "Potato Crimes") val contrabandFillText = PT("fill-level", "Hidden carrots: %s/1000.") - val youBrokeTheLaw = PT("arrest", "You broke the law by bringing carrots into those holy land!") - + val youBrokeTheLaw = PT("arrest", "You broke the law by bringing carrots into this potato dimension!") + val villagerTrade = PT("trade","Oh, you got that good stuff! Here, have some emeralds.") }
\ No newline at end of file |