added ruby ore

This commit is contained in:
Jottyfan
2025-03-09 16:40:53 +01:00
parent 61f495acd3
commit d10a6df9e7
8 changed files with 33 additions and 7 deletions

View File

@ -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);
});
}
}

View File

@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "gtagdp:block/ruby_ore"
}
}
}

View File

@ -0,0 +1,6 @@
{
"model": {
"type": "minecraft:model",
"model": "gtagdp:block/ruby_ore"
}
}

View File

@ -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"
}

View File

@ -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"
}

View File

@ -0,0 +1,6 @@
{
"parent": "minecraft:block/cube_all",
"textures": {
"all": "gtagdp:block/ruby_ore"
}
}

View File

@ -0,0 +1,3 @@
{
"parent": "gtagdp:block/ruby_ore"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB