-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix signs dropping as the wrong item - Fix breaking signs using the wrong particles * Make block and item registration immediate
- Loading branch information
1 parent
4b41564
commit cc1e146
Showing
5 changed files
with
66 additions
and
61 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
client/src/main/resources/assets/traverse/blockstates/fir_sign.json
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,5 +1,5 @@ | ||
{ | ||
"variants": { | ||
"": { "model": "block/oak_sign" } | ||
"": { "model": "traverse:block/fir_sign" } | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
client/src/main/resources/assets/traverse/blockstates/fir_wall_sign.json
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,5 +1,5 @@ | ||
{ | ||
"variants": { | ||
"": { "model": "block/oak_sign" } | ||
"": { "model": "traverse:block/fir_sign" } | ||
} | ||
} |
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
18 changes: 18 additions & 0 deletions
18
common/src/main/java/com/terraformersmc/traverse/item/TraverseItems.java
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,18 @@ | ||
package com.terraformersmc.traverse.item; | ||
|
||
import com.terraformersmc.traverse.Traverse; | ||
import net.minecraft.item.*; | ||
import net.minecraft.util.Identifier; | ||
import net.minecraft.util.registry.Registry; | ||
|
||
public class TraverseItems { | ||
public static <I extends Item> I add(String name, I item) { | ||
if (item instanceof BlockItem blockItem) { | ||
blockItem.appendBlocks(Item.BLOCK_ITEMS, item); | ||
} | ||
|
||
return Registry.register(Registry.ITEM, Identifier.of(Traverse.MOD_ID, name), item); | ||
} | ||
|
||
public static void register() { } | ||
} |