-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gold painted door item and comment out moditems class
- Loading branch information
1 parent
f4580ff
commit 711a047
Showing
21 changed files
with
271 additions
and
41 deletions.
There are no files selected for viewing
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
57 changes: 27 additions & 30 deletions
57
src/main/java/icu/carolinainthe/carolinastweaks/items/ModItems.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 |
---|---|---|
@@ -1,31 +1,28 @@ | ||
package icu.carolinainthe.carolinastweaks.items; | ||
|
||
import icu.carolinainthe.carolinastweaks.CarolinasTweaks; | ||
import net.fabricmc.fabric.api.item.v1.FabricItemSettings; | ||
import net.fabricmc.fabric.api.itemgroup.v1.FabricItemGroupEntries; | ||
import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemGroups; | ||
import net.minecraft.registry.Registries; | ||
import net.minecraft.registry.Registry; | ||
import net.minecraft.util.Identifier; | ||
|
||
import static icu.carolinainthe.carolinastweaks.CarolinasTweaks.MOD_ID; | ||
|
||
public class ModItems { | ||
|
||
|
||
// Registers mod items. | ||
//package icu.carolinainthe.carolinastweaks.items; | ||
// | ||
//import icu.carolinainthe.carolinastweaks.CarolinasTweaks; | ||
//import net.fabricmc.fabric.api.item.v1.FabricItemSettings; | ||
//import net.minecraft.item.Item; | ||
//import net.minecraft.registry.Registries; | ||
//import net.minecraft.registry.Registry; | ||
//import net.minecraft.util.Identifier; | ||
// | ||
//import static icu.carolinainthe.carolinastweaks.CarolinasTweaks.MOD_ID; | ||
// | ||
//public class ModItems { | ||
// | ||
// | ||
// // Registers mod items. | ||
// public static final Item EXAMPLE = registerItem("example", new Item(new FabricItemSettings())); | ||
|
||
// Register individual item function. | ||
private static Item registerItem(String name, Item item) { | ||
return Registry.register(Registries.ITEM, Identifier.of(MOD_ID, name), item); | ||
} | ||
|
||
// Main function to register all items, called in the main class. | ||
public static void registerModItems() { | ||
CarolinasTweaks.LOGGER.info("Registering mod items for " + MOD_ID + ", created by Carolina Mitchell (carolina_slays)"); | ||
|
||
} | ||
} | ||
// | ||
// // Register individual item function. | ||
// private static Item registerItem(String name, Item item) { | ||
// return Registry.register(Registries.ITEM, Identifier.of(MOD_ID, name), item); | ||
// } | ||
// | ||
// // Main function to register all items, called in the main class. | ||
// public static void registerModItems() { | ||
// CarolinasTweaks.LOGGER.info("Registering mod items for " + MOD_ID + ", created by Carolina Mitchell (carolina_slays)"); | ||
// | ||
// } | ||
//} |
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
124 changes: 124 additions & 0 deletions
124
src/main/resources/assets/carolinas-tweaks/blockstates/gold_painted_door.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 |
---|---|---|
@@ -0,0 +1,124 @@ | ||
{ | ||
"variants": { | ||
"facing=east,half=lower,hinge=left,open=false": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_bottom_left" | ||
}, | ||
"facing=east,half=lower,hinge=left,open=true": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_bottom_left_open", | ||
"y": 90 | ||
}, | ||
"facing=east,half=lower,hinge=right,open=false": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_bottom_right" | ||
}, | ||
"facing=east,half=lower,hinge=right,open=true": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_bottom_right_open", | ||
"y": 270 | ||
}, | ||
"facing=east,half=upper,hinge=left,open=false": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_top_left" | ||
}, | ||
"facing=east,half=upper,hinge=left,open=true": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_top_left_open", | ||
"y": 90 | ||
}, | ||
"facing=east,half=upper,hinge=right,open=false": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_top_right" | ||
}, | ||
"facing=east,half=upper,hinge=right,open=true": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_top_right_open", | ||
"y": 270 | ||
}, | ||
"facing=north,half=lower,hinge=left,open=false": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_bottom_left", | ||
"y": 270 | ||
}, | ||
"facing=north,half=lower,hinge=left,open=true": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_bottom_left_open" | ||
}, | ||
"facing=north,half=lower,hinge=right,open=false": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_bottom_right", | ||
"y": 270 | ||
}, | ||
"facing=north,half=lower,hinge=right,open=true": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_bottom_right_open", | ||
"y": 180 | ||
}, | ||
"facing=north,half=upper,hinge=left,open=false": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_top_left", | ||
"y": 270 | ||
}, | ||
"facing=north,half=upper,hinge=left,open=true": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_top_left_open" | ||
}, | ||
"facing=north,half=upper,hinge=right,open=false": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_top_right", | ||
"y": 270 | ||
}, | ||
"facing=north,half=upper,hinge=right,open=true": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_top_right_open", | ||
"y": 180 | ||
}, | ||
"facing=south,half=lower,hinge=left,open=false": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_bottom_left", | ||
"y": 90 | ||
}, | ||
"facing=south,half=lower,hinge=left,open=true": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_bottom_left_open", | ||
"y": 180 | ||
}, | ||
"facing=south,half=lower,hinge=right,open=false": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_bottom_right", | ||
"y": 90 | ||
}, | ||
"facing=south,half=lower,hinge=right,open=true": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_bottom_right_open" | ||
}, | ||
"facing=south,half=upper,hinge=left,open=false": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_top_left", | ||
"y": 90 | ||
}, | ||
"facing=south,half=upper,hinge=left,open=true": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_top_left_open", | ||
"y": 180 | ||
}, | ||
"facing=south,half=upper,hinge=right,open=false": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_top_right", | ||
"y": 90 | ||
}, | ||
"facing=south,half=upper,hinge=right,open=true": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_top_right_open" | ||
}, | ||
"facing=west,half=lower,hinge=left,open=false": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_bottom_left", | ||
"y": 180 | ||
}, | ||
"facing=west,half=lower,hinge=left,open=true": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_bottom_left_open", | ||
"y": 270 | ||
}, | ||
"facing=west,half=lower,hinge=right,open=false": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_bottom_right", | ||
"y": 180 | ||
}, | ||
"facing=west,half=lower,hinge=right,open=true": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_bottom_right_open", | ||
"y": 90 | ||
}, | ||
"facing=west,half=upper,hinge=left,open=false": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_top_left", | ||
"y": 180 | ||
}, | ||
"facing=west,half=upper,hinge=left,open=true": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_top_left_open", | ||
"y": 270 | ||
}, | ||
"facing=west,half=upper,hinge=right,open=false": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_top_right", | ||
"y": 180 | ||
}, | ||
"facing=west,half=upper,hinge=right,open=true": { | ||
"model": "carolinas-tweaks:block/gold_painted_doors/gold_painted_door_top_right_open", | ||
"y": 90 | ||
} | ||
} | ||
} |
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,6 @@ | ||
{ | ||
"block.carolinas-tweaks.bundle_of_sticks": "Bundle of Sticks", | ||
"block.carolinas-tweaks.condensed_cocoa": "Condensed Cocoa", | ||
"block.carolinas-tweaks.gold_painted_door": "Gold Painted Door", | ||
"itemGroup.items": "Carolina's Tweaks" | ||
} |
7 changes: 7 additions & 0 deletions
7
...ssets/carolinas-tweaks/models/block/gold_painted_doors/gold_painted_door_bottom_left.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"parent": "minecraft:block/door_bottom_left", | ||
"textures": { | ||
"top": "carolinas-tweaks:block/gold_painted_door_top", | ||
"bottom": "carolinas-tweaks:block/gold_painted_door_bottom" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
.../carolinas-tweaks/models/block/gold_painted_doors/gold_painted_door_bottom_left_open.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"parent": "minecraft:block/door_bottom_left_open", | ||
"textures": { | ||
"top": "carolinas-tweaks:block/gold_painted_door_top", | ||
"bottom": "carolinas-tweaks:block/gold_painted_door_bottom" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...sets/carolinas-tweaks/models/block/gold_painted_doors/gold_painted_door_bottom_right.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"parent": "minecraft:block/door_bottom_right", | ||
"textures": { | ||
"top": "carolinas-tweaks:block/gold_painted_door_top", | ||
"bottom": "carolinas-tweaks:block/gold_painted_door_bottom" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...carolinas-tweaks/models/block/gold_painted_doors/gold_painted_door_bottom_right_open.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"parent": "minecraft:block/door_bottom_right_open", | ||
"textures": { | ||
"top": "carolinas-tweaks:block/gold_painted_door_top", | ||
"bottom": "carolinas-tweaks:block/gold_painted_door_bottom" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...s/assets/carolinas-tweaks/models/block/gold_painted_doors/gold_painted_door_top_left.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"parent": "minecraft:block/door_top_left", | ||
"textures": { | ||
"top": "carolinas-tweaks:block/gold_painted_door_top", | ||
"bottom": "carolinas-tweaks:block/gold_painted_door_bottom" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...ets/carolinas-tweaks/models/block/gold_painted_doors/gold_painted_door_top_left_open.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"parent": "minecraft:block/door_top_left_open", | ||
"textures": { | ||
"top": "carolinas-tweaks:block/gold_painted_door_top", | ||
"bottom": "carolinas-tweaks:block/gold_painted_door_bottom" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
.../assets/carolinas-tweaks/models/block/gold_painted_doors/gold_painted_door_top_right.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"parent": "minecraft:block/door_top_right", | ||
"textures": { | ||
"top": "carolinas-tweaks:block/gold_painted_door_top", | ||
"bottom": "carolinas-tweaks:block/gold_painted_door_bottom" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...ts/carolinas-tweaks/models/block/gold_painted_doors/gold_painted_door_top_right_open.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"parent": "minecraft:block/door_top_right_open", | ||
"textures": { | ||
"top": "carolinas-tweaks:block/gold_painted_door_top", | ||
"bottom": "carolinas-tweaks:block/gold_painted_door_bottom" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/carolinas-tweaks/models/item/gold_painted_door.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "carolinas-tweaks:item/gold_painted_door" | ||
} | ||
} |
Binary file added
BIN
+443 Bytes
...n/resources/assets/carolinas-tweaks/textures/block/gold_painted_door_bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+449 Bytes
...main/resources/assets/carolinas-tweaks/textures/block/gold_painted_door_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+293 Bytes
src/main/resources/assets/carolinas-tweaks/textures/item/gold_painted_door.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions
20
src/main/resources/data/carolinas-tweaks/loot_tables/blocks/gold_painted_door.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "carolinas-tweaks:gold_painted_door" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
] | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/resources/data/carolinas-tweaks/recipes/gold_painted_door.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"key": { | ||
"#": { | ||
"item": "minecraft:gold_nugget" | ||
}, | ||
"D": { | ||
"tag": "minecraft:wooden_doors" | ||
} | ||
}, | ||
"pattern": [ | ||
"###", | ||
"#D#", | ||
"###" | ||
], | ||
"result": { | ||
"item": "carolinas-tweaks:gold_painted_door" | ||
}, | ||
"show_notification": false | ||
} |
Oops, something went wrong.