Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Loot Chest inside oasis
Browse files Browse the repository at this point in the history
  • Loading branch information
CrypticVerse committed Mar 22, 2024
1 parent 9f85cc6 commit 4946f39
Show file tree
Hide file tree
Showing 4 changed files with 159 additions and 5 deletions.
9 changes: 5 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,16 @@ dependencies {
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-1.20.4:2024.02.25@zip")
}

modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

include(modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}")
include modImplementation("net.fabricmc.fabric-api:fabric-api:${project.fabric_version}")

include(modImplementation "com.bookkeepersmc:Notebook-api-fabric-${minecraft_version}:${notebook_version}")
include modImplementation("com.bookkeepersmc:Notebook-api-fabric-${minecraft_version}:${notebook_version}")

include(modImplementation "com.github.glitchfiend:TerraBlender-fabric:${project.minecraft_version}-${project.terrablender_version}")
include modImplementation("com.github.glitchfiend:TerraBlender-fabric:${project.minecraft_version}-${project.terrablender_version}")

include(modImplementation "com.terraformersmc.terraform-api:terraform-wood-api-v1:${project.terraform_wood_api_version}")
include modImplementation("com.terraformersmc.terraform-api:terraform-wood-api-v1:${project.terraform_wood_api_version}")

modCompileOnly "me.shedaniel:RoughlyEnoughItems-api-fabric:${project.rei_version}"
modRuntimeOnly "me.shedaniel:RoughlyEnoughItems-fabric:${project.rei_version}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
public class MapleSyrupStationBlock extends BaseEntityBlock implements EntityBlock {
private static final VoxelShape SHAPE = Block.box(0, 0, 0, 16, 12, 16);

public static final MapCodec<MapleSyrupStationBlock> CODEC = MapleSyrupStationBlock.simpleCodec(MapleSyrupStationBlock::new);
public static final MapCodec<MapleSyrupStationBlock> CODEC = simpleCodec(MapleSyrupStationBlock::new);

public MapleSyrupStationBlock(Properties settings) {
super(settings);
Expand Down
153 changes: 153 additions & 0 deletions src/main/resources/data/betterbiomes/loot_tables/chests/oasis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
{
"type": "minecraft:chest",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"count": {
"type": "minecraft:uniform",
"max": 5.0,
"min": 1.0
},
"function": "minecraft:set_count"
}
],
"name": "minecraft:iron_ingot",
"weight": 90
},
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"count": {
"type": "minecraft:uniform",
"max": 5.0,
"min": 1.0
},
"function": "minecraft:set_count"
}
],
"name": "minecraft:gold_ingot",
"weight": 10
},
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"count": {
"type": "minecraft:uniform",
"max": 5.0,
"min": 1.0
},
"function": "minecraft:set_count"
}
],
"name": "minecraft:emerald",
"weight": 40
},
{
"type": "minecraft:item",
"name": "minecraft:diamond",
"weight": 5
},
{
"type": "minecraft:item",
"name": "minecraft:experience_bottle",
"weight": 5
}
],
"rolls": {
"type": "minecraft:uniform",
"max": 6.0,
"min": 3.0
}
},
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"count": {
"type": "minecraft:uniform",
"max": 10.0,
"min": 1.0
},
"function": "minecraft:set_count"
}
],
"name": "minecraft:iron_nugget",
"weight": 50
},
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"count": {
"type": "minecraft:uniform",
"max": 10.0,
"min": 1.0
},
"function": "minecraft:set_count"
}
],
"name": "minecraft:gold_nugget",
"weight": 10
},
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"count": {
"type": "minecraft:uniform",
"max": 10.0,
"min": 1.0
},
"function": "minecraft:set_count"
}
],
"name": "minecraft:lapis_lazuli",
"weight": 20
}
],
"rolls": {
"type": "minecraft:uniform",
"max": 5.0,
"min": 2.0
}
},
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:empty",
"weight": 5
},
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"count": 2.0,
"function": "minecraft:set_count"
}
],
"name": "minecraft:coast_armor_trim_smithing_template"
}
],
"rolls": 1.0
}
],
"random_sequence": "betterbiomes:chests/oasis"
}
Binary file modified src/main/resources/data/betterbiomes/structures/oasis.nbt
Binary file not shown.

0 comments on commit 4946f39

Please sign in to comment.