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

Remove Name Tag Mod


DrOlive
 Share

Recommended Posts

Hey Minecraft Forge Modders! I've been trying to make a quick simple mod that allows players to remove their name tag so no other players can see it, but I can't seem to find out how to go about doing this. If somebody could help me do this it would be great! I'm not asking for a full written out code for me, just some pointers to help get me going. Thanks!

Link to comment
Share on other sites

Ok so if I were to have a key binding class like this:

package drolive.nonametags;

import java.util.EnumSet;

import net.minecraft.client.settings.KeyBinding;
import net.minecraftforge.client.event.RenderLivingEvent;
import net.minecraftforge.client.event.RenderLivingEvent.Specials;
import cpw.mods.fml.client.registry.KeyBindingRegistry.KeyHandler;
import cpw.mods.fml.common.TickType;

class NoNameTagsKeyBind extends KeyHandler {

private EnumSet tickTypes = EnumSet.of(TickType.CLIENT);

public NoNameTagsKeyBind(KeyBinding[] keyBindings, boolean[] repeatings) {
	super(keyBindings, repeatings);
}

@Override
public String getLabel() {
	return "Hide";
}

@Override
public void keyDown(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd, boolean isRepeat) {



}

@Override
public void keyUp(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd) {

}

@Override
public EnumSet<TickType> ticks() {
	return null;
}

}

How would I cancel RenderLivingEvent.Specials.Pre? Would I have to make another class for my key binding or what?

Link to comment
Share on other sites

Ok I made a class for my key binding

package drolive.nonametags;

import net.minecraftforge.client.event.RenderLivingEvent;
import net.minecraftforge.client.event.RenderLivingEvent.Specials;
import net.minecraftforge.event.Event;

public class NoNameTagsKeyBindHide {

public void Pre(Specials.Pre event){
	if (event.isCancelable()) {
        event.setCanceled(true);
}
}
}

but how do I make it so when you press the key it cancels Pre, then if you press it again it doesn't cancel it?

Link to comment
Share on other sites

I have my keybindings class and my keybindinghide class without any errors and it show up in the game's control menu, but when I press it in game, nothing happens!

Main Keybinding class:

package drolive.nonametags;

import java.util.EnumSet;

import net.minecraft.client.settings.KeyBinding;
import net.minecraftforge.client.event.RenderLivingEvent;
import net.minecraftforge.client.event.RenderLivingEvent.Specials;
import cpw.mods.fml.client.registry.KeyBindingRegistry.KeyHandler;
import cpw.mods.fml.common.TickType;

class NoNameTagsKeyBind extends KeyHandler {

public static boolean cancelPre = false;

private EnumSet tickTypes = EnumSet.of(TickType.CLIENT);

public NoNameTagsKeyBind(KeyBinding[] keyBindings, boolean[] repeatings) {
	super(keyBindings, repeatings);
}

@Override
public String getLabel() {
	return "Hide";
}

@Override
public void keyDown(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd, boolean isRepeat) {

	if (cancelPre == false){
		cancelPre = true;
	}
	else cancelPre = false;

}

@Override
public void keyUp(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd) {

}

@Override
public EnumSet<TickType> ticks() {
	return null;
}

}

 

My class for the "hide" keybinding:

package drolive.nonametags;

import net.minecraftforge.client.event.RenderLivingEvent;
import net.minecraftforge.client.event.RenderLivingEvent.Specials;
import net.minecraftforge.event.Event;

public class NoNameTagsKeyBindHide {

public void Pre(Specials.Pre event){
	if (event.isCancelable() && NoNameTagsKeyBind.cancelPre == true){
		System.out.println("You are now Hiding!");
        event.setCanceled(true);}
        else if (event.isCancelable() && NoNameTagsKeyBind.cancelPre == false) {
        	event.setCanceled(false);
        	System.out.println("You are not Hiding!");
        }	
   }
}

And yes I did register the key binding in my main class. Anybody know why nothing's happening?

Link to comment
Share on other sites

