Skip to content

Commit

Permalink
redstoen + other ore tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
MBatt1 committed Oct 24, 2024
1 parent 7c92971 commit 65f3ade
Show file tree
Hide file tree
Showing 28 changed files with 169 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,11 @@ private static Settings flower() {

// Tall Flowers
public static final ParadiseLostTallBrushBlock WILD_FLAX = add("wild_flax", new ParadiseLostTallBrushBlock(flower()), flammablePlant, cutoutMippedRenderLayer);

// Ores
public static final ExperienceDroppingBlock CHERINE_ORE = add("cherine_ore", new ExperienceDroppingBlock(UniformIntProvider.create(0, 2), create().requiresTool().strength(3f)));
public static final ExperienceDroppingBlock OLVITE_ORE = add("olvite_ore", new ExperienceDroppingBlock(UniformIntProvider.create(1, 3), create().requiresTool().strength(3f)));
public static final ExperienceDroppingBlock CHERINE_ORE = add("cherine_ore", new ExperienceDroppingBlock(UniformIntProvider.create(0, 2), create().requiresTool().strength(1f, 3f)));
public static final ExperienceDroppingBlock OLVITE_ORE = add("olvite_ore", new ExperienceDroppingBlock(UniformIntProvider.create(1, 3), create().requiresTool().strength(1.5f, 3f)));
public static final RedstoneOreBlock FLOESTONE_REDSTONE_ORE = add("floestone_redstone_ore", new RedstoneOreBlock(copy(REDSTONE_ORE).strength(1.5f, 3f)));
public static final ExperienceDroppingBlock SURTRUM = add("surtrum", new SurtrumOreBlock(UniformIntProvider.create(2, 5), create().sounds(BlockSoundGroup.NETHER_GOLD_ORE).requiresTool().strength(9f, 20f)));
public static final Block METAMORPHIC_SHELL = add("metamorphic_shell", new Block(create().sounds(BlockSoundGroup.TUFF).requiresTool().strength(40f, 6f)));
public static final PoofBlock SURTRUM_AIR = add("surtrum_air", new PoofBlock(create().replaceable().sounds(BlockSoundGroup.NETHER_GOLD_ORE)));
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/net/id/paradiselost/datagen/LootTableGen.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import net.minecraft.block.TallPlantBlock;
import net.minecraft.block.enums.DoubleBlockHalf;
import net.minecraft.data.server.loottable.BlockLootTableGenerator;
import net.minecraft.data.server.loottable.vanilla.VanillaBlockLootTableGenerator;
import net.minecraft.data.server.loottable.vanilla.VanillaLootTableProviders;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.Enchantments;
import net.minecraft.item.Item;
Expand Down Expand Up @@ -217,6 +219,7 @@ public void generate() {
// Ores
addOreDrops(CHERINE_ORE, ParadiseLostItems.CHERINE);
addOreDrops(OLVITE_ORE, ParadiseLostItems.OLVITE);
addDrop(FLOESTONE_REDSTONE_ORE, this::redstoneOreDrops);
addOreDrops(SURTRUM, ParadiseLostItems.RAW_SURTRUM);
addDrop(METAMORPHIC_SHELL);
addOreDrops(LEVITA_ORE, ParadiseLostItems.LEVITA_GEM);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public class ParadiseLostItemGroups {
// ores
entries.add(CHERINE_ORE);
entries.add(OLVITE_ORE);
entries.add(FLOESTONE_REDSTONE_ORE);
entries.add(SURTRUM);
entries.add(METAMORPHIC_SHELL);
entries.add(LEVITA_ORE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ private static Settings food(FoodComponent foodComponent) {
// ores
public static final BlockItem CHERINE_ORE = add(ParadiseLostBlocks.CHERINE_ORE);
public static final BlockItem OLVITE_ORE = add(ParadiseLostBlocks.OLVITE_ORE);
public static final BlockItem FLOESTONE_REDSTONE_ORE = add(ParadiseLostBlocks.FLOESTONE_REDSTONE_ORE);
public static final BlockItem SURTRUM = add(ParadiseLostBlocks.SURTRUM, new Settings().fireproof());
public static final BlockItem METAMORPHIC_SHELL = add(ParadiseLostBlocks.METAMORPHIC_SHELL);
public static final BlockItem LEVITA_ORE = add(ParadiseLostBlocks.LEVITA_ORE);
Expand Down
5 changes: 1 addition & 4 deletions src/main/resources/asset_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ def generate_slab_block(block_id, base_block_id, texture):



generate_standard_item("aurel_hanging_sign")
generate_standard_item("mother_aurel_hanging_sign")
generate_standard_item("orange_hanging_sign")
generate_standard_item("wisteria_hanging_sign")
generate_standard_block("floestone_redstone_ore")



Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "paradise_lost:block/floestone_redstone_ore"
}
}
}
3 changes: 2 additions & 1 deletion src/main/resources/assets/paradise_lost/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"block.paradise_lost.cobbled_floestone_wall": "Cobbled Floestone Wall",

"block.paradise_lost.mossy_floestone": "Mossy Cobbled Floestone",
"block.paradise_lost.golden_mossy_floestone": "Golden Mossy Floestone",
"block.paradise_lost.golden_mossy_floestone": "Golden Mossy Cobbled Floestone",
"block.paradise_lost.mossy_floestone_slab": "Mossy Cobbled Floestone Slab",
"block.paradise_lost.mossy_floestone_stairs": "Mossy Cobbled Floestone Stairs",
"block.paradise_lost.mossy_floestone_wall": "Mossy Cobbled Floestone Wall",
Expand Down Expand Up @@ -210,6 +210,7 @@

"block.paradise_lost.cherine_ore": "Cherine Ore",
"block.paradise_lost.olvite_ore": "Olvite Ore",
"block.paradise_lost.floestone_redstone_ore": "Floestone Redstone Ore",
"block.paradise_lost.surtrum": "Surtrum",
"block.paradise_lost.metamorphic_shell": "Metamorphic Shell",
"block.paradise_lost.levita_ore": "Levita Ore",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/cube_all",
"textures": {
"all": "paradise_lost:block/floestone_redstone_ore"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"parent": "paradise_lost:block/floestone_redstone_ore"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"values": [
"paradise_lost:cherine_ore",
"paradise_lost:olvite_ore",
"paradise_lost:floestone_redstone_ore",
"paradise_lost:surtrum",
"paradise_lost:metamorphic_shell",
"paradise_lost:levita_ore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,22 @@
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"count": {
"type": "minecraft:uniform",
"max": 2.0,
"min": 1.0
},
"function": "minecraft:set_count"
},
{
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops",
"function": "minecraft:apply_bonus"
"formula": "minecraft:uniform_bonus_count",
"function": "minecraft:apply_bonus",
"parameters": {
"bonusMultiplier": 1
}
},
{
"function": "minecraft:explosion_decay"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"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": "paradise_lost:floestone_redstone_ore"
},
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"count": {
"type": "minecraft:uniform",
"max": 5.0,
"min": 4.0
},
"function": "minecraft:set_count"
},
{
"enchantment": "minecraft:fortune",
"formula": "minecraft:uniform_bonus_count",
"function": "minecraft:apply_bonus",
"parameters": {
"bonusMultiplier": 1
}
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "minecraft:redstone"
}
]
}
],
"rolls": 1.0
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"paradise_lost:levita_blob",
"paradise_lost:ore_cherine",
"paradise_lost:ore_levita",
"paradise_lost:ore_olvite"
"paradise_lost:ore_olvite",
"paradise_lost:ore_floestone_redstone"
],
[],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"paradise_lost:levita_blob",
"paradise_lost:ore_cherine",
"paradise_lost:ore_levita",
"paradise_lost:ore_olvite"
"paradise_lost:ore_olvite",
"paradise_lost:ore_floestone_redstone"
],
[],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"paradise_lost:levita_blob",
"paradise_lost:ore_cherine",
"paradise_lost:ore_levita",
"paradise_lost:ore_olvite"
"paradise_lost:ore_olvite",
"paradise_lost:ore_floestone_redstone"
],
[],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"paradise_lost:levita_blob",
"paradise_lost:ore_cherine",
"paradise_lost:ore_levita",
"paradise_lost:ore_olvite"
"paradise_lost:ore_olvite",
"paradise_lost:ore_floestone_redstone"
],
[],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"paradise_lost:levita_blob",
"paradise_lost:ore_cherine",
"paradise_lost:ore_levita",
"paradise_lost:ore_olvite"
"paradise_lost:ore_olvite",
"paradise_lost:ore_floestone_redstone"
],
[],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"paradise_lost:levita_blob",
"paradise_lost:ore_cherine",
"paradise_lost:ore_levita",
"paradise_lost:ore_olvite"
"paradise_lost:ore_olvite",
"paradise_lost:ore_floestone_redstone"
],
[],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"paradise_lost:levita_blob",
"paradise_lost:ore_cherine",
"paradise_lost:ore_levita",
"paradise_lost:ore_olvite"
"paradise_lost:ore_olvite",
"paradise_lost:ore_floestone_redstone"
],
[],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"paradise_lost:levita_blob",
"paradise_lost:ore_cherine",
"paradise_lost:ore_levita",
"paradise_lost:ore_olvite"
"paradise_lost:ore_olvite",
"paradise_lost:ore_floestone_redstone"
],
[],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"paradise_lost:levita_blob",
"paradise_lost:ore_cherine",
"paradise_lost:ore_levita",
"paradise_lost:ore_olvite"
"paradise_lost:ore_olvite",
"paradise_lost:ore_floestone_redstone"
],
[],
[
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"type": "minecraft:ore",
"config": {
"discard_chance_on_air_exposure": 0.0,
"size": 11,
"targets": [
{
"state": {
"Name": "paradise_lost:floestone_redstone_ore"
},
"target": {
"predicate_type": "minecraft:block_match",
"block": "paradise_lost:floestone"
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"feature": "paradise_lost:ore_floestone_redstone",
"placement": [
{
"type": "minecraft:count",
"count": 6
},
{
"type": "minecraft:in_square"
},
{
"type": "minecraft:height_range",
"height": {
"type": "minecraft:trapezoid",
"max_inclusive": {
"absolute": 100
},
"min_inclusive": {
"absolute": 20
}
}
},
{
"type": "minecraft:biome"
}
]
}

0 comments on commit 65f3ade

Please sign in to comment.