3 Commits

Author SHA1 Message Date
Jottyfan
d6ea5ab7e0 additional recipes
Some checks are pending
build / build (push) Waiting to run
2025-10-29 22:56:52 +01:00
Jottyfan
a1d8b2cb58 recipes and loot tables
Some checks failed
build / build (push) Has been cancelled
2025-10-29 11:25:24 +01:00
Jottyfan
bf18dbf49b added ruby ore block
Some checks failed
build / build (push) Has been cancelled
2025-10-29 10:41:40 +01:00
17 changed files with 138 additions and 3 deletions

View File

@@ -18,6 +18,8 @@ public class ModBlocks {
public static final Block RUBY_BLOCK = registerBlock(Identifier.of(Gtamfmd.MOD_ID, "ruby_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) {
Block block = new Block(settings.registryKey(RegistryKey.of(RegistryKeys.BLOCK, identifier)));
@@ -35,6 +37,7 @@ public class ModBlocks {
ItemGroupEvents.modifyEntriesEvent(ItemGroups.BUILDING_BLOCKS)
.register(entries -> {
entries.add(RUBY_BLOCK);
entries.add(RUBY_ORE);
});
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"": {
"model": "gtamfmd:block/ruby_ore"
}
}
}

View File

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

View File

@@ -1,5 +1,6 @@
{
"item.gtamfmd.stub": "Stummel",
"item.gtamfmd.ruby": "Rubin",
"item.gtamfmd.ruby_block": "Rubinblock"
"item.gtamfmd.ruby_block": "Rubinblock",
"item.gtamfmd.ruby_ore": "Rubinerz"
}

View File

@@ -1,5 +1,6 @@
{
"item.gtamfmd.stub": "Stub",
"item.gtamfmd.ruby": "Ruby",
"item.gtamfmd.ruby_block": "Ruby block"
"item.gtamfmd.ruby_block": "Ruby block",
"item.gtamfmd.ruby_ore": "Ruby ore"
}

View File

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

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 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": "gtamfmd:ruby"
}
],
"rolls": 9.0
}
]
}

View File

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

View File

@@ -0,0 +1,9 @@
{
"type": "minecraft:blasting",
"ingredient": "gtamfmd:ruby_ore",
"result": {
"id": "gtamfmd:ruby"
},
"experience": 0.1,
"cookingtime": 200
}

View File

@@ -0,0 +1,9 @@
{
"type": "minecraft:campfire_cooking",
"ingredient": "gtamfmd:stub",
"result": {
"id": "minecraft:torch"
},
"experience": 0.1,
"cookingtime": 20
}

View File

@@ -0,0 +1,15 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"###",
"###",
"###"
],
"key": {
"#": "gtamfmd:ruby"
},
"result": {
"id": "gtamfmd:ruby_block",
"count": 1
}
}

View File

@@ -0,0 +1,10 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
"gtamfmd:ruby_block"
],
"result": {
"id": "gtamfmd:ruby",
"count": 9
}
}

View File

@@ -0,0 +1,10 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
"minecraft:stick"
],
"result": {
"id": "gtamfmd:stub",
"count": 4
}
}

View File

@@ -0,0 +1,7 @@
{
"replace": false,
"values": [
"gtamfmd:ruby_block",
"gtamfmd:ruby_ore"
]
}

View File

@@ -0,0 +1,7 @@
{
"replace": false,
"values": [
"gtamfmd:ruby_block",
"gtamfmd:ruby_ore"
]
}