Oh and also here is my main class:

package drolive.nonametags;

import org.lwjgl.input.Keyboard;

import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RendererLivingEntity;
import net.minecraft.client.settings.KeyBinding;
import cpw.mods.fml.client.registry.KeyBindingRegistry;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;

@Mod(modid="NoNameTags", name="NoNameTags", version="0.0.1")
@NetworkMod(clientSideRequired=false, serverSideRequired=false)

public class NoNameTags {

    @Instance("NoNameTags")
    public static NoNameTags instance;
    
    @SidedProxy(clientSide="drolive.nonametags.client.ClientProxy", serverSide="drolive.nonametags.CommonProxy")
    public static CommonProxy proxy;
    
    @EventHandler
    public void preInit(FMLPreInitializationEvent event) {
    }
    
    @EventHandler
    public void load(FMLInitializationEvent event) {
            proxy.registerRenderers();
            
            KeyBinding[] key = {new KeyBinding("Hide", Keyboard.KEY_H)};
            boolean[] repeat = {false};
            KeyBindingRegistry.registerKeyBinding(new NoNameTagsKeyBind(key, repeat));
    }
    
    @EventHandler
    public void postInit(FMLPostInitializationEvent event) {
    }
}

Link to comment
Share on other sites

Yeah I registered the event and everything, but when I load a world it says "You are not hiding!" and it never says anything else no matter how many times I press h.

I feel like my NoNameTagsKeyBindHide class isn't checking if cancelPre changes, but how would I do that?

 

My main class:

package drolive.nonametags;

import java.util.EnumSet;

import org.lwjgl.input.Keyboard;

import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RendererLivingEntity;
import net.minecraft.client.settings.KeyBinding;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.client.registry.KeyBindingRegistry;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.TickType;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.TickRegistry;
import cpw.mods.fml.relauncher.Side;

@Mod(modid="NoNameTags", name="NoNameTags", version="0.0.1")
@NetworkMod(clientSideRequired=false, serverSideRequired=false)

public class NoNameTags {

    @Instance("NoNameTags")
    public static NoNameTags instance;
    
    @SidedProxy(clientSide="drolive.nonametags.client.ClientProxy", serverSide="drolive.nonametags.CommonProxy")
    public static CommonProxy proxy;
    
    @EventHandler
    public void preInit(FMLPreInitializationEvent event) {
    }
    
    @EventHandler
    public void load(FMLInitializationEvent event) {
            proxy.registerRenderers();
            KeyBinding[] key = {new KeyBinding("Hide", Keyboard.KEY_H)};
            boolean[] repeat = {true};
            KeyBindingRegistry.registerKeyBinding(new NoNameTagsKeyBind(key, repeat));
            MinecraftForge.EVENT_BUS.register(new NoNameTagsKeyBindHide());
    }
    
    @EventHandler
    public void postInit(FMLPostInitializationEvent event) {
    }
}

 

My keybind class:

package drolive.nonametags;

import java.util.EnumSet;

import net.minecraft.client.settings.KeyBinding;
import net.minecraftforge.client.event.RenderLivingEvent;
import net.minecraftforge.client.event.RenderLivingEvent.Specials;
import cpw.mods.fml.client.registry.KeyBindingRegistry.KeyHandler;
import cpw.mods.fml.common.TickType;

class NoNameTagsKeyBind extends KeyHandler {

private EnumSet tickTypes = EnumSet.of(TickType.CLIENT);

public static boolean cancelPre = false;

public NoNameTagsKeyBind(KeyBinding[] keyBindings, boolean[] repeatings) {
	super(keyBindings, repeatings);
}

@Override
public String getLabel() {
	return "Hide";
}

@Override
public void keyDown(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd, boolean isRepeat) {

	cancelPre = (!cancelPre);

}

@Override
public void keyUp(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd) {

}

@Override
public EnumSet<TickType> ticks() {
	return null;
}

}

My keybind hide class:

package drolive.nonametags;

