mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-20 22:16:57 +00:00
Fix block drop data being generated in the incorrect place
Fixes half of #421
This commit is contained in:
parent
48cb032ddf
commit
08a0342618
@ -48,7 +48,7 @@ minecraft {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
workingDirectory project.file('run')
|
workingDirectory project.file('run')
|
||||||
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
|
property 'forge.logging.markers', 'REGISTRIES,REGISTRYDUMP'
|
||||||
property 'forge.logging.console.level', 'debug'
|
property 'forge.logging.console.level', 'debug'
|
||||||
|
|
||||||
mods {
|
mods {
|
||||||
@ -60,7 +60,7 @@ minecraft {
|
|||||||
|
|
||||||
data {
|
data {
|
||||||
workingDirectory project.file('run')
|
workingDirectory project.file('run')
|
||||||
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
|
property 'forge.logging.markers', 'REGISTRIES,REGISTRYDUMP'
|
||||||
property 'forge.logging.console.level', 'debug'
|
property 'forge.logging.console.level', 'debug'
|
||||||
|
|
||||||
args '--mod', 'computercraft', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
|
args '--mod', 'computercraft', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
"pools": [
|
"pools": [
|
||||||
{
|
{
|
||||||
"name": "main",
|
"name": "main",
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
"pools": [
|
"pools": [
|
||||||
{
|
{
|
||||||
"name": "main",
|
"name": "main",
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
"pools": [
|
"pools": [
|
||||||
{
|
{
|
||||||
"name": "main",
|
"name": "main",
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
"pools": [
|
"pools": [
|
||||||
{
|
{
|
||||||
"name": "main",
|
"name": "main",
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
"pools": [
|
"pools": [
|
||||||
{
|
{
|
||||||
"name": "main",
|
"name": "main",
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
"pools": [
|
"pools": [
|
||||||
{
|
{
|
||||||
"name": "main",
|
"name": "main",
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
"pools": [
|
"pools": [
|
||||||
{
|
{
|
||||||
"name": "main",
|
"name": "main",
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
"pools": [
|
"pools": [
|
||||||
{
|
{
|
||||||
"name": "main",
|
"name": "main",
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
"pools": [
|
"pools": [
|
||||||
{
|
{
|
||||||
"name": "main",
|
"name": "main",
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
"pools": [
|
"pools": [
|
||||||
{
|
{
|
||||||
"name": "main",
|
"name": "main",
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
"pools": [
|
"pools": [
|
||||||
{
|
{
|
||||||
"name": "main",
|
"name": "main",
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
"pools": [
|
"pools": [
|
||||||
{
|
{
|
||||||
"name": "main",
|
"name": "main",
|
@ -45,8 +45,9 @@ public class LootTables extends LootTableProvider
|
|||||||
|
|
||||||
private static void basicDrop( BiConsumer<ResourceLocation, LootTable> add, Block block )
|
private static void basicDrop( BiConsumer<ResourceLocation, LootTable> add, Block block )
|
||||||
{
|
{
|
||||||
add.accept( block.getRegistryName(), LootTable
|
add.accept( block.getLootTable(), LootTable
|
||||||
.builder()
|
.builder()
|
||||||
|
.setParameterSet( LootParameterSets.BLOCK )
|
||||||
.addLootPool( LootPool.builder()
|
.addLootPool( LootPool.builder()
|
||||||
.name( "main" )
|
.name( "main" )
|
||||||
.rolls( ConstantRange.of( 1 ) )
|
.rolls( ConstantRange.of( 1 ) )
|
||||||
@ -57,8 +58,9 @@ public class LootTables extends LootTableProvider
|
|||||||
|
|
||||||
private static void computerDrop( BiConsumer<ResourceLocation, LootTable> add, Block block )
|
private static void computerDrop( BiConsumer<ResourceLocation, LootTable> add, Block block )
|
||||||
{
|
{
|
||||||
add.accept( block.getRegistryName(), LootTable
|
add.accept( block.getLootTable(), LootTable
|
||||||
.builder()
|
.builder()
|
||||||
|
.setParameterSet( LootParameterSets.BLOCK )
|
||||||
.addLootPool( LootPool.builder()
|
.addLootPool( LootPool.builder()
|
||||||
.name( "main" )
|
.name( "main" )
|
||||||
.rolls( ConstantRange.of( 1 ) )
|
.rolls( ConstantRange.of( 1 ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user