Fix block drop data being generated in the incorrect place

Fixes half of #421
This commit is contained in:
SquidDev 2020-04-24 16:41:46 +01:00
parent 48cb032ddf
commit 08a0342618
14 changed files with 18 additions and 4 deletions

View File

@ -48,7 +48,7 @@
server {
workingDirectory project.file('run')
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.markers', 'REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
mods {
@ -60,7 +60,7 @@
data {
workingDirectory project.file('run')
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.markers', 'REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
args '--mod', 'computercraft', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')

View File

@ -1,4 +1,5 @@
{
"type": "minecraft:block",
"pools": [
{
"name": "main",

View File

@ -1,4 +1,5 @@
{
"type": "minecraft:block",
"pools": [
{
"name": "main",

View File

@ -45,8 +45,9 @@ protected void registerLoot( BiConsumer<ResourceLocation, LootTable> add )
private static void basicDrop( BiConsumer<ResourceLocation, LootTable> add, Block block )
{
add.accept( block.getRegistryName(), LootTable
add.accept( block.getLootTable(), LootTable
.builder()
.setParameterSet( LootParameterSets.BLOCK )
.addLootPool( LootPool.builder()
.name( "main" )
.rolls( ConstantRange.of( 1 ) )
@ -57,8 +58,9 @@ private static void basicDrop( BiConsumer<ResourceLocation, LootTable> add, Bloc
private static void computerDrop( BiConsumer<ResourceLocation, LootTable> add, Block block )
{
add.accept( block.getRegistryName(), LootTable
add.accept( block.getLootTable(), LootTable
.builder()
.setParameterSet( LootParameterSets.BLOCK )
.addLootPool( LootPool.builder()
.name( "main" )
.rolls( ConstantRange.of( 1 ) )