mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-25 06:27:41 +01:00
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:
parent
c6867532a3
commit
9a77081f3a
8 changed files with 105 additions and 20 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
"type": "create:crushing",
|
||||||
|
"ingredients": [
|
||||||
|
{
|
||||||
|
"tag": "forge:storage_blocks/brass"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"results": [
|
||||||
|
{
|
||||||
|
"item": "create:crushed_brass",
|
||||||
|
"count": 5
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"processingTime": 400
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
"type": "create:crushing",
|
||||||
|
"ingredients": [
|
||||||
|
{
|
||||||
|
"tag": "forge:storage_blocks/copper"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"results": [
|
||||||
|
{
|
||||||
|
"item": "create:crushed_copper",
|
||||||
|
"count": 5
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"processingTime": 400
|
||||||
|
}
|
20
src/main/resources/data/create/recipes/crushing/wool.json
Normal file
20
src/main/resources/data/create/recipes/crushing/wool.json
Normal 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
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
"type": "create:crushing",
|
||||||
|
"ingredients": [
|
||||||
|
{
|
||||||
|
"tag": "forge:storage_blocks/zinc"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"results": [
|
||||||
|
{
|
||||||
|
"item": "create:crushed_zinc",
|
||||||
|
"count": 5
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"processingTime": 400
|
||||||
|
}
|
|
@ -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
|
||||||
|
|
24
src/main/resources/data/create/recipes/mixing/gunpowder.json
Normal file
24
src/main/resources/data/create/recipes/mixing/gunpowder.json
Normal 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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in a new issue