This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "minecraft:crafting_shapeless", | |
"ingredients": [{ | |
"item": "minecraft:amethyst_block", | |
"type": "nbt_ingredient_predicate:nbt_includes", | |
"nbt": { | |
"display": {"Name":"{\"text\":\"I've got NBT!\"}"} | |
} | |
}], | |
"result": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.mojang.datafixers.util.Function3; | |
import com.mojang.serialization.Codec; | |
import com.mojang.serialization.codecs.RecordCodecBuilder; | |
import net.minecraft.block.BlockState; | |
import java.util.List; | |
public class CodecExample { | |
public static final Codec<CodecExample> CODEC = RecordCodecBuilder.create( | |
instance -> instance.group( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Random; | |
public class Connectome { | |
private final int width, height; | |
private final byte[] mapping; | |
public Connectome(int width, int height) { | |
this.width = width; | |
this.height = height; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import net.minecraft.block.Block; | |
import net.minecraft.block.BlockState; | |
import net.minecraft.block.GlazedTerracottaBlock; | |
import net.minecraft.block.material.Material; | |
import net.minecraft.block.material.MaterialColor; | |
import net.minecraft.item.BlockItem; | |
import net.minecraft.item.Item; | |
import net.minecraft.util.math.BlockPos; | |
import net.minecraft.world.IWorldReader; | |
import net.minecraftforge.eventbus.api.IEventBus; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package twilightforest.compat.patchouli; | |
import com.google.gson.annotations.SerializedName; | |
import net.minecraft.client.Minecraft; | |
import net.minecraft.item.ItemStack; | |
import twilightforest.TwilightForestMod; | |
import vazkii.patchouli.api.ICustomComponent; | |
import vazkii.patchouli.api.VariableHolder; | |
import vazkii.patchouli.common.util.ItemStackUtil; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"forge_marker": 1, | |
"defaults": { | |
"model": "stairs", | |
"textures": { | |
"end": "twilightforest:blocks/stone_tiles", | |
"half": "twilightforest:blocks/nagastone_bare", | |
"particle": "#side" | |
}, | |
"uvlock": true |