added ruby ore
This commit is contained in:
@ -23,6 +23,8 @@ public class ModBlocks {
|
||||
|
||||
public static final Block RUBY_BLOCK = registerBlock(Identifier.of(GTAGDP.MOD_ID, "ruby_block"),
|
||||
AbstractBlock.Settings.create().strength(4f).requiresTool().sounds(BlockSoundGroup.AMETHYST_BLOCK));
|
||||
public static final Block RUBY_ORE = registerBlock(Identifier.of(GTAGDP.MOD_ID, "ruby_ore"),
|
||||
AbstractBlock.Settings.create().strength(3f).requiresTool());
|
||||
|
||||
private static Block registerBlock(Identifier identifier, Block.Settings settings) {
|
||||
Block block = new Block(settings.registryKey(RegistryKey.of(RegistryKeys.BLOCK, identifier)));
|
||||
@ -36,11 +38,11 @@ public class ModBlocks {
|
||||
}
|
||||
|
||||
public static void registerModBlocks() {
|
||||
GTAGDP.LOGGER.info("Registering Mod Blocks for {}",
|
||||
GTAGDP.MOD_ID);
|
||||
GTAGDP.LOGGER.info("Registering Mod Blocks for {}", GTAGDP.MOD_ID);
|
||||
|
||||
ItemGroupEvents
|
||||
.modifyEntriesEvent(ItemGroups.BUILDING_BLOCKS)
|
||||
.register(entries -> { entries.add(RUBY_BLOCK); });
|
||||
ItemGroupEvents.modifyEntriesEvent(ItemGroups.BUILDING_BLOCKS).register(entries -> {
|
||||
entries.add(RUBY_BLOCK);
|
||||
entries.add(RUBY_ORE);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "gtagdp:block/ruby_ore"
|
||||
}
|
||||
}
|
||||
}
|
6
src/main/resources/assets/gtagdp/items/ruby_ore.json
Normal file
6
src/main/resources/assets/gtagdp/items/ruby_ore.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "gtagdp:block/ruby_ore"
|
||||
}
|
||||
}
|
@ -2,5 +2,6 @@
|
||||
"item.gtagdp.stub": "Stummel",
|
||||
"item.gtagdp.rubyball": "Rubinball",
|
||||
|
||||
"block.gtagdp.ruby_block": "Rubinblock"
|
||||
"block.gtagdp.ruby_block": "Rubinblock",
|
||||
"block.gtagdp.ruby_ore": "Rubinerz"
|
||||
}
|
@ -2,5 +2,6 @@
|
||||
"item.gtagdp.stub": "Stub",
|
||||
"item.gtagdp.rubyball": "Ruby ball",
|
||||
|
||||
"block.gtagdp.ruby_block": "Ruby block"
|
||||
"block.gtagdp.ruby_block": "Ruby block",
|
||||
"block.gtagdp.ruby_ore": "Ruby ore"
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cube_all",
|
||||
"textures": {
|
||||
"all": "gtagdp:block/ruby_ore"
|
||||
}
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
{
|
||||
"parent": "gtagdp:block/ruby_ore"
|
||||
}
|
BIN
src/main/resources/assets/gtagdp/textures/block/ruby_ore.png
Normal file
BIN
src/main/resources/assets/gtagdp/textures/block/ruby_ore.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.9 KiB |
Reference in New Issue
Block a user