Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6ea5ab7e0 | ||
|
|
a1d8b2cb58 | ||
|
|
bf18dbf49b |
@@ -18,6 +18,8 @@ public class ModBlocks {
|
|||||||
|
|
||||||
public static final Block RUBY_BLOCK = registerBlock(Identifier.of(Gtamfmd.MOD_ID, "ruby_block"),
|
public static final Block RUBY_BLOCK = registerBlock(Identifier.of(Gtamfmd.MOD_ID, "ruby_block"),
|
||||||
AbstractBlock.Settings.create().strength(4f).requiresTool().sounds(BlockSoundGroup.AMETHYST_BLOCK));
|
AbstractBlock.Settings.create().strength(4f).requiresTool().sounds(BlockSoundGroup.AMETHYST_BLOCK));
|
||||||
|
public static final Block RUBY_ORE = registerBlock(Identifier.of(Gtamfmd.MOD_ID, "ruby_ore"),
|
||||||
|
AbstractBlock.Settings.create().strength(4f).requiresTool());
|
||||||
|
|
||||||
private static Block registerBlock(Identifier identifier, Block.Settings settings) {
|
private static Block registerBlock(Identifier identifier, Block.Settings settings) {
|
||||||
Block block = new Block(settings.registryKey(RegistryKey.of(RegistryKeys.BLOCK, identifier)));
|
Block block = new Block(settings.registryKey(RegistryKey.of(RegistryKeys.BLOCK, identifier)));
|
||||||
@@ -29,12 +31,13 @@ public class ModBlocks {
|
|||||||
Registry.register(Registries.ITEM, identifier, new BlockItem(block,
|
Registry.register(Registries.ITEM, identifier, new BlockItem(block,
|
||||||
settings.useItemPrefixedTranslationKey().registryKey(RegistryKey.of(RegistryKeys.ITEM, identifier))));
|
settings.useItemPrefixedTranslationKey().registryKey(RegistryKey.of(RegistryKeys.ITEM, identifier))));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void registerModBlocks() {
|
public static void registerModBlocks() {
|
||||||
Gtamfmd.LOGGER.info("Registering Mod Blocks for {}", Gtamfmd.MOD_ID);
|
Gtamfmd.LOGGER.info("Registering Mod Blocks for {}", Gtamfmd.MOD_ID);
|
||||||
ItemGroupEvents.modifyEntriesEvent(ItemGroups.BUILDING_BLOCKS)
|
ItemGroupEvents.modifyEntriesEvent(ItemGroups.BUILDING_BLOCKS)
|
||||||
.register(entries -> {
|
.register(entries -> {
|
||||||
entries.add(RUBY_BLOCK);
|
entries.add(RUBY_BLOCK);
|
||||||
|
entries.add(RUBY_ORE);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"": {
|
||||||
|
"model": "gtamfmd:block/ruby_ore"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
6
src/main/resources/assets/gtamfmd/items/ruby_ore.json
Normal file
6
src/main/resources/assets/gtamfmd/items/ruby_ore.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"model": {
|
||||||
|
"type": "minecraft:model",
|
||||||
|
"model": "gtamfmd:block/ruby_ore"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"item.gtamfmd.stub": "Stummel",
|
"item.gtamfmd.stub": "Stummel",
|
||||||
"item.gtamfmd.ruby": "Rubin",
|
"item.gtamfmd.ruby": "Rubin",
|
||||||
"item.gtamfmd.ruby_block": "Rubinblock"
|
"item.gtamfmd.ruby_block": "Rubinblock",
|
||||||
|
"item.gtamfmd.ruby_ore": "Rubinerz"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"item.gtamfmd.stub": "Stub",
|
"item.gtamfmd.stub": "Stub",
|
||||||
"item.gtamfmd.ruby": "Ruby",
|
"item.gtamfmd.ruby": "Ruby",
|
||||||
"item.gtamfmd.ruby_block": "Ruby block"
|
"item.gtamfmd.ruby_block": "Ruby block",
|
||||||
|
"item.gtamfmd.ruby_ore": "Ruby ore"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "gtamfmd:block/ruby_ore"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"parent": "gtamfmd:block/ruby_ore"
|
||||||
|
}
|
||||||
BIN
src/main/resources/assets/gtamfmd/textures/block/ruby_ore.png
Normal file
BIN
src/main/resources/assets/gtamfmd/textures/block/ruby_ore.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.9 KiB |
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
|
"pools": [
|
||||||
|
{
|
||||||
|
"bonus_rolls": 0.0,
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:survives_explosion"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item",
|
||||||
|
"name": "gtamfmd:ruby"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"rolls": 9.0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
|
"pools": [
|
||||||
|
{
|
||||||
|
"bonus_rolls": 0.0,
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:survives_explosion"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item",
|
||||||
|
"name": "gtamfmd:ruby"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"rolls": 1.0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:blasting",
|
||||||
|
"ingredient": "gtamfmd:ruby_ore",
|
||||||
|
"result": {
|
||||||
|
"id": "gtamfmd:ruby"
|
||||||
|
},
|
||||||
|
"experience": 0.1,
|
||||||
|
"cookingtime": 200
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:campfire_cooking",
|
||||||
|
"ingredient": "gtamfmd:stub",
|
||||||
|
"result": {
|
||||||
|
"id": "minecraft:torch"
|
||||||
|
},
|
||||||
|
"experience": 0.1,
|
||||||
|
"cookingtime": 20
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shaped",
|
||||||
|
"pattern": [
|
||||||
|
"###",
|
||||||
|
"###",
|
||||||
|
"###"
|
||||||
|
],
|
||||||
|
"key": {
|
||||||
|
"#": "gtamfmd:ruby"
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"id": "gtamfmd:ruby_block",
|
||||||
|
"count": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shapeless",
|
||||||
|
"ingredients": [
|
||||||
|
"gtamfmd:ruby_block"
|
||||||
|
],
|
||||||
|
"result": {
|
||||||
|
"id": "gtamfmd:ruby",
|
||||||
|
"count": 9
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shapeless",
|
||||||
|
"ingredients": [
|
||||||
|
"minecraft:stick"
|
||||||
|
],
|
||||||
|
"result": {
|
||||||
|
"id": "gtamfmd:stub",
|
||||||
|
"count": 4
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"replace": false,
|
||||||
|
"values": [
|
||||||
|
"gtamfmd:ruby_block",
|
||||||
|
"gtamfmd:ruby_ore"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"replace": false,
|
||||||
|
"values": [
|
||||||
|
"gtamfmd:ruby_block",
|
||||||
|
"gtamfmd:ruby_ore"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user