Skip to content

Commit

Permalink
Added 4 Custom Ore Blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangerGamer-A committed Oct 2, 2024
1 parent 8880f51 commit 2e1b5bb
Show file tree
Hide file tree
Showing 17 changed files with 391 additions and 3 deletions.
24 changes: 24 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
MIT License

Copyright (c) 2024 Kaupenjoe

This license applies to the template files as supplied by github.com/NeoForged/MDK


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 3 additions & 3 deletions src/main/resources/assets/mccourse/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"block.mccourse.black_opal_block": "Block of Black Opal",
"block.mccourse.raw_black_opal_block": "Block of Raw Black Opal",
"block.mccourse.black_opal_ore": "Black Opal Ore",
"block.mccourse.black_opal_deepslate_ore": "Black Opal Deepslate Ore",
"block.mccourse.black_opal_end_ore": "Black Opal End Ore",
"block.mccourse.black_opal_nether_ore": "Black Opal Nether Ore",
"block.mccourse.black_opal_deepslate_ore": "Deepslate Black Opal Ore",
"block.mccourse.black_opal_end_ore": "End Black Opal Ore",
"block.mccourse.black_opal_nether_ore": "Nether Black Opal Ore",

"itemGroup.mccourse.black_opal_items_tab": "MCCourse Additions"
}
5 changes: 5 additions & 0 deletions src/main/resources/assets/mccourse/lang/fr_fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

"block.mccourse.black_opal_block": "Bloc d’opale noire",
"block.mccourse.raw_black_opal_block": "Bloc d’opale noire brute",
"block.mccourse.black_opal_ore": "Minerai d’opale noire",
"block.mccourse.black_opal_deepslate_ore": "Minerai d’opale noire Deepslate",
"block.mccourse.black_opal_end_ore": "Minerai d’opale noire du End",
"block.mccourse.black_opal_nether_ore": "Minerai d’opale noire du Nether",


"itemGroup.mccourse.black_opal_items_tab": "Ajouts à MCCourse"
}
5 changes: 5 additions & 0 deletions src/main/resources/assets/mccourse/lang/pt_br.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

"block.mccourse.black_opal_block": "Bloco de Opala Negra",
"block.mccourse.raw_black_opal_block": "Bloco de Opala Negra Crua",
"block.mccourse.black_opal_ore": "Minério de Opala Negra",
"block.mccourse.black_opal_deepslate_ore": "Minério de Opala Negra de Deepslate",
"block.mccourse.black_opal_end_ore": "Minério de Opala Negra de End",
"block.mccourse.black_opal_nether_ore": "Minério Opala Negra de Nether",


"itemGroup.mccourse.black_opal_items_tab": "Adições do MCCourse"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "mccourse:black_opal_block"
}
],
"rolls": 1.0
}
],
"random_sequence": "mccourse:blocks/black_opal_block"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "mccourse:black_opal_deepslate_ore"
},
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"count": {
"type": "minecraft:uniform",
"max": 5.0,
"min": 2.0
},
"function": "minecraft:set_count"
},
{
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops",
"function": "minecraft:apply_bonus"
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "mccourse:raw_black_opal"
}
]
}
],
"rolls": 1.0
}
],
"random_sequence": "mccourse:blocks/black_opal_deepslate_ore"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "mccourse:black_opal_end_ore"
},
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"count": {
"type": "minecraft:uniform",
"max": 7.0,
"min": 4.0
},
"function": "minecraft:set_count"
},
{
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops",
"function": "minecraft:apply_bonus"
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "mccourse:raw_black_opal"
}
]
}
],
"rolls": 1.0
}
],
"random_sequence": "mccourse:blocks/black_opal_end_ore"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "mccourse:black_opal_nether_ore"
},
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"count": {
"type": "minecraft:uniform",
"max": 9.0,
"min": 3.0
},
"function": "minecraft:set_count"
},
{
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops",
"function": "minecraft:apply_bonus"
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "mccourse:raw_black_opal"
}
]
}
],
"rolls": 1.0
}
],
"random_sequence": "mccourse:blocks/black_opal_nether_ore"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "mccourse:black_opal_ore"
},
{
"type": "minecraft:item",
"functions": [
{
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops",
"function": "minecraft:apply_bonus"
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "mccourse:raw_black_opal"
}
]
}
],
"rolls": 1.0
}
],
"random_sequence": "mccourse:blocks/black_opal_ore"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "mccourse:raw_black_opal_block"
}
],
"rolls": 1.0
}
],
"random_sequence": "mccourse:blocks/raw_black_opal_block"
}
13 changes: 13 additions & 0 deletions src/main/resources/data/mccourse/recipe/black_opal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"type": "minecraft:crafting_shapeless",
"category": "misc",
"ingredients": [
{
"item": "mccourse:black_opal_block"
}
],
"result": {
"id": "mccourse:black_opal",
"count": 9
}
}
18 changes: 18 additions & 0 deletions src/main/resources/data/mccourse/recipe/black_opal_block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"pattern": [
"###",
"###",
"###"
],
"key": {
"#": {
"item": "mccourse:black_opal"
}
},
"result": {
"id": "mccourse:black_opal_block",
"count": 1
}
}
12 changes: 12 additions & 0 deletions src/main/resources/data/mccourse/recipe/blasting1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type": "minecraft:blasting",
"category": "misc",
"ingredient": {
"item": "mccourse:raw_black_opal"
},
"result": {
"id": "mccourse:black_opal"
},
"experience": 0.25,
"cookingtime": 100
}
Loading

0 comments on commit 2e1b5bb

Please sign in to comment.