Recipe tweaks

- Gunpowder can now be multiplied in the mixer
- Metal blocks can now be crushed back into the crushed ores. (Inefficient enough to avoid any loops)
- Crushing wool in the millstone is less effective
This commit is contained in:
simibubi 2020-03-29 00:48:18 +01:00
parent c6867532a3
commit 9a77081f3a
8 changed files with 105 additions and 20 deletions

View file

@ -1,21 +1,19 @@
package com.simibubi.create.foundation.utility.data; package com.simibubi.create.foundation.utility.data;
import com.simibubi.create.AllBlocks;
import com.simibubi.create.AllItems;
import net.minecraft.block.Block;
import net.minecraft.data.BlockTagsProvider;
import net.minecraft.data.DataGenerator;
import net.minecraft.data.ItemTagsProvider;
import net.minecraft.item.Item;
import net.minecraft.tags.BlockTags;
import net.minecraft.tags.ItemTags;
import net.minecraft.tags.Tag;
import net.minecraft.util.ResourceLocation;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import com.simibubi.create.AllBlocks;
import com.simibubi.create.AllItems;
import net.minecraft.data.DataGenerator;
import net.minecraft.data.ItemTagsProvider;
import net.minecraft.item.Item;
import net.minecraft.tags.ItemTags;
import net.minecraft.tags.Tag;
import net.minecraft.util.ResourceLocation;
public class AllItemsTagProvider extends ItemTagsProvider { public class AllItemsTagProvider extends ItemTagsProvider {
static Map<ResourceLocation, ItemTags.Wrapper> createdTags; static Map<ResourceLocation, ItemTags.Wrapper> createdTags;

View file

@ -1,8 +1,10 @@
package com.simibubi.create.foundation.utility.data; package com.simibubi.create.foundation.utility.data;
import net.minecraft.util.ResourceLocation; import java.util.Arrays;
import java.util.Collections;
import java.util.Set;
import java.util.*; import net.minecraft.util.ResourceLocation;
public interface ITaggable<T extends ITaggable<T>> { public interface ITaggable<T extends ITaggable<T>> {
@ -14,6 +16,7 @@ public interface ITaggable<T extends ITaggable<T>> {
return this.withTags(TagType.BLOCK, tagsIn).withTags(TagType.ITEM, tagsIn); return this.withTags(TagType.BLOCK, tagsIn).withTags(TagType.ITEM, tagsIn);
} }
@SuppressWarnings("unchecked")
default T withTags(TagType type, ResourceLocation... tagsIn) { default T withTags(TagType type, ResourceLocation... tagsIn) {
Collections.addAll(getTagSet(type), tagsIn); Collections.addAll(getTagSet(type), tagsIn);
return (T) this; return (T) this;

View file

@ -0,0 +1,15 @@
{
"type": "create:crushing",
"ingredients": [
{
"tag": "forge:storage_blocks/brass"
}
],
"results": [
{
"item": "create:crushed_brass",
"count": 5
}
],
"processingTime": 400
}

View file

@ -0,0 +1,15 @@
{
"type": "create:crushing",
"ingredients": [
{
"tag": "forge:storage_blocks/copper"
}
],
"results": [
{
"item": "create:crushed_copper",
"count": 5
}
],
"processingTime": 400
}

View file

@ -0,0 +1,20 @@
{
"type": "create:crushing",
"ingredients": [
{
"tag": "minecraft:wool"
}
],
"results": [
{
"item": "minecraft:string",
"count": 2
},
{
"item": "minecraft:string",
"count": 1,
"chance": 0.5
}
],
"processingTime": 100
}

View file

@ -0,0 +1,15 @@
{
"type": "create:crushing",
"ingredients": [
{
"tag": "forge:storage_blocks/zinc"
}
],
"results": [
{
"item": "create:crushed_zinc",
"count": 5
}
],
"processingTime": 400
}

View file

@ -8,12 +8,7 @@
"results": [ "results": [
{ {
"item": "minecraft:string", "item": "minecraft:string",
"count": 2 "count": 1
},
{
"item": "minecraft:string",
"count": 2,
"chance": 0.5
} }
], ],
"processingTime": 100 "processingTime": 100

View file

@ -0,0 +1,24 @@
{
"type": "create:mixing",
"ingredients": [
{
"tag": "minecraft:coals"
},
{
"item": "create:crushed_zinc"
},
{
"item": "minecraft:gunpowder"
},
{
"item": "minecraft:blaze_powder",
"return_chance": 0.75
}
],
"results": [
{
"item": "minecraft:gunpowder",
"count": 2
}
]
}