-
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.
Ore added and added recipes for blast furnace
Bed Time :D
- Loading branch information
1 parent
245b3fc
commit 0ca850e
Showing
22 changed files
with
207 additions
and
1 deletion.
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
42 changes: 42 additions & 0 deletions
42
src/main/java/com/darkwolfie/silentvalkyrie/block/ModBlocks.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,42 @@ | ||
package com.darkwolfie.silentvalkyrie.block; | ||
|
||
import com.darkwolfie.silentvalkyrie.Main; | ||
import com.darkwolfie.silentvalkyrie.item.ModItems; | ||
import net.minecraft.world.item.BlockItem; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.level.block.Block; | ||
import net.minecraft.world.level.block.Blocks; | ||
import net.minecraft.world.level.block.DropExperienceBlock; | ||
import net.minecraft.world.level.block.SoundType; | ||
import net.minecraft.world.level.block.state.BlockBehaviour; | ||
import net.minecraftforge.eventbus.api.IEventBus; | ||
import net.minecraftforge.registries.DeferredRegister; | ||
import net.minecraftforge.registries.ForgeRegistries; | ||
import net.minecraftforge.registries.RegistryObject; | ||
|
||
import java.util.function.Supplier; | ||
|
||
public class ModBlocks { | ||
|
||
|
||
public static final DeferredRegister<Block> BLOCKS = | ||
DeferredRegister.create(ForgeRegistries.BLOCKS, Main.MODID); | ||
|
||
public static final RegistryObject<Block> plutosteel_ORE = registerBlock("plutosteel_ore", | ||
() -> new DropExperienceBlock(BlockBehaviour.Properties.copy(Blocks.STONE).strength(3f).requiresCorrectToolForDrops())); | ||
|
||
private static <T extends Block> RegistryObject<T> registerBlock(String name, Supplier<T> block) { | ||
RegistryObject<T> toReturn = BLOCKS.register(name, block); | ||
registerBlockItem(name, toReturn); | ||
return toReturn; | ||
} | ||
|
||
private static <T extends Block> RegistryObject<Item> registerBlockItem(String name, RegistryObject<T> block) { | ||
return ModItems.Items.register(name, () -> new BlockItem(block.get(), new Item.Properties())); | ||
} | ||
|
||
public static void register(IEventBus eventBus) { | ||
BLOCKS.register(eventBus); | ||
} | ||
|
||
} |
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
7 changes: 7 additions & 0 deletions
7
src/main/resources/assets/silentvalkyrie/blockstates/plutosteel_ore.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 @@ | ||
{ | ||
"variants": { | ||
"": { | ||
"model": "silentvalkyrie:block/plutosteel_ore" | ||
} | ||
} | ||
} |
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,4 +1,10 @@ | ||
{ | ||
|
||
"item.silentvalkyrie.plutosteel": "PlutoSteel", | ||
"item.silentvalkyrie.molten_plutosteel": "Molten PlutoSteel", | ||
"item.silentvalkyrie.hardened_plutosteel": "Hardened PlutoSteel", | ||
|
||
"block.silentvalkyrie.plutosteel_ore": "Plutosteel Ore", | ||
|
||
"creativetab.sv.ore_tab_thing_ig": "Ores IG" | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/silentvalkyrie/models/block/plutosteel_ore.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": "minecraft:block/cube_all", | ||
"textures": { | ||
"all": "silentvalkyrie:block/plutostoneore" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/silentvalkyrie/models/item/hardened_plutosteel.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": "silentvalkyrie:item/hardenedplutosteel" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/silentvalkyrie/models/item/molten_plutosteel.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": "silentvalkyrie:item/moltenplutosteel" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/silentvalkyrie/models/item/plutosteel.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,6 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "silentvalkyrie:item/plutosteel" | ||
"layer0": "silentvalkyrie:item/plutostone" | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
src/main/resources/assets/silentvalkyrie/models/item/plutosteel_ore.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,3 @@ | ||
{ | ||
"parent": "silentvalkyrie:block/plutosteel_ore" | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/resources/data/forge/tags/blocks/needs_netherite_tool.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,5 @@ | ||
{ | ||
"values": [ | ||
|
||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/resources/data/minecraft/tags/blocks/mineable/axe.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,5 @@ | ||
{ | ||
"values": [ | ||
|
||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/resources/data/minecraft/tags/blocks/mineable/hoe.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,5 @@ | ||
{ | ||
"values": [ | ||
|
||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/resources/data/minecraft/tags/blocks/mineable/pickaxe.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,5 @@ | ||
{ | ||
"values": [ | ||
"silentvalkyrie:plutosteel_ore" | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/resources/data/minecraft/tags/blocks/mineable/shovel.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,5 @@ | ||
{ | ||
"values": [ | ||
"silentvalkyrie:plutosteel_ore" | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/resources/data/minecraft/tags/blocks/needs_diamond_tool.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,5 @@ | ||
{ | ||
"values": [ | ||
|
||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/resources/data/minecraft/tags/blocks/needs_iron_tool.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,5 @@ | ||
{ | ||
"values": [ | ||
"silentvalkyrie:plutosteel_ore" | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/resources/data/minecraft/tags/blocks/needs_stone_tool.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,5 @@ | ||
{ | ||
"values": [ | ||
|
||
] | ||
} |
59 changes: 59 additions & 0 deletions
59
src/main/resources/data/silentvalkyrie/loot_tables/blocks/plutosteel_ore.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,59 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"entries": [ | ||
{ | ||
"type": "minecraft:alternatives", | ||
"children": [ | ||
{ | ||
"type": "minecraft:item", | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:match_tool", | ||
"predicate": { | ||
"enchantments": [ | ||
{ | ||
"enchantment": "minecraft:silk_touch", | ||
"levels": { | ||
"min": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"name": "silentvalkyrie:plutosteel_ore" | ||
}, | ||
{ | ||
"type": "minecraft:item", | ||
"functions": [ | ||
{ | ||
"add": false, | ||
"count": { | ||
"type": "minecraft:uniform", | ||
"max": 1.0, | ||
"min": 1.0 | ||
}, | ||
"function": "minecraft:set_count" | ||
}, | ||
{ | ||
"enchantment": "minecraft:fortune", | ||
"formula": "minecraft:ore_drops", | ||
"function": "minecraft:apply_bonus" | ||
}, | ||
{ | ||
"function": "minecraft:explosion_decay" | ||
} | ||
], | ||
"name": "silentvalkyrie:molten_plutosteel" | ||
} | ||
] | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "silentvalkyrie:blocks/plutosteel_ore" | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/resources/data/silentvalkyrie/recipes/hardened_to_ingot_plutosteel.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,10 @@ | ||
{ | ||
"type": "minecraft:blasting", | ||
"group": "molten_to_hardened", | ||
"ingredient": { | ||
"item": "silentvalkyrie:hardened_plutosteel" | ||
}, | ||
"result": "silentvalkyrie:plutosteel", | ||
"experience": 10, | ||
"cookingtime": 200 | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/resources/data/silentvalkyrie/recipes/molten_to_hardened_plutosteel.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,10 @@ | ||
{ | ||
"type": "minecraft:blasting", | ||
"group": "molten_to_hardened", | ||
"ingredient": { | ||
"item": "silentvalkyrie:molten_plutosteel" | ||
}, | ||
"result": "silentvalkyrie:hardened_plutosteel", | ||
"experience": 10, | ||
"cookingtime": 200 | ||
} |