Логин: Пароль:
Регистрация
+ Ответить в теме
Показано с 1 по 2 из 2
  1. #1
    Новичок
    Сообщений
    1
    Регистрация
    23.03.2024
    Репутация

    Поблагодарил(а) 0
    Получено благодарностей: 0 (сообщений: 0).

    Помогите пожалуйста(

    Так начнем по делу, хочу создать мод на minecraft fordge 1.19.4 который будет выдавать всем игрокам в мире рандомный блок или предмет который только присутствует на данной версии, начел реализацию знаний ноль, но есть старый добрый youtube и chat gpt по ютубу все понятно сделал там JAVA_HOME там повырезал ненужное в коде, там fordge 1.19.4 в IntelliJ IDEA 2023.3.6 установил, ну вообще как положено, но чтобы мне chat gpt не говорил у меня тупо ошибка, сам мод без нечего у меня запускало (простая оболочка) а тут не запускает, делал все что только можно нечего не работает, и я просто пришел к выводу что мне надо помощь, прошу помогите.
    P.S:Если надо то вот build.gradle. И если хотите помочь мне напишите мне в ТГ или давайте созвонимся в ДС тг:https://t.me/brain_time_bro дс:ptichkayo


    plugins {
    id 'eclipse'
    id 'maven-publish'
    id 'net.minecraftforge.gradle' version '5.1.+'
    }
    // version numbering: major.medium.minor-Minecraft version
    version = '0.0.1-1.19.4'
    group = 'net.timofii.minigame' // http://maven.apache.org/guides/mini/...nventions.html
    archivesBaseName = 'minigame' //lowercase characters, numbers, dashes and underscores only

    // Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17.
    java.toolchain.languageVersion = JavaLanguageVersion.of(17)

    println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}"
    minecraft {
    // The mappings can be changed at any time and must be in the following format.
    // Channel: Version:
    // official MCVersion Official field/method names from Mojang mapping files
    // parchment YYYY.MM.DD-MCVersion Open community-sourced parameter names and javadocs layered on top of official
    //
    // You must be aware of the Mojang license when using the 'official' or 'parchment' mappings.
    // See more information here: https://github.com/MinecraftForge/MC...ster/Mojang.md
    //
    // Parchment is an unofficial project maintained by ParchmentMC, separate from MinecraftForge
    // Additional setup is needed to use their mappings: https://parchmentmc.org/docs/getting-started
    //
    // Use non-default mappings at your own risk. They may not always work.
    // Simply re-run your setup task after changing the mappings to update your workspace.
    mappings channel: 'official', version: '1.19.4'

    // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') // Currently, this location cannot be changed from the default.

    // Default run configurations.
    // These can be tweaked, removed, or duplicated as needed.
    runs {
    client {
    workingDirectory project.file('run')

    // Recommended logging data for a userdev environment
    // The markers can be added/remove as needed separated by commas.
    // "SCAN": For mods scan.
    // "REGISTRIES": For firing of registry events.
    // "REGISTRYDUMP": For getting the contents of all registries.
    property 'forge.logging.markers', 'REGISTRIES'

    // Recommended logging level for the console
    // You can set various levels here.
    // Please read: https://stackoverflow.com/questions/...ent-log-levels
    property 'forge.logging.console.level', 'debug'

    // Comma-separated list of namespaces to load gametests from. Empty = all namespaces.
    property 'forge.enabledGameTestNamespaces', 'minigame'

    mods {
    minigame {
    source sourceSets.main
    }
    }
    }

    server {
    workingDirectory project.file('run')

    property 'forge.logging.markers', 'REGISTRIES'

    property 'forge.logging.console.level', 'debug'

    property 'forge.enabledGameTestNamespaces', 'minigame'

    mods {
    minigame {
    source sourceSets.main
    }
    }
    }

    // This run config launches GameTestServer and runs all registered gametests, then exits.
    // By default, the server will crash when no gametests are provided.
    // The gametest system is also enabled by default for other run configs under the /test command.
    gameTestServer {
    workingDirectory project.file('run')

    property 'forge.logging.markers', 'REGISTRIES'

    property 'forge.logging.console.level', 'debug'

    property 'forge.enabledGameTestNamespaces', 'minigame'

    mods {
    minigame {
    source sourceSets.main
    }
    }
    }

    data {
    workingDirectory project.file('run')

    property 'forge.logging.markers', 'REGISTRIES'

    property 'forge.logging.console.level', 'debug'

    // Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.
    args '--mod', 'minigame', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')

    mods {
    minigame {
    source sourceSets.main
    }
    }
    }
    }
    }

    // Include resources generated by data generators.
    sourceSets.main.resources { srcDir 'src/generated/resources' }

    repositories {
    mavenCentral()
    maven {
    url 'https://files.minecraftforge.net/maven'
    }
    }
    dependencies {
    // Другие зависимости

    // Зависимость от Minecraft
    minecraft 'com.mojang:minecraft:1.19.4'
    }

  2. #2
    Местный
    Ваш статус
    Страшно, когда на ответы нет вопросов…
    Сообщений
    1,039
    Cервер
    Sky/OneBlock | Industrial
    Любимые моды
    IC2/AE2/ThaumCraft
    Текстур пак
    Свой
    Регистрация
    23.04.2019
    Адрес
    TM | Forum
    Репутация
    17  

    Поблагодарил(а) 276
    Получено благодарностей: 121 (сообщений: 65).
    Шансы написать что-то рабочее для майна без знаний языка - приравнивается к нулю.
    Изучи основу языка Java, а после уже можешь приступать к такой суете.

    [Industrial]
    Helper 12.04.19 - 13.05.19
    LowModer 13.05.19 - 09.06.19
    Moder 09.06.19 - 02.08.19
    Moder 11.05.2021 - 08.06.21
    [Forum]
    Moder 13.07.20 - 08.06.21
    [TechnoMagic]
    LowModer 22.09.19 - 06.10.19
    Moder 06.10.19 - 14.08.20
    [TechnoMagic3]
    Moder 09.04.20 - 31.10.20
    [TMSkyBlock]
    Moder 30.10.20 - 19.11.20
    HeadModer 19.11.20 - 08.06.21
    Moder 16.01.22 - 14.05.22
    HeadModer 06.10.22 - 30.10.22
    [OneBlock3]
    Moder 30.12.21 - 16.01.22
    [OneBlock]
    Moder 05.07.22 - 06.10.22
    HeadModer 06.10.22 - 12.12.22
    [OneBlock`s]
    Curator 12.12.22 - 26.03.2023
    [RaftBlock`s]
    Curator 27.01.23 - 26.03.2023
    [Техподдержка]
    16.09.22 - 26.03.2023

 


+ Ответить в теме

Информация о теме

Пользователи, просматривающие эту тему

Эту тему просматривают: 1 (пользователей: 0 , гостей: 1)

Ваши права

  • Вы не можете создавать новые темы
  • Вы не можете отвечать в темах
  • Вы не можете прикреплять вложения
  • Вы не можете редактировать свои сообщения
© MinecraftOnly