Jump to content

Luis_ST

Members
  • Posts

    5704
  • Joined

  • Last visited

  • Days Won

    72

Everything posted by Luis_ST

  1. the problem has been fixed, unfortunately i still have a problem with my structure because i had to recreate it (because my hard drive crashed and destroyed many files). unfortunately i can't remember how i fixed the problem last time. The error is probably due to the fact that the structure is not correctly registered, because the game is always chrashed when I want to create a new world or i load a old world: This is the log: log.log I hope you can help me one last time
  2. the files of the server are created in the run folder of your forge mdk. As @vemerion has already explained you have to accept the eula, you also have to know that you are not logged into your IDE-Minecraft with a mojang account, which is why you have to set the option "online-mode" in the server server.properties file to false (Edit: this file is created at the second start after the eula has been accepted), otherwise you cannot join the server.
  3. i'm not sure but i don't think so, look at the village structure, it is also large but consists of several parts either to divide your structure into several smaller ones (take the villager structure as an example for the generation), or you create your own method that adapts the terrain to your structure unfortunately not, some methods have small notes, but most methods haven't. if you are looking for information about something you can try the following: Forge Community Wiki, the forge docs, the forge discord server and the forum
  4. then why does forge support java 8-15?
  5. okay make sense, and why?
  6. i updated a project to the latest forge version, when i try to start the dev minecraft environment, the game crashes (doesn't even start) where exactly is the error? THIS is the full log: Working Directory: C:\Users\luiss\Documents\GitHub\Forge-1.16.5-Nero Gradle user home: C:\Users\luiss\.gradle Gradle Distribution: Gradle wrapper from target build Gradle Version: 6.9 Java Home: C:\Users\luiss\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre JVM Arguments: None Program Arguments: None Build Scans Enabled: false Offline Mode Enabled: false Gradle Tasks: runClient > Configure project : Java: 15.0.1 JVM: 15.0.1+9-18(Oracle Corporation) Arch: amd64 WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this license. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the `hideOfficialWarningUntilChanged` task WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here. Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available at https://account.mojang.com/documents/minecraft_eula. > Task :compileJava C:\Users\luiss\Documents\GitHub\Forge-1.16.5-Nero\src\main\java\net\luis\nero\common\world\feature\ModDungeonsFeature.java:30: error: cannot find symbol private final Set<Block> replaceBlocks = Set.of(ModBlocks.DEEPSLATE.get(), ModBlocks.TUFF.get()); ^ symbol: method of(net.minecraft.block.Block,net.minecraft.block.Block) location: interface java.util.Set Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error > Task :compileJava FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileJava'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 3s 1 actionable task: 1 executed
  7. 1.12.2 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  8. okay in the path (set with JAVA_HOME) in which your IDE is looking ("C:\Program Files\Java\jre1.8.0_291") for a JDK there is a JRE, which means you have to download a JDK and put it in the folder that you have set with the JAVA_HOME system variable
  9. yes, you have to copy all values from the old capability into the new one, do this in the PlayerEvent.Clone
  10. the problem is not your code, it's your java jdk, it's not complete the required 'tools.jar' is missing simplest solution check whether 'tools.jar' is really missing or whether the file is just not found. if 'tools.jar' really don't exist download a new one
  11. please post the full log, because your code looks okay
  12. are there errors in the log, also show the complete class and is there a reason why you post your code as an image -> there is a code feature you can use
  13. your message/packet needs three methods encode, decode and handle. the most important method for you is the handle method in it you handle to open your gui, the other two are only necessary if you want to send data (but are required for registration) after reading the doc, here is a practical example
  14. @vemerion has already told you what you have to do
  15. okay i have tested something and found out that as you suspected it is not possible to prevent the player from moving, the movement of the player is calculated between TickEvent.Phase#START and TickEvent.Phase#END, therefore it is not possible to prevent the movement of the player after thinking about your problem, I have two options that you could try: used the key input event, and cancel this if the player tries to move in the direction he shouldn't move core modding, this would work, but is the last option you should use, because with core modding you can do anything, really anything (also core modding is not supported here in the forum, which is why you should use the forge discord chanel "non-api-modding" for this)
  16. yes no I tested your code in TickEvent.PlayerTickEvent and it works, -> the player can only move from northwest to southeast, the other direction works but the speed is very slow that would be the code you should be using: @EventBusSubscriber public class OnPlayerTickEvent { @SubscribeEvent public static void playerTick(TickEvent.PlayerTickEvent event) { PlayerEntity player = event.player; double d = 1; double cd = Math.cos(d); double sd = Math.sin(d); double td = player.getDeltaMovement().x * cd + player.getDeltaMovement().z * sd; if (player.getDeltaMovement().z != player.getDeltaMovement().x * Math.tan(d)) { player.setDeltaMovement(td * cd, player.getDeltaMovement().y, td * sd); } } }
  17. Your error is in the first line of your event, PlayerEntity extends the LivingEntity class, but a Player is not updated with LivingUpdateEvent, use the TickEvent.Player instead
  18. you can't use an effect that has no item if you want to use an effect that doesn't have a potion registered by vanilla, you have to register it yourself you can find all registered potions in the Potions class
  19. of which blocks and which properties
  20. yes i know but it's a possible way, you can also change most of the properties of a block Item.Properties or AbstractBlock.Properties? check if a player walk on the block and change the motion of the player use the PlayerEvent.BreakSpeed to change the strength read the javadoc of the event for more informations
  21. overwrite the block, -> create a normal block but register it with the minecraft id Also note that if the block you are overwriting is used in the world generation, you must also overwrite the feature in which the block is used, otherwise errors can occur in the world generation
  22. 1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  23. yes or if you have data that only exist on one side (Edit: Example would be a capability)
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.