#Suspicious Sand and Gravel drops

1 messages · Page 1 of 1 (latest)

indigo bloom
#

I have added randomly spawning veins of suspicious sand and gravel in beaches and rivers but it does not let me customize the loot tables as i have done this only through json files. Could a workaround to adding a custom loot table to its brushing be done by mixing and adding a new property and if this property is true then it always enables this custom for my spawning sands and gravel.
Kinda like this example?

{
"type": "minecraft:ore",
"config": {
"discard_chance_on_air_exposure": 0.7,
"size": 8,
"targets": [
{
"state": {
"Name": "minecraft:suspicious_sand"
},
"target": {
"predicate_type": "minecraft:block_match",
"block": "minecraft:sand"
}

  },
  {
    "state": {
      "Name": "minecraft:suspicious_gravel"

"properties"{
customdrop
}
},
"target": {
"predicate_type": "minecraft:block_match",
"block": "minecraft:gravel"
}

  }
]

}
}

quasi widget
#

did you look at the vanilla code for generating suspicious blocks in structures?

quasi widget
#

It seems like minecraft adds the loottable to the block for the desert pyramid in: DesertPyramidStructure in the method placeSuspiciousSand, I am not familiar with world gen, so I am not sure if your the structure you use can do the same, calling a method to place the suspicious blocks and adding the loot in that method.