Guidebooks support + (WIP) mod guide
This commit is contained in:
parent
f1ca0a0628
commit
9593712e42
35
build.gradle
35
build.gradle
@ -132,38 +132,17 @@ mixin {
|
||||
sourceSets.main.resources { srcDir 'src/generated/resources' }
|
||||
|
||||
repositories {
|
||||
// Put repositories for dependencies here
|
||||
// ForgeGradle automatically adds the Forge maven and Maven Central for you
|
||||
|
||||
// If you have mod jar dependencies in ./libs, you can declare them as a repository like so.
|
||||
// See https://docs.gradle.org/current/userguide/declaring_repositories.html#sub:flat_dir_resolver
|
||||
// flatDir {
|
||||
// dir 'libs'
|
||||
// }
|
||||
maven {
|
||||
url "https://cursemaven.com"
|
||||
content {
|
||||
includeGroup "curse.maven"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// Specify the version of Minecraft to use.
|
||||
// Any artifact can be supplied so long as it has a "userdev" classifier artifact and is a compatible patcher artifact.
|
||||
// The "userdev" classifier will be requested and setup by ForgeGradle.
|
||||
// If the group id is "net.minecraft" and the artifact id is one of ["client", "server", "joined"],
|
||||
// then special handling is done to allow a setup of a vanilla dependency without the use of an external repository.
|
||||
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
|
||||
|
||||
// Example mod dependency with JEI - using fg.deobf() ensures the dependency is remapped to your development mappings
|
||||
// The JEI API is declared for compile time use, while the full JEI artifact is used at runtime
|
||||
// compileOnly fg.deobf("mezz.jei:jei-${mc_version}-common-api:${jei_version}")
|
||||
// compileOnly fg.deobf("mezz.jei:jei-${mc_version}-forge-api:${jei_version}")
|
||||
// runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}-forge:${jei_version}")
|
||||
|
||||
// Example mod dependency using a mod jar from ./libs with a flat dir repository
|
||||
// This maps to ./libs/coolmod-${mc_version}-${coolmod_version}.jar
|
||||
// The group id is ignored when searching -- in this case, it is "blank"
|
||||
// implementation fg.deobf("blank:coolmod-${mc_version}:${coolmod_version}")
|
||||
|
||||
// For more info:
|
||||
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
|
||||
// http://www.gradle.org/docs/current/userguide/dependency_management.html
|
||||
implementation fg.deobf("curse.maven:guidebook-253874:5341901")
|
||||
|
||||
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
|
||||
|
||||
|
@ -1,63 +1,30 @@
|
||||
# This is an example mods.toml file. It contains the data relating to the loading mods.
|
||||
# There are several mandatory fields (#mandatory), and many more that are optional (#optional).
|
||||
# The overall format is standard TOML format, v0.5.0.
|
||||
# Note that there are a couple of TOML lists in this file.
|
||||
# Find more information on toml format here: https://github.com/toml-lang/toml
|
||||
# The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
|
||||
modLoader = "javafml" #mandatory
|
||||
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
|
||||
loaderVersion = "${loader_version_range}" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
|
||||
# The license for you mod. This is mandatory metadata and allows for easier comprehension of your redistributive properties.
|
||||
# Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here.
|
||||
loaderVersion = "${loader_version_range}"
|
||||
license = "${mod_license}"
|
||||
# A URL to refer people to when problems occur with this mod
|
||||
#issueTrackerURL="https://change.me.to.your.issue.tracker.example.invalid/" #optional
|
||||
# A list of mods - how many allowed here is determined by the individual mod loader
|
||||
[[mods]] #mandatory
|
||||
# The modid of the mod
|
||||
modId = "${mod_id}" #mandatory
|
||||
# The version number of the mod
|
||||
version = "${mod_version}" #mandatory
|
||||
# A display name for the mod
|
||||
displayName = "${mod_name}" #mandatory
|
||||
# A URL to query for updates for this mod. See the JSON update specification https://docs.minecraftforge.net/en/latest/misc/updatechecker/
|
||||
#updateJSONURL="https://change.me.example.invalid/updates.json" #optional
|
||||
# A URL for the "homepage" for this mod, displayed in the mod UI
|
||||
#displayURL="https://change.me.to.your.mods.homepage.example.invalid/" #optional
|
||||
# A file name (in the root of the mod JAR) containing a logo for display
|
||||
#logoFile="magic.png" #optional
|
||||
# A text field displayed in the mod UI
|
||||
#credits="Thanks for this example mod goes to Java" #optional
|
||||
# A text field displayed in the mod UI
|
||||
authors = "${mod_authors}" #optional
|
||||
# Display Test controls the display for your mod in the server connection screen
|
||||
# MATCH_VERSION means that your mod will cause a red X if the versions on client and server differ. This is the default behaviour and should be what you choose if you have server and client elements to your mod.
|
||||
# IGNORE_SERVER_VERSION means that your mod will not cause a red X if it's present on the server but not on the client. This is what you should use if you're a server only mod.
|
||||
# IGNORE_ALL_VERSION means that your mod will not cause a red X if it's present on the client or the server. This is a special case and should only be used if your mod has no server component.
|
||||
# NONE means that no display test is set on your mod. You need to do this yourself, see IExtensionPoint.DisplayTest for more information. You can define any scheme you wish with this value.
|
||||
# IMPORTANT NOTE: this is NOT an instruction as to which environments (CLIENT or DEDICATED SERVER) your mod loads on. Your mod should load (and maybe do nothing!) whereever it finds itself.
|
||||
#displayTest="MATCH_VERSION" # MATCH_VERSION is the default if nothing is specified (#optional)
|
||||
|
||||
# The description text for the mod (multi line!) (#mandatory)
|
||||
[[mods]]
|
||||
modId = "${mod_id}"
|
||||
version = "${mod_version}"
|
||||
displayName = "${mod_name}"
|
||||
authors = "${mod_authors}"
|
||||
description = '''${mod_description}'''
|
||||
# A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional.
|
||||
[[dependencies."${mod_id}"]] #optional
|
||||
# the modid of the dependency
|
||||
modId = "forge" #mandatory
|
||||
# Does this dependency have to exist - if not, ordering below must be specified
|
||||
mandatory = true #mandatory
|
||||
# The version range of the dependency
|
||||
versionRange = "${forge_version_range}" #mandatory
|
||||
# An ordering relationship for the dependency - BEFORE or AFTER required if the dependency is not mandatory
|
||||
# BEFORE - This mod is loaded BEFORE the dependency
|
||||
# AFTER - This mod is loaded AFTER the dependency
|
||||
|
||||
[[dependencies."${mod_id}"]]
|
||||
modId = "forge"
|
||||
mandatory = true
|
||||
versionRange = "${forge_version_range}"
|
||||
ordering = "NONE"
|
||||
# Side this dependency is applied on - BOTH, CLIENT, or SERVER
|
||||
side = "BOTH"# Here's another dependency
|
||||
side = "BOTH"
|
||||
|
||||
[[dependencies."${mod_id}"]]
|
||||
modId = "minecraft"
|
||||
mandatory = true
|
||||
# This version range declares a minimum of the current minecraft version up to but not including the next major version
|
||||
versionRange = "${minecraft_version_range}"
|
||||
ordering = "NONE"
|
||||
side = "BOTH"
|
||||
|
||||
[[dependencies."${mod_id}"]]
|
||||
modId = "gbook"
|
||||
mandatory = false
|
||||
versionRange = "[3.8.3,)"
|
||||
ordering = "NONE"
|
||||
side = "CLIENT"
|
3
src/main/resources/assets/gbook/books.json
Normal file
3
src/main/resources/assets/gbook/books.json
Normal file
@ -0,0 +1,3 @@
|
||||
[
|
||||
"gbook:books/guide_magic.xml"
|
||||
]
|
52
src/main/resources/assets/gbook/books/guide_magic.xml
Normal file
52
src/main/resources/assets/gbook/books/guide_magic.xml
Normal file
@ -0,0 +1,52 @@
|
||||
<book title="Wizards Guide">
|
||||
<include ref="gbook:xml/standard.xml"/>
|
||||
<chapter id="ch_landing">
|
||||
<section id="se_landing">
|
||||
<page_title>
|
||||
<title>Guide to Magic</title>
|
||||
</page_title>
|
||||
<title>Content</title>
|
||||
<link ref=":se_wands">Wands</link>
|
||||
<link ref=":se_scrolls">Scrolls</link>
|
||||
<link ref=":se_amulets">Amulets</link>
|
||||
</section>
|
||||
</chapter>
|
||||
<chapter id="ch_wands">
|
||||
<section id="se_wands">
|
||||
<page_title>
|
||||
<title>Wands</title>
|
||||
</page_title>
|
||||
<title>General Info</title>
|
||||
<p>Wands shoot projectiles or affect the player on use.</p>
|
||||
<p>Some require being charged like a bow.</p>
|
||||
<title>Hurtful Wand</title>
|
||||
<p>Shoots a projectile that damages mobs</p>
|
||||
<title>Advanced Hurtful Wand</title>
|
||||
<p>Improves upon the hurtful wand with an area of effect on hit</p>
|
||||
</section>
|
||||
</chapter>
|
||||
<chapter id="ch_scrolls">
|
||||
<section id="se_scrolls">
|
||||
<page_title>
|
||||
<title>Scrolls</title>
|
||||
</page_title>
|
||||
<title>General Info</title>
|
||||
<p>All scrolls are consumed on use, except those with an enchantment glint</p>
|
||||
<title>Brittle Teleport Scroll</title>
|
||||
<p>Specify a target position by right-clicking a block. Click again to return there</p>
|
||||
</section>
|
||||
</chapter>
|
||||
<chapter id="ch_amulets">
|
||||
<section id="se_amulets">
|
||||
<page_title>
|
||||
<title>Amulets</title>
|
||||
</page_title>
|
||||
<title>General Info</title>
|
||||
<p>Amulets have passive effects, but only when inside a player inventory.</p>
|
||||
<title>Golden Amulet</title>
|
||||
<p>Prevents piglins from attacking, like gold armor.</p>
|
||||
<title>Bonemeal Amulet</title>
|
||||
<p>Applies Bonemeal to a close block every few ticks.</p>
|
||||
</section>
|
||||
</chapter>
|
||||
</book>
|
Loading…
x
Reference in New Issue
Block a user