- Disable all Vanilla ore generation - Replace them with rare, large ore veins - Veins contain some of Create's materials as well as (raw) blocks of the generated ore - Use custom ore samples for indicators (Model graciously taken from Geocluster.)main
							parent
							
								
									e07b72387b
								
							
						
					
					
						commit
						68e8029283
					
				
				 38 changed files with 371 additions and 141 deletions
			
			
		| @ -0,0 +1,7 @@ | ||||
| { | ||||
|   "variants": { | ||||
|     "": { | ||||
|       "model": "kubejs:block/coal_ore_sample" | ||||
|     } | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,7 @@ | ||||
| { | ||||
|   "variants": { | ||||
|     "": { | ||||
|       "model": "kubejs:block/copper_ore_sample" | ||||
|     } | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,7 @@ | ||||
| { | ||||
|   "variants": { | ||||
|     "": { | ||||
|       "model": "kubejs:block/diamond_ore_sample" | ||||
|     } | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,7 @@ | ||||
| { | ||||
|   "variants": { | ||||
|     "": { | ||||
|       "model": "kubejs:block/emerald_ore_sample" | ||||
|     } | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,7 @@ | ||||
| { | ||||
|   "variants": { | ||||
|     "": { | ||||
|       "model": "kubejs:block/gold_ore_sample" | ||||
|     } | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,7 @@ | ||||
| { | ||||
|   "variants": { | ||||
|     "": { | ||||
|       "model": "kubejs:block/iron_ore_sample" | ||||
|     } | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,7 @@ | ||||
| { | ||||
|   "variants": { | ||||
|     "": { | ||||
|       "model": "kubejs:block/lapis_ore_sample" | ||||
|     } | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,7 @@ | ||||
| { | ||||
|   "variants": { | ||||
|     "": { | ||||
|       "model": "kubejs:block/redstone_ore_sample" | ||||
|     } | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,7 @@ | ||||
| { | ||||
|   "parent": "kubejs:block/ore_sample", | ||||
|   "textures": { | ||||
|     "particle": "block/stone", | ||||
|     "ore": "block/coal_ore" | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,7 @@ | ||||
| { | ||||
|   "parent": "kubejs:block/ore_sample", | ||||
|   "textures": { | ||||
|     "particle": "block/stone", | ||||
|     "ore": "block/copper_ore" | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,7 @@ | ||||
| { | ||||
|   "parent": "kubejs:block/ore_sample", | ||||
|   "textures": { | ||||
|     "particle": "block/stone", | ||||
|     "ore": "block/diamond_ore" | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,7 @@ | ||||
| { | ||||
|   "parent": "kubejs:block/ore_sample", | ||||
|   "textures": { | ||||
|     "particle": "block/stone", | ||||
|     "ore": "block/emerald_ore" | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,7 @@ | ||||
| { | ||||
|   "parent": "kubejs:block/ore_sample", | ||||
|   "textures": { | ||||
|     "particle": "block/stone", | ||||
|     "ore": "block/gold_ore" | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,7 @@ | ||||
| { | ||||
|   "parent": "kubejs:block/ore_sample", | ||||
|   "textures": { | ||||
|     "particle": "block/stone", | ||||
|     "ore": "block/iron_ore" | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,7 @@ | ||||
| { | ||||
|   "parent": "kubejs:block/ore_sample", | ||||
|   "textures": { | ||||
|     "particle": "block/stone", | ||||
|     "ore": "block/lapis_ore" | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,59 @@ | ||||
| { | ||||
|   "elements": [ | ||||
|     { | ||||
|       "from": [4, 0, 4], | ||||
|       "to": [9, 3, 9], | ||||
|       "faces": { | ||||
|         "north": {"uv": [0, 0, 5, 3], "texture": "#ore"}, | ||||
|         "east": {"uv": [2, 6, 7, 9], "texture": "#ore"}, | ||||
|         "south": {"uv": [8, 13, 13, 16], "texture": "#ore"}, | ||||
|         "west": {"uv": [11, 1, 16, 4], "texture": "#ore"}, | ||||
|         "up": {"uv": [8, 4, 13, 9], "texture": "#ore"}, | ||||
|         "down": {"uv": [0, 11, 5, 16], "texture": "#ore"} | ||||
|       } | ||||
|     }, | ||||
|     { | ||||
|       "from": [6, 0, 7], | ||||
|       "to": [12, 4, 12], | ||||
|       "faces": { | ||||
|         "north": {"uv": [8, 3, 14, 7], "texture": "#ore"}, | ||||
|         "east": {"uv": [7, 11, 12, 15], "texture": "#ore"}, | ||||
|         "south": {"uv": [1, 11, 7, 15], "texture": "#ore"}, | ||||
|         "west": {"uv": [5, 7, 10, 11], "texture": "#ore"}, | ||||
|         "up": {"uv": [1, 6, 7, 11], "texture": "#ore"}, | ||||
|         "down": {"uv": [0, 0, 6, 5], "texture": "#ore"} | ||||
|       } | ||||
|     } | ||||
|   ], | ||||
|   "display": { | ||||
|     "thirdperson_righthand": { | ||||
|       "rotation": [10, -45, 0], | ||||
|       "translation": [0, 3, 0.5], | ||||
|       "scale": [0.65, 0.65, 0.65] | ||||
|     }, | ||||
|     "thirdperson_lefthand": { | ||||
|       "rotation": [9, 45, 0], | ||||
|       "translation": [0, 3, 0], | ||||
|       "scale": [0.65, 0.65, 0.65] | ||||
|     }, | ||||
|     "firstperson_righthand": { | ||||
|       "translation": [0, 6.5, 0] | ||||
|     }, | ||||
|     "firstperson_lefthand": { | ||||
|       "translation": [0, 6.5, 0] | ||||
|     }, | ||||
|     "ground": { | ||||
|       "translation": [0, 2.5, 0], | ||||
|       "scale": [0.8, 0.8, 0.8] | ||||
|     }, | ||||
|     "gui": { | ||||
|       "rotation": [30, -112, 0], | ||||
|       "translation": [0, 6.25, 0], | ||||
|       "scale": [1.25, 1.25, 1.25] | ||||
|     }, | ||||
|     "fixed": { | ||||
|       "rotation": [-90, 0, 0], | ||||
|       "translation": [0, 0, -6] | ||||
|     } | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,7 @@ | ||||
| { | ||||
|   "parent": "kubejs:block/ore_sample", | ||||
|   "textures": { | ||||
|     "particle": "block/stone", | ||||
|     "ore": "block/redstone_ore" | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,7 @@ | ||||
| { | ||||
|   "parent": "kubejs:block/ore_sample", | ||||
|   "textures": { | ||||
|     "particle": "block/stone", | ||||
|     "ore": "create:block/zinc_ore" | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,10 @@ | ||||
| LootJS.modifiers((event) => { | ||||
|     for (var { id, drop } of Object.values(global.ore_samples)) { | ||||
|         if (drop == null) continue; | ||||
|         event.addBlockLootModifier(id) | ||||
|             .removeLoot(Ingredient.all) | ||||
|             .addLoot(drop); | ||||
|     } | ||||
| }); | ||||
| 
 | ||||
| 
 | ||||
| @ -0,0 +1,29 @@ | ||||
| global.ore_samples = { | ||||
|     coal     : { drop: "minecraft:coal" }, | ||||
|     copper   : { drop: "minecraft:raw_copper" }, | ||||
|     iron     : { drop: "minecraft:raw_iron" }, | ||||
|     gold     : { drop: "minecraft:raw_gold" }, | ||||
|     lapis    : { drop: "minecraft:lapis_lazuli", name: "Lapis Lazuli" }, | ||||
|     redstone : { drop: "minecraft:redstone" }, | ||||
|     diamond  : {  }, | ||||
|     emerald  : {  }, | ||||
|     zinc     : { drop: "create:raw_zinc" }, | ||||
| }; | ||||
| 
 | ||||
| for (const key in global.ore_samples) { | ||||
|     var entry  = global.ore_samples[key]; | ||||
|     entry.id   = `kubejs:${key}_ore_sample` | ||||
|     entry.name = entry.name || `${key[0].toUpperCase()}${key.substring(1)}`; | ||||
| } | ||||
| 
 | ||||
| StartupEvents.registry("block", (event) => { | ||||
|     for (const { id, name } of Object.values(global.ore_samples)) | ||||
|         event.create(id.split(":")[1]) | ||||
|             .displayName(`${name} Sample`) | ||||
|             .stoneSoundType().lightLevel(0.3) | ||||
|             .hardness(0.2).resistance(2.0) | ||||
|             .box(4,0,4, 12,4,12).noCollision() | ||||
|             .waterlogged() | ||||
|             .tagBlock("mineable/pickaxe") | ||||
|             .tagBlock("kubejs:sample"); | ||||
| }); | ||||
					Loading…
					
					
				
		Reference in new issue