import net.minecraftforge.client.event.RenderLivingEvent;
import net.minecraftforge.client.event.RenderLivingEvent.Specials;
import net.minecraftforge.event.Event;
import net.minecraftforge.event.ForgeSubscribe;

public class NoNameTagsKeyBindHide {

public int makeItStop = 0;

@ForgeSubscribe(receiveCanceled=true)
public void Pre(Specials.Pre event){
	if (NoNameTagsKeyBind.cancelPre == true && makeItStop == 1){
		event.setCanceled(true);
		System.out.println("You are now hiding!");
		makeItStop = makeItStop - 1;
        }
    else if (NoNameTagsKeyBind.cancelPre == false && makeItStop == 0) {
    	event.setCanceled(false);
        System.out.println("You are not hiding!");
        makeItStop = makeItStop + 1;
        }	
   }
}

Note: I added the int makeItStop because before when I would load a world, it would spam the console with never ending "You are not hiding!"

Link to comment
Share on other sites

Am I supposed to call the boolean in a different way?

what other way would there be

 

if(NoNameTagsKeyBind.cancelPre == true) ?

if(NoNameTagsKeyBind.cancelPre != false) ?

if(NoNameTagsKeyBind.cancelPre) ?

if(NoNameTagsKeyBind.cancelPre || false) ?

 

 

...all those do the same thing ...

 

 

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

*main class*
boolean[] repeat = {true};

Set to false to stop the repeating keybind. ;)

 

@Override
public void keyDown(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd, boolean isRepeat) {
	if(tickEnd)//so it doesn't fire twice
	cancelPre = (!cancelPre);

}

Link to comment
Share on other sites

*main class*
boolean[] repeat = {true};

Set to false to stop the repeating keybind. ;)

 

@Override
public void keyDown(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd, boolean isRepeat) {
	if(tickEnd)//so it doesn't fire twice
	cancelPre = (!cancelPre);

}

I tried all this and it still repeats if I dont use makeItStop. And it still wont work in game. :(

Link to comment
Share on other sites

Nevermind it doesn't stop repeating without makeItStop...

Also I tried it in a LAN world and it said "You are now hiding!" but it didn't remove the name tag, know why?

Main Class:

package drolive.nonametags;

import java.util.EnumSet;

import org.lwjgl.input.Keyboard;

import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RendererLivingEntity;
import net.minecraft.client.settings.KeyBinding;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.client.registry.KeyBindingRegistry;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.TickType;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.TickRegistry;
import cpw.mods.fml.relauncher.Side;

@Mod(modid="NoNameTags", name="NoNameTags", version="0.0.1")
@NetworkMod(clientSideRequired=false, serverSideRequired=false)

public class NoNameTags {

    @Instance("NoNameTags")
    public static NoNameTags instance;
    
    @SidedProxy(clientSide="drolive.nonametags.client.ClientProxy", serverSide="drolive.nonametags.CommonProxy")
    public static CommonProxy proxy;
    
    @EventHandler
    public void preInit(FMLPreInitializationEvent event) {
    }
    
    @EventHandler
    public void load(FMLInitializationEvent event) {
            proxy.registerRenderers();
            KeyBinding[] key = {new KeyBinding("Hide", Keyboard.KEY_H)};
            boolean[] repeat = {false};
            KeyBindingRegistry.registerKeyBinding(new NoNameTagsKeyBind(key, repeat));
            MinecraftForge.EVENT_BUS.register(new NoNameTagsKeyBindHide());
    }
    
    @EventHandler
    public void postInit(FMLPostInitializationEvent event) {
    }
}

Key Bind class:

package drolive.nonametags;

import java.util.EnumSet;

import net.minecraft.client.settings.KeyBinding;
import net.minecraftforge.client.event.RenderLivingEvent;
import net.minecraftforge.client.event.RenderLivingEvent.Specials;
import cpw.mods.fml.client.registry.KeyBindingRegistry.KeyHandler;
import cpw.mods.fml.common.TickType;

class NoNameTagsKeyBind extends KeyHandler {

private EnumSet tickTypes = EnumSet.of(TickType.CLIENT);

public static boolean cancelPre;

public NoNameTagsKeyBind(KeyBinding[] keyBindings, boolean[] repeatings) {
	super(keyBindings, repeatings);
}

@Override
public String getLabel() {
	return "Hide";
}

@Override
public void keyDown(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd, boolean isRepeat) {
	if(tickEnd){
	cancelPre = !cancelPre;
	}
}

@Override
public void keyUp(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd) {

}

@Override
public EnumSet<TickType> ticks() {
	return tickTypes;
}

}

KeyBindHide class:

package drolive.nonametags;

import net.minecraft.src.ModLoader;
import net.minecraftforge.client.event.RenderLivingEvent;
import net.minecraftforge.client.event.RenderLivingEvent.Specials;
import net.minecraftforge.event.Event;
import net.minecraftforge.event.ForgeSubscribe;

public class NoNameTagsKeyBindHide {

public int makeItStop = 0;

@ForgeSubscribe(receiveCanceled=true)
public void Pre(Specials.Pre event){
	if (NoNameTagsKeyBind.cancelPre == true && makeItStop == 1){
		event.setCanceled(true);
		ModLoader.getMinecraftInstance().thePlayer.addChatMessage("You are now hiding!");
		makeItStop = makeItStop - 1;
        }
    else if (NoNameTagsKeyBind.cancelPre == false && makeItStop == 0) {
    	event.setCanceled(false);
    	ModLoader.getMinecraftInstance().thePlayer.addChatMessage("You are not hiding!");
        makeItStop = makeItStop + 1;
        }	
   }
}

Link to comment
Share on other sites

Nevermind it doesn't stop repeating without makeItStop...

Of course, my fixes only stop repeats from the input key, not from the event. The event will continue fire endlessly while there is living entities to render (that is, until world is closed).

For now, we have it so cancelPre boolean is only changed once each time you press the key.

We should add so only players have their name tags removed, right ?

So let's do only

if(event.entity instanceof EntityPlayer)
{
event.setCanceled(true);
}

Oh by the way, stop using ModLoader.

Link to comment
Share on other sites

I did just what you said but when I press the key in game, nothing happens, it wont even print a text. I also tried using it like this, but still no luck:

if(NoNameTagsKeyBind.cancelPre == true && event.entity instanceof EntityPlayer)

Is this where I'm supposed to put the code?

package drolive.nonametags;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.src.ModLoader;
import net.minecraftforge.client.event.RenderLivingEvent;
import net.minecraftforge.client.event.RenderLivingEvent.Specials;
import net.minecraftforge.event.Event;
import net.minecraftforge.event.ForgeSubscribe;

public class NoNameTagsKeyBindHide {

@ForgeSubscribe(receiveCanceled=true)
public void Pre(Specials.Pre event){
	if(event.entity instanceof EntityPlayer){
        event.setCanceled(true);
        }

Link to comment
Share on other sites

Well I got it to cancel the event by using isCanceled(), but it turns out that cancelling Specials.Pre only makes everyone else's names disappear, not the player's who used the command... How would I make it so only the player's disappears from everyone else's view?

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

    • What you posted looks like the latest.log, not debug.log. It also does not show any error, but a successful join of a single player world. Please answer this question.
    • [29Nov2021 13:35:13.629] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, Alsefri1423, --version, 1.17.1-forge-37.0.126, --gameDir, C:\Users\Gaming\AppData\Roaming\.minecraft, --assetsDir, C:\Users\Gaming\AppData\Roaming\.minecraft\assets, --assetIndex, 1.17, --uuid, a889dee5cd184fe7b91ede11d2acd85f, --accessToken, ????????, --userType, msa, --versionType, release, --launchTarget, forgeclient, --fml.forgeVersion, 37.0.126, --fml.mcVersion, 1.17.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20210706.113038] [29Nov2021 13:35:13.633] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 9.0.7+91+master.8569cdf starting: java version 16.0.1 by Microsoft [29Nov2021 13:35:13.746] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.4 Source=union:/C:/Users/Gaming/AppData/Roaming/.minecraft/libraries/org/spongepowered/mixin/0.8.4/mixin-0.8.4.jar%2318! Service=ModLauncher Env=CLIENT [29Nov2021 13:35:15.296] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'forgeclient' with arguments [--version, 1.17.1-forge-37.0.126, --gameDir, C:\Users\Gaming\AppData\Roaming\.minecraft, --assetsDir, C:\Users\Gaming\AppData\Roaming\.minecraft\assets, --uuid, a889dee5cd184fe7b91ede11d2acd85f, --username, Alsefri1423, --assetIndex, 1.17, --accessToken, ????????, --userType, msa, --versionType, release] [13:35:21] [Render thread/WARN]: Assets URL 'union:/C:/Users/Gaming/AppData/Roaming/.minecraft/libraries/net/minecraft/client/1.17.1-20210706.113038/client-1.17.1-20210706.113038-srg.jar%2353!/assets/.mcassetsroot' uses unexpected schema [13:35:21] [Render thread/WARN]: Assets URL 'union:/C:/Users/Gaming/AppData/Roaming/.minecraft/libraries/net/minecraft/client/1.17.1-20210706.113038/client-1.17.1-20210706.113038-srg.jar%2353!/data/.mcassetsroot' uses unexpected schema [29Nov2021 13:35:21.370] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [13:35:22] [Render thread/INFO]: Setting user: Alsefri1423 [13:35:22] [Render thread/INFO]: Backend library: LWJGL version 3.2.2 SNAPSHOT [13:35:24] [modloading-worker-2/INFO]: Forge mod loading, version 37.0.126, for MC 1.17.1 with MCP 20210706.113038 [13:35:24] [modloading-worker-2/INFO]: MinecraftForge v37.0.126 Initialized [13:35:24] [Render thread/WARN]: Removed resource pack Fabric Mods from options because it doesn't seem to exist anymore [29Nov2021 13:35:26.011] [Render thread/INFO] [com.mojang.text2speech.NarratorWindows/]: Narrator library for x64 successfully loaded [13:35:26] [Render thread/INFO]: Reloading ResourceManager: Default, Mod Resources [13:35:26] [modloading-worker-2/WARN]: Configuration file C:\Users\Gaming\AppData\Roaming\.minecraft\config\forge-client.toml is not correct. Correcting [13:35:26] [modloading-worker-2/WARN]: Incorrect key client.forceSystemNanoTime was corrected from null to its default, false.  [13:35:26] [modloading-worker-2/WARN]: Incorrect key client.disableStairSlabCulling was corrected from false to its default, null.  [13:35:26] [modloading-worker-2/WARN]: Incorrect key client.zoomInMissingModelTextInGui was corrected from false to its default, null.  [13:35:26] [modloading-worker-2/WARN]: Incorrect key client.forgeLightPipelineEnabled was corrected from true to its default, null.  [13:35:26] [modloading-worker-2/WARN]: Incorrect key client.forgeCloudsEnabled was corrected from true to its default, null.  [29Nov2021 13:35:26.669] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/net/minecraftforge/forge/promotions_slim.json [13:35:38] [Render thread/INFO]: OpenAL initialized. [13:35:38] [Render thread/INFO]: Sound engine started [13:35:38] [Render thread/INFO]: Created: 1024x512x4 minecraft:textures/atlas/blocks.png-atlas [13:35:38] [Render thread/INFO]: Created: 256x128x4 minecraft:textures/atlas/signs.png-atlas [13:35:38] [Render thread/INFO]: Created: 512x512x4 minecraft:textures/atlas/banner_patterns.png-atlas [13:35:38] [Render thread/INFO]: Created: 512x512x4 minecraft:textures/atlas/shield_patterns.png-atlas [13:35:38] [Render thread/INFO]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas [13:35:38] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas [13:35:38] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas [29Nov2021 13:35:38.817] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Found status: BETA Current: 37.0.126 Target: 37.0.126 [13:35:40] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas [13:35:40] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas [13:35:40] [Render thread/INFO]: Created: 128x128x0 minecraft:textures/atlas/mob_effects.png-atlas [13:35:51] [Render thread/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [13:35:51] [Render thread/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0] [13:35:51] [Render thread/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498] [13:35:51] [Render thread/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498] [13:35:51] [Render thread/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [13:35:51] [Render thread/INFO]: Reloading ResourceManager: Default, forge-1.17.1-37.0.126-universal.jar [13:35:54] [Render thread/INFO]: Loaded 7 recipes [13:35:55] [Render thread/INFO]: Loaded 1137 advancements [13:35:55] [Render thread/INFO]: Injecting existing registry data into this CLIENT instance [13:35:56] [Render thread/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [13:35:56] [Render thread/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0] [13:35:56] [Render thread/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498] [13:35:56] [Render thread/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498] [13:35:56] [Render thread/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [13:35:56] [Render thread/INFO]: Reloading ResourceManager: Default, forge-1.17.1-37.0.126-universal.jar [13:35:58] [Render thread/INFO]: Loaded 7 recipes [13:35:59] [Render thread/INFO]: Loaded 1137 advancements [13:36:00] [Render thread/INFO]: Injecting existing registry data into this CLIENT instance [29Nov2021 13:36:00.780] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [13:36:00] [Server thread/INFO]: Starting integrated minecraft server version 1.17.1 [13:36:00] [Server thread/INFO]: Generating keypair [13:36:01] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld [13:36:01] [Render thread/INFO]: Preparing spawn area: 0% [13:36:05] [Render thread/INFO]: Preparing spawn area: 0% [13:36:05] [Render thread/INFO]: Preparing spawn area: 0% [13:36:05] [Render thread/INFO]: Preparing spawn area: 0% [13:36:05] [Render thread/INFO]: Preparing spawn area: 0% [13:36:05] [Render thread/INFO]: Preparing spawn area: 0% [13:36:05] [Render thread/INFO]: Preparing spawn area: 0% [13:36:05] [Render thread/INFO]: Preparing spawn area: 0% [13:36:05] [Render thread/INFO]: Preparing spawn area: 0% [13:36:06] [Render thread/INFO]: Preparing spawn area: 56% [13:36:06] [Render thread/INFO]: Preparing spawn area: 76% [13:36:06] [Render thread/INFO]: Preparing spawn area: 88% [13:36:06] [Render thread/INFO]: Time elapsed: 5638 ms [13:36:06] [Server thread/INFO]: Changing view distance to 31, from 10 [13:36:08] [Netty Local Client IO #0/INFO]: Connected to a modded server. [13:36:08] [Server thread/INFO]: Using new advancement loading for net.minecraft.server.PlayerAdvancements@334a2b19 [13:36:08] [Server thread/INFO]: Alsefri1423[local:E:9ebcee60] logged in with entity id 113 at (-1414.803438468965, 64.0, 25.132433578510874) [13:36:08] [Server thread/INFO]: Alsefri1423 joined the game [13:36:09] [Server thread/INFO]: Saving and pausing game... [13:36:09] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld [13:36:09] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether [13:36:09] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end [13:36:09] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 2136ms or 42 ticks behind [13:36:10] [Render thread/INFO]: Loaded 174 advancements   My OS is Windows 10
    • Hello, I know I've been quite active here lately and I promise I'll get out of your hair once i can work out this final thing. Essentially I'm looking for a way to get the player's Position on a specific axis and use its value in an if statement. I've experimented with classes vec3 and vec3i as the method getY() seemed promising, but i didn't know how to use it with the player and I had issues with the method being non-static. Any help would be appreciated. 
    • This is why the MDK comes with a properly configured .gitignore file. Did you run genEclipseRuns? I don't use Eclipse, but your Repository works fine in IntelliJ.
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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