Skip to content

Commit 8e941b7

Browse files
committed
Bump Lambda 2.12 -> 3.0
1 parent d4c055a commit 8e941b7

File tree

6 files changed

+35
-17
lines changed

6 files changed

+35
-17
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,20 @@
1111
<img src="https://img.shields.io/github/repo-size/lambda-client/lambda.svg" alt="GitHub repo size"/>
1212
<img src="https://tokei.rs/b1/github/lambda-client/lambda?category=code" alt="Lines of Code"/>
1313

14-
Lambda is a free, open-source, Minecraft 1.12.2 utility mod providing a visionary system for plugins that allow customizing the clients features thanks to an ingame plugin store.
14+
Lambda is a free, open-source, Minecraft 1.12.2 utility mod made for the anarchy experience.
15+
A visionary plugin system that allows additional modules to be added, without the need to create a fork!
16+
Customize your experience, and improve your efficiency!
17+
18+
Find our plugins [here](https://github.com/lambda-plugins).
1519

1620
<p align="center">
17-
<a href="https://github.com/lambda-client/lambda/releases/download/2.07.01/lambda-2.07.01.jar"><img alt="lambda-2.07.01.jar - July 1, 2021 - 12.0 Mb" src="https://raw.githubusercontent.com/lambda-client/assets/main/download_button.png" width="540" height="140"></a>
21+
<a href="https://github.com/lambda-client/lambda/releases/download/3.0/lambda-3.0.jar"><img alt="lambda-3.0.jar - 31. December, 2021 - 12.0 Mb" src="https://raw.githubusercontent.com/lambda-client/assets/main/download_button_3.0.png" width="70%" height="70%"></a>
1822
</p>
1923

2024
## Installation
2125
1. Install Minecraft 1.12.2
2226
2. Install Forge
23-
3. Download the mod file [here](https://github.com/lambda-client/lambda/releases/download/2.07.01/lambda-2.07.01.jar)
27+
3. Download the mod file [here](https://github.com/lambda-client/lambda/releases/download/3.0/lambda-3.0.jar)
2428
4. Put the file in your `.minecraft/mods` folder
2529

2630
## FAQ
@@ -73,6 +77,10 @@ How do I...
7377
7478
</details>
7579

80+
<p align="center">
81+
<img alt="" src="https://raw.githubusercontent.com/lambda-client/assets/main/footer.png">
82+
</p>
83+
7684
## Contributing
7785

7886
### Clone Repository

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ org.gradle.jvmargs=-Xmx3G
22
org.gradle.parallel=true
33

44
modGroup=com.lambda
5-
modVersion=2.12-dev
6-
apiVersion=2.12-SNAPSHOT
5+
modVersion=3.0
6+
apiVersion=3.0-SNAPSHOT
77

88
minecraftVersion=1.12.2
99
forgeVersion=14.23.5.2860
1010
mappingsChannel=stable
1111
mappingsVersion=39-1.12
1212

1313
kotlinVersion=1.6.10
14-
kotlinxCoroutinesVersion=1.6.0-RC
14+
kotlinxCoroutinesVersion=1.6.0
1515
dokkaVersion=1.6.0

src/main/kotlin/com/lambda/client/module/modules/render/MobOwner.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ object MobOwner : Module(
2727
for (entity in world.loadedEntityList) {
2828
/* Non Horse types, such as wolves */
2929
if (entity is EntityTameable) {
30-
val owner = entity.owner
31-
if (!entity.isTamed || owner == null) continue
30+
val ownerUUID = entity.ownerId
31+
if (!entity.isTamed || ownerUUID == null) continue
3232

33+
val ownerName = UUIDManager.getByUUID(ownerUUID)?.name ?: invalidText
3334
entity.alwaysRenderNameTag = true
34-
entity.customNameTag = "Owner: " + owner.displayName.formattedText + getHealth(entity)
35+
entity.customNameTag = "Owner: " + ownerName + getHealth(entity)
3536
}
3637

3738
if (entity is AbstractHorse) {

src/main/kotlin/com/lambda/client/module/modules/render/Nametags.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ object Nametags : Module(
5353
private val players by setting("Players", true, { page == Page.ENTITY_TYPE })
5454
private val mobs by setting("Mobs", true, { page == Page.ENTITY_TYPE })
5555
private val passive by setting("Passive Mobs", false, { page == Page.ENTITY_TYPE && mobs })
56+
private val tamable by setting("Tamable Mobs", true, { page == Page.ENTITY_TYPE && mobs })
5657
private val neutral by setting("Neutral Mobs", true, { page == Page.ENTITY_TYPE && mobs })
5758
private val hostile by setting("Hostile Mobs", true, { page == Page.ENTITY_TYPE && mobs })
5859
private val invisible by setting("Invisible", true, { page == Page.ENTITY_TYPE })
@@ -456,7 +457,7 @@ object Nametags : Module(
456457
&& (!entity.isInvisible || invisible)
457458
&& (entity is EntityXPOrb && experience
458459
|| entity is EntityPlayer && players && EntityUtils.playerTypeCheck(entity, friend = true, sleeping = true)
459-
|| EntityUtils.mobTypeSettings(entity, mobs, passive, neutral, hostile))
460+
|| EntityUtils.mobTypeSettings(entity, mobs, passive, neutral, hostile, tamable))
460461

461462
private class ItemGroup {
462463
private val itemSet = HashSet<EntityItem>()

src/main/kotlin/com/lambda/client/util/EntityUtils.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ object EntityUtils {
7070
}
7171
}
7272

73-
fun mobTypeSettings(entity: Entity, mobs: Boolean, passive: Boolean, neutral: Boolean, hostile: Boolean): Boolean {
74-
return mobs && (passive && entity.isPassive || neutral && entity.isNeutral || hostile && entity.isHostile)
73+
fun mobTypeSettings(entity: Entity, mobs: Boolean, passive: Boolean, neutral: Boolean, hostile: Boolean, tamable: Boolean = false): Boolean {
74+
return mobs && (passive && entity.isPassive || neutral && entity.isNeutral || hostile && entity.isHostile || tamable && entity is EntityTameable)
7575
}
7676

7777
/**

src/main/resources/mcmod.info

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,25 @@
22
{
33
"modid": "lambda",
44
"name": "Lambda",
5-
"description": "λ \nA Minecraft utility mod for anarchy servers \nWritten by the Lambda team based on code from 086 and the KAMI Blue team\n",
5+
"description": "λ\nLambda is a free, open-source, Minecraft 1.12.2 utility mod made for the anarchy experience.\nA visionary plugin system that allows additional modules to be added, without the need to create a fork!\nCustomize your experience, and improve your efficiency!",
66
"version": "${version}",
77
"mcversion": "1.12.2",
88
"url": "https://github.com/lambda-client/lambda",
99
"updateUrl": "",
1010
"authorList": [
11-
"086",
12-
"l1ving",
13-
"Constructor"
11+
"Constructor#9948",
12+
"huddy987#5085",
13+
"cz#6171",
14+
"ToxicAven#3678",
15+
"Nep Nep#3025",
16+
"scorbett123#5313",
17+
"hlsl#1315",
18+
"ItCameFr0mMars#6559",
19+
"romtec#6969",
20+
"Save___G#4444",
21+
"EnigmA_008#1505"
1422
],
15-
"credits": "Thanks to 086 for the original KAMI\nThanks to the team of KAMI Blue\nSpecial thanks to all active contributors",
23+
"credits": "Thanks to 086 for the original KAMI\nThanks to the team of KAMI Blue\nSpecial thanks to all contributors",
1624
"logoFile": "lambda.png",
1725
"dependencies": []
1826
}

0 commit comments

Comments
 (0)