File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
src/main/kotlin/gg/skytils/skytilsmod Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1780,6 +1780,13 @@ object Config : Vigilant(
1780
1780
)
1781
1781
var customDamageSplash = 0
1782
1782
1783
+ @Property(
1784
+ type = PropertyType .SWITCH , name = " Disable Enderman Teleportation" ,
1785
+ description = " Removes the enderman teleport effect." ,
1786
+ category = " Miscellaneous" , subcategory = " Quality of Life"
1787
+ )
1788
+ var disableEndermanTeleport = false
1789
+
1783
1790
@Property(
1784
1791
type = PropertyType .SWITCH , name = " Disable Night Vision" ,
1785
1792
description = " Removes the vanilla effects of Night Vision." ,
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ import net.minecraftforge.client.event.ClientChatReceivedEvent
72
72
import net.minecraftforge.client.event.RenderBlockOverlayEvent
73
73
import net.minecraftforge.client.event.RenderGameOverlayEvent
74
74
import net.minecraftforge.event.entity.EntityJoinWorldEvent
75
+ import net.minecraftforge.event.entity.living.EnderTeleportEvent
75
76
import net.minecraftforge.event.entity.player.ItemTooltipEvent
76
77
import net.minecraftforge.fml.common.Loader
77
78
import net.minecraftforge.fml.common.eventhandler.EventPriority
@@ -491,6 +492,13 @@ object MiscFeatures {
491
492
}
492
493
}
493
494
495
+ @SubscribeEvent(priority = EventPriority .LOW )
496
+ fun onEnderTeleport (event : EnderTeleportEvent ) {
497
+ if (Utils .inSkyblock && Skytils .config.disableEndermanTeleport) {
498
+ event.isCanceled = true
499
+ }
500
+ }
501
+
494
502
class GolemSpawnTimerElement : GuiElement (" Endstone Protector Spawn Timer" , FloatPair (150, 20)) {
495
503
override fun render () {
496
504
val player = mc.thePlayer
You can’t perform that action at this time.
0 commit comments