Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How to make mc.timer visible


Knqght
 Share

Recommended Posts

Reflection is a general Java concept, you can use Google to find out more about it. Just note that you need to use ObfuscationReflectionHelper to find the Field/Method instances for Minecraft fields/methods and use the SRG name. Otherwise your code will not work outside the development environment.

For ATs refer to the documentation: https://mcforge.readthedocs.io/en/1.17.x/advanced/accesstransformers/.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Hello, I have purchased a server yesterday, and I am currently experimenting with mods. i plan on playing with bigger mods in the future, but i am testing with Simple Voice Chat. I've set it up on my Minecraft Account, but setting it up on my server has been a struggle. Here is my console info. I need help!   17.01 21:39:57 [Multicraft] Received start command 17.01 21:39:57 [Multicraft] Loading server properties 17.01 21:39:57 [Multicraft] Starting server! 17.01 21:39:57 [Multicraft] Loaded config for "Custom.jar (Upload and use your own JAR)" 17.01 21:39:57 [Multicraft] Updating eula.txt file 17.01 21:39:58 [Server] INFO 2022-01-17 21:39:58,032 main WARN Advanced terminal features are not available in this environment 17.01 21:39:58 [Server] main/INFO [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.2.23, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, nogui] 17.01 21:39:58 [Server] main/INFO [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 1.8.0_312 by Private Build 17.01 21:39:58 [Server] main/INFO [ne.mi.fm.lo.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust 17.01 21:39:58 [Server] main/INFO [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.4 Source=file:/libraries/org/spongepowered/mixin/0.8.4/mixin-0.8.4.jar Service=ModLauncher Env=SERVER 17.01 21:39:59 [Server] main/INFO [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlserver' with arguments [--gameDir, ., nogui] 17.01 21:40:06 [Server] modloading-worker-43/INFO [ne.mi.co.ForgeMod/FORGEMOD]: Forge mod loading, version 36.2.23, for MC 1.16.5 with MCP 20210115.111550 17.01 21:40:06 [Server] modloading-worker-43/INFO MinecraftForge v36.2.23 Initialized 17.01 21:40:06 [Server] Forge Version Check/INFO [ne.mi.fm.VersionChecker/]: [voicechat] Starting version check at https://maxhenkel.de/update/voicechat.json 17.01 21:40:08 [Server] Forge Version Check/INFO [ne.mi.fm.VersionChecker/]: [voicechat] Found status: UP_TO_DATE Current: 1.16.5-1.7.8 Target: null 17.01 21:40:08 [Server] Forge Version Check/INFO [ne.mi.fm.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/net/minecraftforge/forge/promotions_slim.json 17.01 21:40:08 [Server] main/INFO [mojang/YggdrasilAuthenticationService]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' 17.01 21:40:08 [Server] Forge Version Check/INFO [ne.mi.fm.VersionChecker/]: [forge] Found status: AHEAD Current: 36.2.23 Target: null 17.01 21:40:08 [Server] main/WARN Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498] 17.01 21:40:08 [Server] main/WARN Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0] 17.01 21:40:08 [Server] main/WARN Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0] 17.01 21:40:08 [Server] main/WARN Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498] 17.01 21:40:08 [Server] main/WARN Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0] 17.01 21:40:08 [Server] main/INFO Reloading ResourceManager: Default, bukkit, forge-1.16.5-36.2.23-universal.jar, voicechat-forge-1.16.5-1.7.8.jar 17.01 21:40:09 [Server] Worker-Main-10/INFO Loaded 7 recipes 17.01 21:40:10 [Server] Worker-Main-10/INFO Loaded 927 advancements 17.01 21:40:11 [Server] Server thread/INFO Starting minecraft server version 1.16.5 17.01 21:40:11 [Server] Server thread/INFO Loading properties 17.01 21:40:11 [Server] Server thread/INFO Default game type: SURVIVAL 17.01 21:40:11 [Server] Server thread/INFO Generating keypair 17.01 21:40:12 [Server] Server thread/INFO Starting Minecraft server on 45.35.104.25:25665 17.01 21:40:12 [Server] Server thread/INFO Using epoll channel type 17.01 21:40:12 [Server] Server thread/ERROR Encountered an unexpected exception 17.01 21:40:12 [Server] INFO net.minecraftforge.fml.config.ConfigFileTypeHandler$ConfigLoadingException: Failed loading config file voicechat-server.toml of type SERVER for modid voicechat 17.01 21:40:12 [Server] INFO at net.minecraftforge.fml.config.ConfigFileTypeHandler.lambda$reader$1(ConfigFileTypeHandler.java:61) ~[forge:?] {re:classloading} 17.01 21:40:12 [Server] INFO at net.minecraftforge.fml.config.ConfigTracker.openConfig(ConfigTracker.java:104) ~[forge:?] {re:classloading} 17.01 21:40:12 [Server] INFO at net.minecraftforge.fml.config.ConfigTracker.lambda$loadConfigs$1(ConfigTracker.java:83) ~[forge:?] {re:classloading} 17.01 21:40:12 [Server] INFO at java.lang.Iterable.forEach(Iterable.java:75) ~[?:1.8.0_312] {} 17.01 21:40:12 [Server] INFO at java.util.Collections$SynchronizedCollection.forEach(Collections.java:2064) ~[?:1.8.0_312] {} 17.01 21:40:12 [Server] INFO at net.minecraftforge.fml.config.ConfigTracker.loadConfigs(ConfigTracker.java:83) ~[forge:?] {re:classloading} 17.01 21:40:12 [Server] INFO at net.minecraftforge.fml.server.ServerLifecycleHooks.handleServerAboutToStart(ServerLifecycleHooks.java:94) ~[forge:?] {re:classloading} 17.01 21:40:12 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:166) ~[?:?] {re:classloading,pl:accesstransformer:B} 17.01 21:40:12 [Server] INFO at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:621) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} 17.01 21:40:12 [Server] INFO at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:232) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} 17.01 21:40:12 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_312] {} 17.01 21:40:12 [Server] INFO Caused by: com.electronwill.nightconfig.core.io.ParsingException: Invalid character '2' after table entry "[port]" = 2 17.01 21:40:12 [Server] INFO at com.electronwill.nightconfig.toml.TableParser.parseNormal(TableParser.java:69) ~[toml-3.6.3.jar:?] {} 17.01 21:40:12 [Server] INFO at com.electronwill.nightconfig.toml.TableParser.parseNormal(TableParser.java:101) ~[toml-3.6.3.jar:?] {} 17.01 21:40:12 [Server] INFO at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:88) ~[toml-3.6.3.jar:?] {} 17.01 21:40:12 [Server] INFO at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:37) ~[toml-3.6.3.jar:?] {} 17.01 21:40:12 [Server] INFO at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:113) ~[core-3.6.3.jar:?] {} 17.01 21:40:12 [Server] INFO at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:219) ~[core-3.6.3.jar:?] {} 17.01 21:40:12 [Server] INFO at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:202) ~[core-3.6.3.jar:?] {} 17.01 21:40:12 [Server] INFO at com.electronwill.nightconfig.core.file.WriteSyncFileConfig.load(WriteSyncFileConfig.java:73) ~[core-3.6.3.jar:?] {} 17.01 21:40:12 [Server] INFO at com.electronwill.nightconfig.core.file.AutosaveCommentedFileConfig.load(AutosaveCommentedFileConfig.java:85) ~[core-3.6.3.jar:?] {} 17.01 21:40:12 [Server] INFO at net.minecraftforge.fml.config.ConfigFileTypeHandler.lambda$reader$1(ConfigFileTypeHandler.java:57) ~[forge:?] {re:classloading} 17.01 21:40:12 [Multicraft] Server shut down (starting) 17.01 21:40:12 [Multicraft] Not restarting crashed server. 17.01 21:40:12 [Multicraft] Server stopped
    • I would like to figure out a solution to essentially disable all loaded redstone blocks/entities from "ticking" - but unsure if this is possible or what criteria/objects can be used to accomplish this. The blockEntityList on the ServerWorld object has all of the loaded entities, but redstone blocks are not considered "tickable" and are not found in the tickableTileEntities list and also do not seem to have any unique criteria to filter. I.E. to find all tickableTileEntities in blockEntityList, I can search it for any objects that are an instance of ITickableTileEntity -- but the same cannot be done for redstone blocks.  I have code that simulates disabling tile entity ticks by removing the objects from the tickableTileEntity list and then restoring them later from the blockEntityList. I'd like to do something similar with redstone blocks if possible, but so far I cannot find any solutions.  Sample code for tile entities below minecraftServer.overworld().tickableBlockEntities.clear(); minecraftServer.overworld().tickableBlockEntities.addAll(minecraftServer.overworld().blockEntityList.stream().filter(x -> x instanceof ITickableTileEntity).collect(Collectors.toSet()));
    • Thanks for your answer!  I'll create a backup and give it a try.  Fortunately if I do mess it up, it's only a week's progress lost. 
    • It is not new, their hack is just now breaking.
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.