Differentiation
Members-
Posts
606 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Differentiation
-
But what does "flyable bats" mean in this context?
-
Is this a boolean statement? Can you please show us ALL the code you have so that we can help? You might also want to incorporate this code to check for the running side: public class SideTest //Not the name I recommend, nor do I have this name, but incorporate the below method in some class... { public static void getSide(World worldIn) { if (worldIn.isRemote) { System.out.println("CLIENT"); } if (!worldIn.isRemote) { System.out.println("SERVER"); //These show as the color RED in the client as info, so it's easy to see! } } } And then where ever you want to test for the side, you call this static method. This is how I test the running thread on my mod. If the server is NOT running, then the boolean statement will not run and will automatically return false since the server did not read it, of course. Then this means that you need to send a packet to the server. I hope I made things a bit more clear! Try what I told you, then respond with the results If you're still having trouble Oh, and lastly, please don't use @SideOnly(Side.SERVER) or @SideOnly(Side.CLIENT), they don't help in this context.
-
Additionally, you may need to set up your project (mod) first! Make sure you don't just start making random classes!
-
There are two things you may be talking about: 1. Firing lightnings when the player left-clicks at anything, or 2. Firing lightnings when the player hits an entity. For the first option, you follow these steps. I, however, recommend you learn some Forge modding first. Once you did, follow these steps: 1. Use the MousInputEvent and fire it when the player left clicks. 2. Once fired, get the player's look vector by using the Vec3d class. 3. Summon a lightning bolt at the player's look vector. Make sure you manage each side (server and client side) appropriately when summoning! For the second option, follow these steps: 1. Use the LivingAttackEvent which fires when an entity attacks another. 3. Summon a lightning bolt at the target. Make sure you manage each side (server and client side) appropriately when summoning! Hope this kind of helps. Again, you can see that you must have prior knowledge of Forge code. I can relate to your state. When I started modding, I only knew Java, but not Forge API. Then I learned step by step and I am still learning the complex parts! It does take some time, but I believe 200 hours is plenty more than enough to get some things done, only if you manage your time wisely and learn as much as possible.
-
Some events are only read by the logical client, or logical server, or both, depending on the result of the event. Therefore, if only a client responds, you need to send packets to the logical server telling it to perform certain code that the client is not responsible for performing, like @diesieben07 mentioned. NOTE: if you perform server-side code on client-side, it may not work... packets...
-
Hypixel Moderators aren't better than Forge experts in code because "int totalCoins = 0; totalCoins = totalCoins + coins;" is blatantly wrong.
-
Backseat moderator? I'm saying the truth. I thought that the rules say that "if you don't have knowledge of basic Java, you won't get help..." Am I wrong?
-
wtf is this? Do you even know how to handle variables? Where did you get this code from? Again, you should learn some basic Java before starting your project.
-
Step 1: Locating Your Minecraft FolderFirstly, start by opening a Finder window. You can do this by clicking on the icon which looks like a face in your Dock (the bar usually found at the bottom of your screen). This will present you with a window which should look something like this (yours will probably have files displayed). Once you have this window open and selected, make sure that you have the Finder window selected, click the “Go” button on the top of your screen, and select the “Go to Folder…” option from the menu. This will open a prompt in the Finder window asking for a folder. Enter this location and then click “Go” or hit enter. ~/Library/Application Support Be careful when browsing this folder as this contains settings and system files for many of the applications installed on your Mac. We’re only looking for the minecraft folder here, so don’t touch anything else.Find the minecraft folder in the folder (Application Support) you just navigated to. Step 2 (Optional): Backup Your Minecraft Files (inc. Worlds, Settings, etc.)You must do this if you want to keep your Minecraft worlds and you currently use the default directory for storing Minecraft profile data (default, and most common)!If you have world saves, options, etc. that you want to keep after you reset your Minecraft installation, you need to back those up now. To do this, enter the minecraft folder. Once inside this folder, select all of the items you wish to save. See the list below for items you may wish to copy: resourcepacks (folder) - Contains the resource packs you have installed on your client. saves (folder) - Contains your Minecraft world saves. screenshots (folder) - Contains your Minecraft screenshots. options.txt (file) - Contains your Minecraft options and settings. servers.dat (file) - Contains your multiplayer server list. Once you have selected all of the files and folders you wish to backup, right click on them and select the Copy option from the menu. Navigate to another folder (outside of the minecraft folder), such as your Desktop or Documents folders, and paste the files and folders you copied there (right click on an empty space and click paste in the correct folder).Remember where you put this so you can find it again later.Step 3: Removing Your Minecraft FolderIf you entered the minecraft folder in Step 2 to backup your save folder, click the back button now to return to the Application Support folder. If you’ve lost this folder, follow Step 1 to find it again.Now for the easy part. To remove your existing Minecraft installation (settings, configs, etc.), right click on the minecraft folder and select the “Move to Trash” option from the menu. That’s it. You may also want to empty your trash folder at this point to make sure that the files are completely removed from your system. To do this, click the Trash icon on your Dock and click the Empty button in the window that appears.Take note of the files in the trash before clicking empty. All of these files will be deleted on emptying the trash, so always check first to make sure you’re not removing something you might need later! The OS will give you a similar warning when emptying the trash. Finally, restart your computer to make sure that any temporary files that might be on your system are removed. This is unlikely to be the case, but it always good as a precaution.Step 4: All Done!You can now reopen the Minecraft Launcher (which should still be on your system). You may need to relogin at this point since your client has effectively been reset.Once this is done, you will be able to click the Play button as normal, which will take a little longer than usual as your client has to download the latest version of Minecraft again.
-
Mods in mod folder but not all mods show up
Differentiation replied to ExoticButterssss's topic in Support & Bug Reports
Are you on a SinglePlayer or MultiPlayer world (server)?