Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
9e93990
upgrade gradle version
Sinhika Aug 15, 2021
6584cb7
updated .gitignore, prepped for remapping
Sinhika Aug 15, 2021
6928b1d
classname remapping complete
Sinhika Aug 15, 2021
49d081d
updated versions in gradle.properties
Sinhika Aug 15, 2021
65c34a0
now build.gradle is fixed up
Sinhika Aug 15, 2021
35399ec
created sorted Item Tiers; lots of fixes from porting
Sinhika Aug 20, 2021
0b363bd
added some new textures from Beckyh2112; fixed up block tags for mini…
Sinhika Aug 20, 2021
feedc76
updated simplecorelib version, mods.toml, some work done on oregen, r…
Sinhika Aug 21, 2021
0e621d3
Ore generation compiles, at least. Noted which values are just ignore…
Sinhika Aug 21, 2021
7604ead
moved Feature registration to own init class
Sinhika Aug 21, 2021
53194d3
regenerated datagen files; now have mineable tags
Sinhika Aug 21, 2021
08e6777
created scripts to make new raw_metal blocks & item models
Sinhika Aug 21, 2021
35c6833
added raw materials models, blockstates, and to en_us lang
Sinhika Aug 21, 2021
bb65645
added raw_metal blocks and items
Sinhika Aug 21, 2021
b273075
updated pack.mcmeta version; added raw_metals to ore drops, and raw_m…
Sinhika Aug 21, 2021
133c0ad
added generated loot tables
Sinhika Aug 21, 2021
df2d9eb
removed test block for dark fyrite; switched to new texture for fyrit…
Sinhika Aug 21, 2021
a18555a
updated README
Sinhika Aug 21, 2021
1eed7e0
removed a bunch of hand-tweaked json files because they are now in da…
Sinhika Aug 22, 2021
b8cf207
added recipe datagen, and all new generated jsons
Sinhika Aug 22, 2021
0046344
tweaked block hardnesses to be more inline with modern values; tweake…
Sinhika Aug 22, 2021
b29f5be
update.json now has 1.17.1 fields
Sinhika Aug 23, 2021
b3a8829
added JEI support back in (WIP -- still needs nether furnace fuel sup…
Sinhika Aug 23, 2021
a1c00ff
implemented nether furnace fuel in JEI. WIP; icon is wrong
Sinhika Aug 24, 2021
bfe08d6
fully implemented NetherFurnaceFuelCategory for JEI. Had to make my o…
Sinhika Aug 26, 2021
2f5afa8
updated for removal/move of api.jei stuff to SimpleCoreLib; made neth…
Sinhika Aug 26, 2021
ee91315
moved those textures to SimpleCoreLib
Sinhika Aug 26, 2021
becdd10
added textures from BeckonCall.
Sinhika Aug 28, 2021
357abd6
updated json
Sinhika Aug 28, 2021
421aaf1
fixed JEI nether furnace standard smelt time, because nether furnaces…
Sinhika Aug 28, 2021
55d6af8
updated json
Sinhika Aug 28, 2021
e8e0402
isolate netherrocks/jei stuff so it isn't loaded when jei isn't avail…
Sinhika Sep 1, 2021
8cbe49e
temporarily disable fyrite auto-smelting until universal auto-smeltin…
Sinhika Sep 1, 2021
c4c1b0f
simplify global loot modifier auto_smelt_tool by matching tool to a t…
Sinhika Sep 2, 2021
4379167
updated json
Sinhika Sep 2, 2021
8ceca9f
updated forge version, simplecore/simpleores version, mods.toml
Sinhika Sep 4, 2021
a79ad0c
added Netherrocks Aesthetics blocks and block rendering cutouts; WIP
Sinhika Sep 4, 2021
e87dbab
added enableAestheticBlocks to config; added mining tags for Aestheti…
Sinhika Sep 4, 2021
ed79930
added item tags for aesthetics blocks; started adding recipes for aes…
Sinhika Sep 4, 2021
73236fe
added loot drops for Netherrocks Aesthetics blocks; added Netherrocks…
Sinhika Sep 4, 2021
28d5adb
added blockstate and model generation for brick slabs
Sinhika Sep 4, 2021
31e183f
added generated resources for Netherrocks Aesthetics
Sinhika Sep 4, 2021
b8fa643
movedNetherrock Aesthetics assets from Aesthetics mod
Sinhika Sep 4, 2021
2e97c62
renamed all 'aesthetics' to 'netherrocks'
Sinhika Sep 5, 2021
37501fc
added to README.
Sinhika Sep 5, 2021
b88d3bc
made all recipes datagen
Sinhika Sep 10, 2021
e07ac56
added generated recipes and recipe advancements
Sinhika Sep 10, 2021
e7659da
added slabs to lang file; updated forge and simplecore versions
Sinhika Sep 11, 2021
ec0750b
updated simplecorelib version
Sinhika Sep 11, 2021
5df1392
fixed brick_slab blockstates; redid slab loot datagen, added re-gener…
Sinhika Sep 11, 2021
4aa0e44
updated mods.toml for new required SimpleCoreLib
Sinhika Sep 11, 2021
010f3dd
updated json
Sinhika Sep 11, 2021
0a40574
updated forge version
Sinhika Oct 20, 2021
41d11ec
updated forge & simplecorelib versions
Sinhika Nov 24, 2021
4fbe365
fixed handling of 'final' version tag; rebuilt final 1.17 version
Sinhika Jan 12, 2022
b87a054
updated json
Sinhika Jan 12, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build/
src/generated/resources/.cache/
gradle/
run/
libs/
Expand All @@ -8,14 +9,11 @@ libs/
*.jar
*.class
*~
.*.swp
.classpath
gradlew
build.number
gradlew.bat
build.number
bin/
.gradle/
/bin/
.project
.idea/
src/generated/resources/.cache/cache
.project
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ Forge mods. I hope I did a good job with it.

TO DO
-----
* Add language entries for brick slabs.
* Investigate doors, they aren't behaving correctly for metal doors.
* <s>[1.17.1] add missing raw metal textures.</s>
* <s>[1.17.1] add datagen recipes for raw_metal_blocks & smelting/blasting raw_metal.</s>
* <s>[1.17.1] add datagen storage block tags for raw_metal blocks.</s>
* update/move wiki
* Decide if we really need more detailed configs than that.
* Add shears for all metals.
Expand Down
22 changes: 8 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '4.1.+', changing: true
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
}
}
apply plugin: 'net.minecraftforge.gradle'
Expand All @@ -21,25 +21,16 @@ def getVersionAppendage() {
return "DEV-" + proc.text.trim()
}

