Start work on Auto-Welcome module. NOTE: 20% does NOT mean 20% of the features work. It means I estimate I am 20% done with this module.
This commit is contained in:
@@ -14,6 +14,6 @@ _Currently in super beta so don't expect something working for a while._
|
|||||||
- Health & Food bars replaced with dynamic bar similar to EXP bar (0%)
|
- Health & Food bars replaced with dynamic bar similar to EXP bar (0%)
|
||||||
- Custom GUIs (0%)
|
- Custom GUIs (0%)
|
||||||
- Built-in guide (CANCELED) **This feature is being worked on in a different mod called "Mythicfy", so it will not be added to this one. We recommend you download that mod.**
|
- Built-in guide (CANCELED) **This feature is being worked on in a different mod called "Mythicfy", so it will not be added to this one. We recommend you download that mod.**
|
||||||
- Auto-Welcome (0%) **WARNING: This feature may prove to be annoying, in which case we will remove it.**
|
- Auto-Welcome (20%) **WARNING: This feature may prove to be annoying, in which case we will remove it.**
|
||||||
- City NPCs (Lively Mode) (0%)
|
- City NPCs (Lively Mode) (0%)
|
||||||
- Fishing notifications (0%)
|
- Fishing notifications (0%)
|
||||||
@@ -1,4 +1,14 @@
|
|||||||
package chickenmanfy.scify.Modules
|
package chickenmanfy.scify.Modules
|
||||||
|
|
||||||
class autowelcome {
|
import net.minecraft.client.MinecraftClient
|
||||||
|
import net.minecraft.text.Text
|
||||||
|
|
||||||
|
fun autowelcome() {
|
||||||
|
val minecraftClient = MinecraftClient.getInstance()
|
||||||
|
val message: Text = Text.literal("Hi!")
|
||||||
|
if (minecraftClient?.player != null) {
|
||||||
|
minecraftClient.player!!.sendMessage(message, false)
|
||||||
|
} else {
|
||||||
|
println("MinecraftClient or player is null!")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -8,11 +8,11 @@ import net.minecraft.client.option.KeyBinding
|
|||||||
import net.minecraft.client.util.InputUtil
|
import net.minecraft.client.util.InputUtil
|
||||||
import net.minecraft.text.Text
|
import net.minecraft.text.Text
|
||||||
import org.lwjgl.glfw.GLFW
|
import org.lwjgl.glfw.GLFW
|
||||||
|
import chickenmanfy.scify.Modules.autowelcome
|
||||||
|
|
||||||
|
|
||||||
object SciFyClient : ClientModInitializer {
|
object SciFyClient : ClientModInitializer {
|
||||||
override fun onInitializeClient() {
|
override fun onInitializeClient() {
|
||||||
|
|
||||||
val menu = KeyBindingHelper.registerKeyBinding(
|
val menu = KeyBindingHelper.registerKeyBinding(
|
||||||
KeyBinding(
|
KeyBinding(
|
||||||
"Menu",
|
"Menu",
|
||||||
@@ -28,5 +28,6 @@ object SciFyClient : ClientModInitializer {
|
|||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
autowelcome()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user