11package net .swofty .type .dwarvenmines ;
22
33import net .kyori .adventure .key .Key ;
4+ import net .kyori .adventure .text .Component ;
5+ import net .kyori .adventure .text .format .NamedTextColor ;
6+ import net .kyori .adventure .text .format .TextDecoration ;
47import net .minestom .server .MinecraftServer ;
8+ import net .minestom .server .coordinate .Point ;
59import net .minestom .server .coordinate .Pos ;
610import net .minestom .server .registry .RegistryKey ;
711import net .minestom .server .world .DimensionType ;
1014import net .swofty .commons .CustomWorlds ;
1115import net .swofty .commons .ServerType ;
1216import net .swofty .commons .ServiceType ;
17+ import net .swofty .commons .bedwars .map .BedWarsMapsConfig ;
1318import net .swofty .proxyapi .redis .ProxyToClient ;
1419import net .swofty .proxyapi .redis .ServiceToClient ;
20+ import net .swofty .type .dwarvenmines .gui .GUIGemstoneGrinder ;
1521import net .swofty .type .dwarvenmines .tab .DwarvenMinesServerModule ;
22+ import net .swofty .type .generic .HypixelConst ;
1623import net .swofty .type .generic .SkyBlockTypeLoader ;
24+ import net .swofty .type .generic .entity .InteractionEntity ;
1725import net .swofty .type .generic .entity .npc .HypixelNPC ;
1826import net .swofty .type .generic .event .HypixelEventClass ;
1927import net .swofty .type .generic .tab .TablistManager ;
2028import net .swofty .type .generic .tab .TablistModule ;
2129import net .swofty .type .skyblockgeneric .SkyBlockGenericLoader ;
30+ import net .swofty .type .skyblockgeneric .entity .TextDisplayEntity ;
2231import net .swofty .type .skyblockgeneric .tabmodules .AccountInformationModule ;
2332import net .swofty .type .skyblockgeneric .tabmodules .SkyBlockPlayersOnlineModule ;
2433import org .jetbrains .annotations .Nullable ;
@@ -41,13 +50,23 @@ public void onInitialize(MinecraftServer server) {
4150
4251 @ Override
4352 public void afterInitialize (MinecraftServer server ) {
53+ Point gemstoneGrinderPos = new Pos (85.5 , 199 , -116.5 );
4454
55+ InteractionEntity gemstoneGrinder = new InteractionEntity (1.1f , 1.1f , (p , event ) -> {
56+ new GUIGemstoneGrinder ().open (p );
57+ });
58+ TextDisplayEntity gemstoneGrinderText = new TextDisplayEntity (Component .text ("Gemstone Grinder" , NamedTextColor .LIGHT_PURPLE ), meta -> {});
59+ TextDisplayEntity gemstoneGrinderClick = new TextDisplayEntity (Component .text ("CLICK" ).color (NamedTextColor .YELLOW ).decorate (TextDecoration .BOLD ), meta -> {});
60+
61+ gemstoneGrinder .setInstance (HypixelConst .getInstanceContainer (), gemstoneGrinderPos );
62+ gemstoneGrinderText .setInstance (HypixelConst .getInstanceContainer (), gemstoneGrinderPos .add (0 , 1.3 , 0 ));
63+ gemstoneGrinderClick .setInstance (HypixelConst .getInstanceContainer (), gemstoneGrinderPos .add (0 , 0.9 , 0 ));
4564 }
4665
4766 @ Override
4867 public LoaderValues getLoaderValues () {
4968 return new LoaderValues (
50- (_ ) -> new Pos (-85 , 200 , -123 , -90 , 0 ),
69+ (_ ) -> new Pos (-48.5 , 200 , -121.5 , -90 , 0 ),
5170 true
5271 );
5372 }
0 commit comments