version = "${version_minecraft}-${version_mod}." + getVersionAppendage()
version = "${version_minecraft}-${version_mod}." + getVersionAppendage() + '-final'
group = 'mod.alexndr.netherrocks'
archivesBaseName = 'netherrocks'

java.toolchain.languageVersion = JavaLanguageVersion.of(8) // Mojang ships Java 8 to end users, so your mod should target Java 8.
java.toolchain.languageVersion = JavaLanguageVersion.of(16)

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:
// snapshot YYYYMMDD Snapshot are built nightly.
// stable # Stables are built at the discretion of the MCP team.
// official MCVersion Official field/method names from Mojang mapping files
//
// You must be aware of the Mojang license when using the 'official' mappings.
// See more information here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md
//
// 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: 'snapshot', version: "${version_snapshot}"
mappings channel: 'official', version: "${version_minecraft}"
Expand Down Expand Up @@ -146,17 +137,20 @@ repositories {
// Include resources generated by data generators.
sourceSets.main.resources { srcDir 'src/generated/resources' }

// sourceSets.main.java {
// exclude 'mod/alexndr/netherrocks/client/jei/**'
// }

dependencies {
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
minecraft "net.minecraftforge:forge:${version_forge}"
compile fg.deobf("simplecore-api:SimpleCoreLib:${simplecorelib_version}")
implementation fg.deobf("simplecore-api:SimpleCoreLib:${simplecorelib_version}")
// compile against the JEI API but do not include it at runtime
compileOnly fg.deobf("mezz.jei:jei-${version_mcjei}:${jei_version}:api")
// at runtime, use the full JEI jar
runtimeOnly fg.deobf("mezz.jei:jei-${version_mcjei}:${jei_version}")

}

// Example for how to get properties into the manifest for reading by the runtime..
Expand Down
16 changes: 8 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
# This is required to provide enough memory for the Minecraft decompilation process.
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
org.gradle.java.home=/usr/lib/jvm/java-1.8.0-openjdk-amd64
org.gradle.java.home=/usr/lib/jvm/adoptopenjdk-16-hotspot-amd64

# general
version_minecraft = 1.16.5
#version_snapshot = 20201028-1.16.3
version_forge = 1.16.5-36.2.2
version_minecraft = 1.17.1
version_forge = 1.17.1-37.1.1

# Simple Ores: Netherrocks
version_mod = 2.3.6
simplecorelib_version = 1.16.5-2.0.8.22
version_mcjei = 1.16.5
jei_version = 7.6.4.90
version_mod = 3.0.0
simplecorelib_version = 1.17.1-3.0.5.3-final
simpleores_version = 1.17.1-3.0.1.6-final
version_mcjei = 1.17.1
jei_version = 8.3.0.45
57 changes: 57 additions & 0 deletions scripts/generate_jsons.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/bin/bash

# scripts are from mod_utils project on my GitHub.

ID='netherrocks'
NAME='Netherrocks'
TOPDIR=`pwd`
PROJNAME=`basename $TOPDIR`
if [ $PROJNAME != $NAME ]; then
echo "Running in wrong directory!"
exit 1
fi

# blockstates
TARGETDIR=${TOPDIR}/src/main/resources/assets/${ID}/blockstates
if [ ! -d $TARGETDIR ]; then
mkdir -p $TARGETDIR
fi
cd $TARGETDIR

# make simple blockstates
gen_blockstate_jsons.py --type=simple raw_fyrite_block
gen_blockstate_jsons.py --type=simple raw_illumenite_block
gen_blockstate_jsons.py --type=simple raw_argonite_block
gen_blockstate_jsons.py --type=simple raw_malachite_block
gen_blockstate_jsons.py --type=slab argonite_brick_slab
gen_blockstate_jsons.py --type=slab ashstone_brick_slab
gen_blockstate_jsons.py --type=slab dragonstone_brick_slab
gen_blockstate_jsons.py --type=slab fyrite_brick_slab
gen_blockstate_jsons.py --type=slab illumenite_brick_slab
gen_blockstate_jsons.py --type=slab malachite_brick_slab

# models
TARGETDIR=${TOPDIR}/src/main/resources/assets/${ID}/models
if [ ! -d $TARGETDIR ]; then
mkdir -p $TARGETDIR
fi
cd $TARGETDIR

# block models
gen_model_jsons.py --type=block raw_fyrite_block
gen_model_jsons.py --type=block raw_illumenite_block
gen_model_jsons.py --type=block raw_argonite_block
gen_model_jsons.py --type=block raw_malachite_block
gen_model_jsons.py --type=slab argonite_brick_slab
gen_model_jsons.py --type=slab ashstone_brick_slab
gen_model_jsons.py --type=slab dragonstone_brick_slab
gen_model_jsons.py --type=slab fyrite_brick_slab
gen_model_jsons.py --type=slab illumenite_brick_slab
gen_model_jsons.py --type=slab malachite_brick_slab

#inventory items
gen_model_jsons.py --type=inventory --item_only raw_fyrite
gen_model_jsons.py --type=inventory --item_only raw_illumenite
gen_model_jsons.py --type=inventory --item_only raw_argonite
gen_model_jsons.py --type=inventory --item_only raw_malachite

Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
"replace": false,
"values": [
"#forge:storage_blocks/malachite",
"#forge:storage_blocks/fyrite",
"#forge:storage_blocks/argonite",
"#forge:storage_blocks/ashstone",
"#forge:storage_blocks/dragonstone",
"#forge:storage_blocks/argonite",
"#forge:storage_blocks/illumenite",
"#forge:storage_blocks/fyrite"
"#forge:storage_blocks/raw_malachite",
"#forge:storage_blocks/raw_fyrite",
"#forge:storage_blocks/raw_argonite",
"#forge:storage_blocks/raw_illumenite"
]
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"replace": false,
"values": [
"netherrocks:ashstone_block"
"netherrocks:raw_argonite_block"
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"replace": false,
"values": [
"netherrocks:argonite_block"
"netherrocks:raw_fyrite_block"
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"replace": false,
"values": [
"netherrocks:fyrite_block"
"netherrocks:raw_illumenite_block"
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"replace": false,
"values": [
"netherrocks:dragonstone_block"
"netherrocks:raw_malachite_block"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"replace": false,
"values": [
"netherrocks:argonite_block",
"netherrocks:fyrite_block",
"netherrocks:illumenite_block",
"netherrocks:malachite_block"
]
}
11 changes: 11 additions & 0 deletions src/generated/resources/data/minecraft/tags/blocks/doors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"replace": false,
"values": [
"netherrocks:argonite_door",
"netherrocks:ashstone_door",
"netherrocks:dragonstone_door",
"netherrocks:fyrite_door",
"netherrocks:illumenite_door",
"netherrocks:malachite_door"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"replace": false,
"values": [
"netherrocks:argonite_block",
"netherrocks:argonite_ore",
"netherrocks:argonite_bars",
"netherrocks:argonite_brick_slab",
"netherrocks:argonite_brick_stairs",
"netherrocks:argonite_bricks",
"netherrocks:argonite_door",
"netherrocks:ashstone_block",
"netherrocks:ashstone_ore",
"netherrocks:ashstone_bars",
"netherrocks:ashstone_brick_slab",
"netherrocks:ashstone_brick_stairs",
"netherrocks:ashstone_bricks",
"netherrocks:ashstone_door",
"netherrocks:dragonstone_ore",
"netherrocks:dragonstone_block",
"netherrocks:dragonstone_bars",
"netherrocks:dragonstone_brick_slab",
"netherrocks:dragonstone_brick_stairs",
"netherrocks:dragonstone_bricks",
"netherrocks:dragonstone_door",
"netherrocks:fyrite_block",
"netherrocks:fyrite_ore",
"netherrocks:fyrite_bars",
"netherrocks:fyrite_brick_slab",
"netherrocks:fyrite_brick_stairs",
"netherrocks:fyrite_bricks",
"netherrocks:fyrite_door",
"netherrocks:illumenite_block",
"netherrocks:illumenite_ore",
"netherrocks:illumenite_bars",
"netherrocks:illumenite_brick_slab",
"netherrocks:illumenite_brick_stairs",
"netherrocks:illumenite_bricks",
"netherrocks:illumenite_door",
"netherrocks:malachite_block",
"netherrocks:malachite_ore",
"netherrocks:malachite_bars",
"netherrocks:malachite_brick_slab",
"netherrocks:malachite_brick_stairs",
"netherrocks:malachite_bricks",
"netherrocks:malachite_door",
"netherrocks:raw_argonite_block",
"netherrocks:raw_fyrite_block",
"netherrocks:raw_illumenite_block",
"netherrocks:raw_malachite_block",
"netherrocks:nether_blast_furnace",
"netherrocks:nether_furnace",
"netherrocks:nether_smoker"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"replace": false,
"values": [
"netherrocks:argonite_block",
"netherrocks:argonite_ore",
"netherrocks:argonite_bars",
"netherrocks:argonite_brick_slab",
"netherrocks:argonite_brick_stairs",
"netherrocks:argonite_bricks",
"netherrocks:argonite_door",
"netherrocks:ashstone_block",
"netherrocks:ashstone_ore",
"netherrocks:ashstone_bars",
"netherrocks:ashstone_brick_slab",
"netherrocks:ashstone_brick_stairs",
"netherrocks:ashstone_bricks",
"netherrocks:ashstone_door",
"netherrocks:dragonstone_block",
"netherrocks:dragonstone_ore",
"netherrocks:dragonstone_bars",
"netherrocks:dragonstone_brick_slab",
"netherrocks:dragonstone_brick_stairs",
"netherrocks:dragonstone_bricks",
"netherrocks:dragonstone_door",
"netherrocks:raw_argonite_block"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"replace": false,
"values": [
"netherrocks:fyrite_block",
"netherrocks:fyrite_ore",
"netherrocks:fyrite_bars",
"netherrocks:fyrite_brick_slab",
"netherrocks:fyrite_brick_stairs",
"netherrocks:fyrite_bricks",
"netherrocks:fyrite_door",
"netherrocks:illumenite_block",
"netherrocks:illumenite_ore",
"netherrocks:illumenite_bars",
"netherrocks:illumenite_brick_slab",
"netherrocks:illumenite_brick_stairs",
"netherrocks:illumenite_bricks",
"netherrocks:illumenite_door",
"netherrocks:malachite_block",
"netherrocks:malachite_ore",
"netherrocks:malachite_bars",
"netherrocks:malachite_brick_slab",
"netherrocks:malachite_brick_stairs",
"netherrocks:malachite_bricks",
"netherrocks:malachite_door",
"netherrocks:raw_fyrite_block",
"netherrocks:raw_illumenite_block",
"netherrocks:raw_malachite_block"
]
}
11 changes: 11 additions & 0 deletions src/generated/resources/data/minecraft/tags/blocks/slabs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"replace": false,
"values": [
"netherrocks:argonite_brick_slab",
"netherrocks:ashstone_brick_slab",
"netherrocks:dragonstone_brick_slab",
"netherrocks:fyrite_brick_slab",
"netherrocks:illumenite_brick_slab",
"netherrocks:malachite_brick_slab"
]
}
11 changes: 11 additions & 0 deletions src/generated/resources/data/minecraft/tags/blocks/stairs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"replace": false,
"values": [
"netherrocks:argonite_brick_stairs",
"netherrocks:ashstone_brick_stairs",
"netherrocks:dragonstone_brick_stairs",
"netherrocks:fyrite_brick_stairs",
"netherrocks:illumenite_brick_stairs",
"netherrocks:malachite_brick_stairs"
]
}
Loading