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

Eiachh

Members
  • Posts

    37
  • Joined

  • Last visited

Posts posted by Eiachh

  1. Hi,

    Is there a fixed location where the data would be stored about companions in minecraft save files, like wolf location or any mob inherited from that class?

    Or is it just stored randomly in one of the files?

    To be clear Its not a wolf but a Cockatrice from Ice and Fire mod that I am looking for. I just assume it hopefully uses the same scheme.

    Thanks in advance.

  2. 4 hours ago, DaemonUmbra said:

    This isn't coming from Forge or Minecraft, this is coming out of Java itself or a native library.

    Is this a client or a server and how are you launching it?

    It's a client(windows) and i launch it through twitch Launcher method "Jar Launcher" (Its that old is big white box launcher.
     

    I can't just go and cry at the javas site with this crash log right? :D Cause at this point this really bothers me that what can cause it. My last tip is wrong not the newest nvidia driver but I doubt it has anything to do with java crash.

  3. Hello!

    So to begin with I am a programmer but can someone help figure this out,  cause i have no clue whats wrong with my gf-s pc

     

    Java is the freshest  since I was at dev forums watching similar problems in older versions

     

    I was reading the logs but couldn't find anything out it's not the simple null pointer exception at:line

     

    Also the most annoying thing is its inconsistent usually crashes at start but sometimes doesn't.

    The pastebin i guess it says all.

     

    Edit: This is Twitch Ozone 3 btw

  4. Well for starter from the item class i would not use the constructor with a Const string but instead maybe use the constructors 2 parameter for "unlocalizedname" and "registryName"

    But since you use it onlyonce i am not sure if it would cause any crash.... anybody? IDK if it would cause the crash

     

    public ItemKufariyIgnot(String unlocalizedName, String registryName) {
            setUnlocalizedName(WingsAndCloksMod.MODID + "." + "itemKufariy_ignot");
            setRegistryName("kufariy_ignot_item");
            setCreativeTab(CreativeTabs.MISC);
        }

     

  5. Well if you really want a tutorial then read and ignore youtbe videos. I have a feeling that all the guys who make youtube videos can only do thoose basic stuff and nothing else. They even use the exact same example.

    What I did i used this tutorial: This

    Then start to read the documentation. If you dont like to do it like nobody in the world just read the getting started and the Concepts exspecially this. (About the proxies)

    Then i watched his videos.


    Now maybe some will say this is "hand feading and exspecially don't watch guides" but to start this was kinda ok for me (but really dont watch guides on youtube). Thoose videos are really helpfull if you have the base concept.
    Sadly to answer your exact question idk what "ModLoader" method do you mean exactly?

  6. 6 hours ago, Draco18s said:

    Caused by: java.lang.NullPointerException
        at net.minecraft.client.renderer.block.model.ModelResourceLocation.<init>(ModelResourceLocation.java:24)

        at com.DrVaristy.LeeMod.Proxy.ClientProxy.registerItemRenderer(ClientProxy.java:11)

     

    Something on line 11 of your client proxy is null.  I can't tell you what because I'm not bloody psychic.

    XD I swear I sometimes come to the forum just to read your answers. Quality entertainment.

  7. 19 hours ago, Darkloud89 said:

    I'm new to Forge and I  am finding the documentation rather lackluster...

    1) Is there a better source for Forge information, functions, etc?

    2) I am trying to make an easy to use teleportation command. I am able to teleport the player to another dimension, and at any coordiantes I choose, however I cannot figure out how to get another players coordinates and teleport the user to the player.

     

    Any help would be greatly appreciated!

    I would start to dig in:

     net.minecraft.server.MinecraftServer;

     

    This object has a MinecraftServer#getplayerList()   //Ps: just dont use it on the client side

  8. 1 hour ago, Dr_Coungrations said:
    
    {
        "parent": "item/generated",
        "textures": {
            "layer0": "tutorialmod:items/bluestone_dust_item"
        }
    }

    bluestone_dust_item: 16×16 pixels...

    Just to make sure your modid is "tutorialmod" and not "ms" as even the game says right?

  9. 1 minute ago, desht said:

    Well, you could send a custom packet from the server to tell the client what happened.  But - directed at @Eiachh - this feels a bit like an XY problem.  Why do you need this level of information on the client in the first place, and what are you trying to achieve?

    Well basically I DONT there were this guy who were trying to make a CLIENT SIDE ONLY mod which would do somethign when a player dies "show particles" but this solution would involve the mod to be on the server as well.

    Anyway I am not bothering with it anymore since if i would need it i would just install it on the server as well and make the server handle it. But beside this I still don't understand why is this event fireing all the time(on the client) when a mobentity dies without missing even 1 but never fires when a player dies. But fires flawlessly on the physical server side.

  10. You create a new block and register it:
     

    //Register<Block> event

    //somewhere in your code 
    final Block[] blocks = {
                    new BlockBasic(Material.ROCK, "first_block", "my_first_block")
    };
    
    event.getRegistry().registerAll(blocks);

    Then you register the items with the reference of the previously mentioned block above (in my case they are stored in TutorialBlocks)
     

     final Item[] itemBlocks = {
                    new ItemBlock(TutorialBlocks.MY_FIRST_BLOCK).setRegistryName(TutorialBlocks.MY_FIRST_BLOCK.getRegistryName())
    };
    //this is the event where you would register your items normally
    event.getRegistry().registerAll(itemBlocks);

    Then you register the model as you would do with an item
     

    registerModel(Item.getItemFromBlock(TutorialBlocks.MY_FIRST_BLOCK));
    
     private static void registerModel(Item item) {
            ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));
        }

    If you need the .jsons as well tag me.

    • Thanks 1
  11. 29 minutes ago, diesieben07 said:

    It is working "on local", since in single player client and server run in the same JVM, so your code runs on the server side. LivingDeathEvent is only reliable on the server, the server does not really tell the client about entity deaths, the client only knows "the entity no longer exists". There is no way to distinguish between "the entity despawned" and "the entity was killed by an arrow" on the client. This kind of stuff must be done on the server.

    You might want to read up on how sides work: https://mcforge.readthedocs.io/en/latest/concepts/sides/.

    Okay understood I did it with serverside and  it is indeed working there. But I dont get the client part still. I was aware of the sides but can you explain this please then

    If the LivingDeathEvent  is only reliable on the server how could i catch a packet that informs the client that some Entity has to disappear since the client is informed correctly and reliably every time something dies.

    PS: i know its easier on the server still BUT the example was a client sided only mod. So how would you get any info when an entity dies? eg:can the proxy catch the targetted packet?

  12. So I tried to answer a thread here and i made an example which works fine at local 

    When game is "singleplayer" the onLivingDeath fires on
    All entities

    When game is "multiplayer" the onLivingDeath fires on
    All entities but any form of players

    This is weird since the documentation says it will fire on  EntityPlayers

     

    @SubscribeEvent
    	public void reeewdyeven(LivingDeathEvent event){
    		System.out.println("WTF");
    		if (true){
    			System.out.println("asd");
    			Minecraft mc = Minecraft.getMinecraft();
    			mc.player.sendChatMessage(" died");
    		}
    	}


    This is Running on my client and does say in server chat "died" when a mob dies

    Does nothing when the owner (ME) or any player dies.
    Is there any other event that catches it or how does your client even notices that somebody died then? (why is it working on local??? )

  13. Also there is no such thing as "only client side"  if you use forge

    https://mcforge.readthedocs.io/en/latest/concepts/sides/

    "It is important to understand that FML picks the proxy to instantiate based on the physical side. A single player world (logical server + logical client within a physical client) will still have a proxy of the type you specify in clientSide!"

    Even if you are in singleplayer technically you have a "server"

  14. 6 minutes ago, Scorpyon04 said:

    Damn :(

     

    @SubscribeEvent
    	public void reeewdyeven(LivingDeathEvent event){
    		if (event.getEntityLiving() instanceof  EntityPlayer || event.getEntityLiving() instanceof  EntityPlayerMP){
    			System.out.println("asd");
    			Minecraft mc = Minecraft.getMinecraft();
    			mc.player.sendChatMessage("asdasd");
    
    		}
    	}

    This event is clientsided as well tho idk what you were talking about

    So now you dont have to look for the log files

  15. 12 minutes ago, Scorpyon04 said:

    Still cant hear it

    @SubscribeEvent
    	public void reeewdyeven(LivingDeathEvent event){
    		if (event.getEntityLiving() instanceof  EntityPlayer || event.getEntityLiving() instanceof  EntityPlayerMP){
    			System.out.println("asd");
    		}
    	}
    

    https://cdn.discordapp.com/attachments/526458081329152002/529999484885925918/unknown.png
     

    Try this if its printing then solve the sound. Ihave no clue to sounds in minecraft yet

×
×
  • Create New...

Important Information

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