-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working Forge and Fabric on 1.19.3/4
- Loading branch information
1 parent
a126362
commit 5209a61
Showing
10 changed files
with
129 additions
and
107 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Obsidian Armor | ||
|
||
Obsidian Armor is a sample mod which adds a new armor and tool set, crafted using Obsidian. | ||
|
||
|
||
## Compatibility | ||
|
||
MC Version | Forge | Fabric | ||
---|---|--- | ||
1.19.4 | ⚠ | ✓ | ||
1.19.3 | ✓ | ✓ | ||
1.19.2 | ? | ? | ||
1.19.1 | ? | ? | ||
1.19.0 | ? | ? | ||
|
||
**Legend**: | ||
- `✓`: Builds and runs successfully in a modded game | ||
- `⚠`: Fails to build due to issues with external libraries | ||
- `✗`: Fails to build due to issues with PickHaxe | ||
- `?`: Not tested | ||
|
||
**Issue List**: | ||
- 1.19.4 Forge: Requires using `--mappings mojang` on build and make | ||
|
||
|
||
## Building | ||
|
||
- Make sure you have Haxe 4.3.0 installed. | ||
- `haxelib run pickhaxe build fabric 1.19.3` | ||
- `haxelib run pickhaxe gradlew fabric 1.19.3 build` | ||
- Look in `./build/fabric/1.19.3/` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,4 @@ | |
|
||
<!-- https://spdx.org/licenses/ --> | ||
<mod-license value="MIT" /> | ||
</pickhaxe> | ||
</pickhaxe> |
30 changes: 11 additions & 19 deletions
30
samples/obsidianarmor/src/com/elitemastereric/obsidianarmor/ObsidianArmorMod.hx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,25 @@ | ||
package com.elitemastereric.obsidianarmor; | ||
|
||
import com.elitemastereric.obsidianarmor.items.ModItems; | ||
import net.pickhaxe.core.Mod; | ||
import net.pickhaxe.core.CommonMod; | ||
import net.pickhaxe.core.Environment; | ||
|
||
class ObsidianArmorMod implements Mod { | ||
public function onInitialize():Void { | ||
class ObsidianArmorMod extends CommonMod { | ||
public override function onRegister():Void { | ||
ModItems.register(); | ||
} | ||
|
||
public override function onCreativeModeTabRegister():Void { | ||
ModItems.registerCreativeTab(); | ||
} | ||
|
||
public override function onModInitialize():Void { | ||
#if fabric | ||
LOGGER.info('Hello Fabric! Welcome to Minecraft ${Environment.MINECRAFT_VERSION}!'); | ||
#end | ||
|
||
#if forge | ||
LOGGER.info('Hello Forge! Welcome to Minecraft ${Environment.MINECRAFT_VERSION}!'); | ||
#end | ||
|
||
#if (minecraft >= "1.19.3") | ||
LOGGER.info('Minecraft is in 1.19.3 or 1.19.4'); | ||
#else | ||
LOGGER.info('Minecraft is before 1.19.3 or 1.19.4'); | ||
#end | ||
|
||
#if (minecraft >= "1.19.4") | ||
LOGGER.info('Minecraft is in 1.19.4'); | ||
#else | ||
LOGGER.info('Minecraft is before 1.19.4'); | ||
#end | ||
|
||
ModItems.onInitialize(); | ||
|
||
//var test:net.minecraft.advancements.critereon.BlockPredicate = null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters