added deepslate ruby ore

This commit is contained in:
Jottyfan
2025-06-09 12:06:44 +02:00
parent 291d46b4e6
commit 6ca6b35be4
12 changed files with 56 additions and 6 deletions

View File

@ -1,12 +1,12 @@
package de.jottyfan.gta.gdp;
import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import de.jottyfan.gta.gdp.block.ModBlocks;
import de.jottyfan.gta.gdp.item.ModItems;
import de.jottyfan.gta.gdp.world.gen.ModOreGeneration;
import net.fabricmc.api.ModInitializer;
/**
*
@ -21,5 +21,6 @@ public class GTAGDP implements ModInitializer {
public void onInitialize() {
ModItems.registerModItems();
ModBlocks.registerModBlocks();
ModOreGeneration.generateOres();
}
}

View File

@ -26,6 +26,8 @@ public class ModBlocks {
.luminance(state -> state.get(RubyBlock.ACTIVATED) ? 15 : 0));
public static final Block RUBY_ORE = registerBlock(Identifier.of(GTAGDP.MOD_ID, "ruby_ore"),
AbstractBlock.Settings.create().strength(3f).requiresTool());
public static final Block RUBY_DEEPSLATE_ORE = registerBlock(Identifier.of(GTAGDP.MOD_ID, "ruby_deepslate_ore"),
AbstractBlock.Settings.create().strength(3f).requiresTool());
private static Block registerRubyBlock(Identifier identifier, Block.Settings settings) {
Block block = new RubyBlock(settings.registryKey(RegistryKey.of(RegistryKeys.BLOCK, identifier)));
@ -50,6 +52,7 @@ public class ModBlocks {
ItemGroupEvents.modifyEntriesEvent(ItemGroups.BUILDING_BLOCKS).register(entries -> {
entries.add(RUBY_BLOCK);
entries.add(RUBY_ORE);
entries.add(RUBY_DEEPSLATE_ORE);
});
}
}

View File

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

View File

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

View File

@ -3,5 +3,6 @@
"item.gtagdp.rubyball": "Rubinball",
"block.gtagdp.ruby_block": "Rubinblock",
"block.gtagdp.ruby_ore": "Rubinerz"
"block.gtagdp.ruby_ore": "Rubinerz",
"block.gtagdp.ruby_deepslate_ore": "Rubinerzklumpen"
}

View File

@ -3,5 +3,6 @@
"item.gtagdp.rubyball": "Ruby ball",
"block.gtagdp.ruby_block": "Ruby block",
"block.gtagdp.ruby_ore": "Ruby ore"
"block.gtagdp.ruby_ore": "Ruby ore",
"block.gtagdp.ruby_deepslate_ore": "Ruby ore lump"
}

View File

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

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@ -0,0 +1,20 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "gtagdp:ruby_ore"
}
],
"rolls": 1.0
}
]
}

View File

@ -2,6 +2,7 @@
"replace": false,
"values": [
"gtagdp:ruby_block",
"gtagdp:ruby_ore"
"gtagdp:ruby_ore",
"gtagdp:ruby_deepslate_ore"
]
}

View File

@ -2,6 +2,7 @@
"replace": false,
"values": [
"gtagdp:ruby_block",
"gtagdp:ruby_ore"
"gtagdp:ruby_ore",
"gtagdp:ruby_deepslate_ore"
]
}