Port to 1.21 & Add NeoForge support

This commit is contained in:
Martin Prokoph
2024-06-17 14:55:41 +02:00
parent 6be616e91e
commit ecc50e77e2
102 changed files with 568 additions and 425 deletions

23
common/build.gradle Normal file
View File

@@ -0,0 +1,23 @@
architectury {
common(rootProject.enabled_platforms.split(","))
}
dependencies {
// We depend on fabric loader here to use the fabric @Environment annotations and get the mixin dependencies
// Do NOT use other classes from fabric loader
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
}
publishing {
publications {
mavenCommon(MavenPublication) {
artifactId = rootProject.archives_base_name
from components.java
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
}
}

View File

@@ -0,0 +1,27 @@
package eu.midnightdust.betterbeds.mixin;
import net.minecraft.block.*;
import net.minecraft.util.math.Direction;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin(value = BedBlock.class, priority = 2000)
public abstract class MixinBedBlock extends HorizontalFacingBlock {
protected MixinBedBlock(Settings settings) {
super(settings);
}
@Inject(at = @At("RETURN"), method = "getRenderType", cancellable = true)
private void getRenderType(BlockState state, CallbackInfoReturnable<BlockRenderType> cir) {
cir.setReturnValue(BlockRenderType.MODEL);
}
@Override
@SuppressWarnings("deprecation")
public boolean isSideInvisible(BlockState state, BlockState neighborState, Direction offset) {
return neighborState.getBlock() instanceof BedBlock;
}
}

View File

@@ -0,0 +1,25 @@
package eu.midnightdust.betterbeds.mixin;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.block.entity.BlockEntityType;
import net.minecraft.client.render.block.entity.BlockEntityRendererFactories;
import net.minecraft.client.render.block.entity.BlockEntityRendererFactory;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import java.util.Map;
@Mixin(BlockEntityRendererFactories.class)
public abstract class MixinBlockEntityRendererDispatcher {
@Shadow @Final private static Map<BlockEntityType<?>, BlockEntityRendererFactory<?>> FACTORIES;
@Inject(method = "register", at = @At("TAIL"))
private static <T extends BlockEntity> void bb$onRegister(BlockEntityType<? extends T> type, BlockEntityRendererFactory<T> factory, CallbackInfo ci) {
FACTORIES.remove(BlockEntityType.BED);
}
}

View File

@@ -0,0 +1 @@
{}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@@ -0,0 +1,9 @@
{
"sources": [
{
"type": "directory",
"source": "entity/bed",
"prefix": "entity/bed/"
}
]
}

View File

@@ -0,0 +1,34 @@
{
"variants": {
"facing=east,part=head": {
"model": "minecraft:block/black_bed_head",
"y": 270
},
"facing=north,part=head": {
"model": "minecraft:block/black_bed_head",
"y": 180
},
"facing=south,part=head": {
"model": "minecraft:block/black_bed_head"
},
"facing=west,part=head": {
"model": "minecraft:block/black_bed_head",
"y": 90
},
"facing=east,part=foot": {
"model": "minecraft:block/black_bed_foot",
"y": 270
},
"facing=north,part=foot": {
"model": "minecraft:block/black_bed_foot",
"y": 180
},
"facing=south,part=foot": {
"model": "minecraft:block/black_bed_foot"
},
"facing=west,part=foot": {
"model": "minecraft:block/black_bed_foot",
"y": 90
}
}
}

View File

@@ -0,0 +1,34 @@
{
"variants": {
"facing=east,part=head": {
"model": "minecraft:block/blue_bed_head",
"y": 270
},
"facing=north,part=head": {
"model": "minecraft:block/blue_bed_head",
"y": 180
},
"facing=south,part=head": {
"model": "minecraft:block/blue_bed_head"
},
"facing=west,part=head": {
"model": "minecraft:block/blue_bed_head",
"y": 90
},
"facing=east,part=foot": {
"model": "minecraft:block/blue_bed_foot",
"y": 270
},
"facing=north,part=foot": {
"model": "minecraft:block/blue_bed_foot",
"y": 180
},
"facing=south,part=foot": {
"model": "minecraft:block/blue_bed_foot"
},
"facing=west,part=foot": {
"model": "minecraft:block/blue_bed_foot",
"y": 90
}
}
}

View File

@@ -0,0 +1,34 @@
{
"variants": {
"facing=east,part=head": {
"model": "minecraft:block/brown_bed_head",
"y": 270
},
"facing=north,part=head": {
"model": "minecraft:block/brown_bed_head",
"y": 180
},
"facing=south,part=head": {
"model": "minecraft:block/brown_bed_head"
},
"facing=west,part=head": {
"model": "minecraft:block/brown_bed_head",
"y": 90
},
"facing=east,part=foot": {
"model": "minecraft:block/brown_bed_foot",
"y": 270
},
"facing=north,part=foot": {
"model": "minecraft:block/brown_bed_foot",
"y": 180
},
"facing=south,part=foot": {
"model": "minecraft:block/brown_bed_foot"
},
"facing=west,part=foot": {
"model": "minecraft:block/brown_bed_foot",
"y": 90
}
}
}

View File

@@ -0,0 +1,34 @@
{
"variants": {
"facing=east,part=head": {
"model": "minecraft:block/cyan_bed_head",
"y": 270
},
"facing=north,part=head": {
"model": "minecraft:block/cyan_bed_head",
"y": 180
},
"facing=south,part=head": {
"model": "minecraft:block/cyan_bed_head"
},
"facing=west,part=head": {
"model": "minecraft:block/cyan_bed_head",
"y": 90
},
"facing=east,part=foot": {
"model": "minecraft:block/cyan_bed_foot",
"y": 270
},
"facing=north,part=foot": {
"model": "minecraft:block/cyan_bed_foot",
"y": 180
},
"facing=south,part=foot": {
"model": "minecraft:block/cyan_bed_foot"
},
"facing=west,part=foot": {
"model": "minecraft:block/cyan_bed_foot",
"y": 90
}
}
}

View File

@@ -0,0 +1,34 @@
{
"variants": {
"facing=east,part=head": {
"model": "minecraft:block/gray_bed_head",
"y": 270
},
"facing=north,part=head": {
"model": "minecraft:block/gray_bed_head",
"y": 180
},
"facing=south,part=head": {
"model": "minecraft:block/gray_bed_head"
},
"facing=west,part=head": {
"model": "minecraft:block/gray_bed_head",
"y": 90
},
"facing=east,part=foot": {
"model": "minecraft:block/gray_bed_foot",
"y": 270
},
"facing=north,part=foot": {
"model": "minecraft:block/gray_bed_foot",
"y": 180
},
"facing=south,part=foot": {
"model": "minecraft:block/gray_bed_foot"
},
"facing=west,part=foot": {
"model": "minecraft:block/gray_bed_foot",
"y": 90
}
}
}

View File

@@ -0,0 +1,34 @@
{
"variants": {
"facing=east,part=head": {
"model": "minecraft:block/green_bed_head",
"y": 270
},
"facing=north,part=head": {
"model": "minecraft:block/green_bed_head",
"y": 180
},
"facing=south,part=head": {
"model": "minecraft:block/green_bed_head"
},
"facing=west,part=head": {
"model": "minecraft:block/green_bed_head",
"y": 90
},
"facing=east,part=foot": {
"model": "minecraft:block/green_bed_foot",
"y": 270
},
"facing=north,part=foot": {
"model": "minecraft:block/green_bed_foot",
"y": 180
},
"facing=south,part=foot": {
"model": "minecraft:block/green_bed_foot"
},
"facing=west,part=foot": {
"model": "minecraft:block/green_bed_foot",
"y": 90
}
}
}

View File

@@ -0,0 +1,34 @@
{
"variants": {
"facing=east,part=head": {
"model": "minecraft:block/light_blue_bed_head",
"y": 270
},
"facing=north,part=head": {
"model": "minecraft:block/light_blue_bed_head",
"y": 180
},
"facing=south,part=head": {
"model": "minecraft:block/light_blue_bed_head"
},
"facing=west,part=head": {
"model": "minecraft:block/light_blue_bed_head",
"y": 90
},
"facing=east,part=foot": {
"model": "minecraft:block/light_blue_bed_foot",
"y": 270
},
"facing=north,part=foot": {
"model": "minecraft:block/light_blue_bed_foot",
"y": 180
},
"facing=south,part=foot": {
"model": "minecraft:block/light_blue_bed_foot"
},
"facing=west,part=foot": {
"model": "minecraft:block/light_blue_bed_foot",
"y": 90
}
}
}

View File

@@ -0,0 +1,34 @@
{
"variants": {
"facing=east,part=head": {
"model": "minecraft:block/light_gray_bed_head",
"y": 270
},
"facing=north,part=head": {
"model": "minecraft:block/light_gray_bed_head",
"y": 180
},
"facing=south,part=head": {
"model": "minecraft:block/light_gray_bed_head"
},
"facing=west,part=head": {
"model": "minecraft:block/light_gray_bed_head",
"y": 90
},
"facing=east,part=foot": {
"model": "minecraft:block/light_gray_bed_foot",
"y": 270
},
"facing=north,part=foot": {
"model": "minecraft:block/light_gray_bed_foot",
"y": 180
},
"facing=south,part=foot": {
"model": "minecraft:block/light_gray_bed_foot"
},
"facing=west,part=foot": {
"model": "minecraft:block/light_gray_bed_foot",
"y": 90
}
}
}

View File

@@ -0,0 +1,34 @@
{
"variants": {
"facing=east,part=head": {
"model": "minecraft:block/lime_bed_head",
"y": 270
},
"facing=north,part=head": {
"model": "minecraft:block/lime_bed_head",
"y": 180
},
"facing=south,part=head": {
"model": "minecraft:block/lime_bed_head"
},
"facing=west,part=head": {
"model": "minecraft:block/lime_bed_head",
"y": 90
},
"facing=east,part=foot": {
"model": "minecraft:block/lime_bed_foot",
"y": 270
},
"facing=north,part=foot": {
"model": "minecraft:block/lime_bed_foot",
"y": 180
},
"facing=south,part=foot": {
"model": "minecraft:block/lime_bed_foot"
},
"facing=west,part=foot": {
"model": "minecraft:block/lime_bed_foot",
"y": 90
}
}
}

View File

@@ -0,0 +1,34 @@
{
"variants": {
"facing=east,part=head": {
"model": "minecraft:block/magenta_bed_head",
"y": 270
},
"facing=north,part=head": {
"model": "minecraft:block/magenta_bed_head",
"y": 180
},
"facing=south,part=head": {
"model": "minecraft:block/magenta_bed_head"
},
"facing=west,part=head": {
"model": "minecraft:block/magenta_bed_head",
"y": 90
},
"facing=east,part=foot": {
"model": "minecraft:block/magenta_bed_foot",
"y": 270
},
"facing=north,part=foot": {
"model": "minecraft:block/magenta_bed_foot",
"y": 180
},
"facing=south,part=foot": {
"model": "minecraft:block/magenta_bed_foot"
},
"facing=west,part=foot": {
"model": "minecraft:block/magenta_bed_foot",
"y": 90
}
}
}

View File

@@ -0,0 +1,34 @@
{
"variants": {
"facing=east,part=head": {
"model": "minecraft:block/orange_bed_head",
"y": 270
},
"facing=north,part=head": {
"model": "minecraft:block/orange_bed_head",
"y": 180
},
"facing=south,part=head": {
"model": "minecraft:block/orange_bed_head"
},
"facing=west,part=head": {
"model": "minecraft:block/orange_bed_head",
"y": 90
},
"facing=east,part=foot": {
"model": "minecraft:block/orange_bed_foot",
"y": 270
},
"facing=north,part=foot": {
"model": "minecraft:block/orange_bed_foot",
"y": 180
},
"facing=south,part=foot": {
"model": "minecraft:block/orange_bed_foot"
},
"facing=west,part=foot": {
"model": "minecraft:block/orange_bed_foot",
"y": 90
}
}
}

View File

@@ -0,0 +1,34 @@
{
"variants": {
"facing=east,part=head": {
"model": "minecraft:block/pink_bed_head",
"y": 270
},
"facing=north,part=head": {
"model": "minecraft:block/pink_bed_head",
"y": 180
},
"facing=south,part=head": {
"model": "minecraft:block/pink_bed_head"
},
"facing=west,part=head": {
"model": "minecraft:block/pink_bed_head",
"y": 90
},
"facing=east,part=foot": {
"model": "minecraft:block/pink_bed_foot",
"y": 270
},
"facing=north,part=foot": {
"model": "minecraft:block/pink_bed_foot",
"y": 180
},
"facing=south,part=foot": {
"model": "minecraft:block/pink_bed_foot"
},
"facing=west,part=foot": {
"model": "minecraft:block/pink_bed_foot",
"y": 90
}
}
}

View File

@@ -0,0 +1,34 @@
{
"variants": {
"facing=east,part=head": {
"model": "minecraft:block/purple_bed_head",
"y": 270
},
"facing=north,part=head": {
"model": "minecraft:block/purple_bed_head",
"y": 180
},
"facing=south,part=head": {
"model": "minecraft:block/purple_bed_head"
},
"facing=west,part=head": {
"model": "minecraft:block/purple_bed_head",
"y": 90
},
"facing=east,part=foot": {
"model": "minecraft:block/purple_bed_foot",
"y": 270
},
"facing=north,part=foot": {
"model": "minecraft:block/purple_bed_foot",
"y": 180
},
"facing=south,part=foot": {
"model": "minecraft:block/purple_bed_foot"
},
"facing=west,part=foot": {
"model": "minecraft:block/purple_bed_foot",
"y": 90
}
}
}

View File

@@ -0,0 +1,34 @@
{
"variants": {
"facing=east,part=head": {
"model": "minecraft:block/red_bed_head",
"y": 270
},
"facing=north,part=head": {
"model": "minecraft:block/red_bed_head",
"y": 180
},
"facing=south,part=head": {
"model": "minecraft:block/red_bed_head"
},
"facing=west,part=head": {
"model": "minecraft:block/red_bed_head",
"y": 90
},
"facing=east,part=foot": {
"model": "minecraft:block/red_bed_foot",
"y": 270
},
"facing=north,part=foot": {
"model": "minecraft:block/red_bed_foot",
"y": 180
},
"facing=south,part=foot": {
"model": "minecraft:block/red_bed_foot"
},
"facing=west,part=foot": {
"model": "minecraft:block/red_bed_foot",
"y": 90
}
}
}

View File

@@ -0,0 +1,34 @@
{
"variants": {
"facing=east,part=head": {
"model": "minecraft:block/white_bed_head",
"y": 270
},
"facing=north,part=head": {
"model": "minecraft:block/white_bed_head",
"y": 180
},
"facing=south,part=head": {
"model": "minecraft:block/white_bed_head"
},
"facing=west,part=head": {
"model": "minecraft:block/white_bed_head",
"y": 90
},
"facing=east,part=foot": {
"model": "minecraft:block/white_bed_foot",
"y": 270
},
"facing=north,part=foot": {
"model": "minecraft:block/white_bed_foot",
"y": 180
},
"facing=south,part=foot": {
"model": "minecraft:block/white_bed_foot"
},
"facing=west,part=foot": {
"model": "minecraft:block/white_bed_foot",
"y": 90
}
}
}

View File

@@ -0,0 +1,34 @@
{
"variants": {
"facing=east,part=head": {
"model": "minecraft:block/yellow_bed_head",
"y": 270
},
"facing=north,part=head": {
"model": "minecraft:block/yellow_bed_head",
"y": 180
},
"facing=south,part=head": {
"model": "minecraft:block/yellow_bed_head"
},
"facing=west,part=head": {
"model": "minecraft:block/yellow_bed_head",
"y": 90
},
"facing=east,part=foot": {
"model": "minecraft:block/yellow_bed_foot",
"y": 270
},
"facing=north,part=foot": {
"model": "minecraft:block/yellow_bed_foot",
"y": 180
},
"facing=south,part=foot": {
"model": "minecraft:block/yellow_bed_foot"
},
"facing=west,part=foot": {
"model": "minecraft:block/yellow_bed_foot",
"y": 90
}
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_foot",
"textures": {
"bed": "minecraft:entity/bed/black"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_head",
"textures": {
"bed": "minecraft:entity/bed/black"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_foot",
"textures": {
"bed": "minecraft:entity/bed/blue"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_head",
"textures": {
"bed": "minecraft:entity/bed/blue"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_foot",
"textures": {
"bed": "minecraft:entity/bed/brown"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_head",
"textures": {
"bed": "minecraft:entity/bed/brown"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_foot",
"textures": {
"bed": "minecraft:entity/bed/cyan"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_head",
"textures": {
"bed": "minecraft:entity/bed/cyan"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_foot",
"textures": {
"bed": "minecraft:entity/bed/gray"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_head",
"textures": {
"bed": "minecraft:entity/bed/gray"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_foot",
"textures": {
"bed": "minecraft:entity/bed/green"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_head",
"textures": {
"bed": "minecraft:entity/bed/green"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_foot",
"textures": {
"bed": "minecraft:entity/bed/light_blue"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_head",
"textures": {
"bed": "minecraft:entity/bed/light_blue"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_foot",
"textures": {
"bed": "minecraft:entity/bed/light_gray"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_head",
"textures": {
"bed": "minecraft:entity/bed/light_gray"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_foot",
"textures": {
"bed": "minecraft:entity/bed/lime"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_head",
"textures": {
"bed": "minecraft:entity/bed/lime"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_foot",
"textures": {
"bed": "minecraft:entity/bed/magenta"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_head",
"textures": {
"bed": "minecraft:entity/bed/magenta"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_foot",
"textures": {
"bed": "minecraft:entity/bed/orange"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_head",
"textures": {
"bed": "minecraft:entity/bed/orange"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_foot",
"textures": {
"bed": "minecraft:entity/bed/pink"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_head",
"textures": {
"bed": "minecraft:entity/bed/pink"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_foot",
"textures": {
"bed": "minecraft:entity/bed/purple"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_head",
"textures": {
"bed": "minecraft:entity/bed/purple"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_foot",
"textures": {
"bed": "minecraft:entity/bed/red"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_head",
"textures": {
"bed": "minecraft:entity/bed/red"
}
}

View File

@@ -0,0 +1,44 @@
{
"credit": "Made with Blockbench",
"texture_size": [64, 64],
"textures": {
"particle": "block/oak_planks"
},
"elements": [
{
"from": [0, 0, 0],
"to": [3, 3, 3],
"faces": {
"north": {"uv": [12.5, 5.25, 13.25, 6], "texture": "#bed", "cullface": "north"},
"east": {"uv": [14.75, 5.25, 15.5, 6], "texture": "#bed"},
"south": {"uv": [14, 5.25, 14.75, 6], "texture": "#bed"},
"west": {"uv": [13.25, 5.25, 14, 6], "texture": "#bed", "cullface": "west"},
"down": {"uv": [14, 4.5, 14.75, 5.25], "texture": "#bed", "cullface": "down"}
}
},
{
"from": [13, 0, 0],
"to": [16, 3, 3],
"rotation": {"angle": 0, "axis": "y", "origin": [21, 8, 8]},
"faces": {
"north": {"uv": [14, 3.75, 13.25, 4.5], "texture": "#bed", "cullface": "north"},
"east": {"uv": [12.5, 3.75, 13.25, 4.5], "texture": "#bed", "cullface": "east"},
"south": {"uv": [14.75, 3.75, 15.5, 4.5], "texture": "#bed"},
"west": {"uv": [14, 3.75, 14.75, 4.5], "texture": "#bed"},
"down": {"uv": [14, 3, 14.75, 3.75], "texture": "#bed", "cullface": "down"}
}
},
{
"from": [0, 3, 0],
"to": [16, 9, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 11, 8]},
"faces": {
"north": {"uv": [5.5, 5.5, 9.5, 7], "rotation": 180, "texture": "#bed", "cullface": "north"},
"east": {"uv": [0, 7, 1.5, 11], "rotation": 270, "texture": "#bed", "cullface": "east"},
"west": {"uv": [5.5, 7, 7, 11], "rotation": 90, "texture": "#bed", "cullface": "west"},
"up": {"uv": [1.5, 7, 5.5, 11], "rotation": 180, "texture": "#bed"},
"down": {"uv": [7, 7, 11, 11], "texture": "#bed"}
}
}
]
}

View File

@@ -0,0 +1,45 @@
{
"credit": "Made with Blockbench",
"texture_size": [64, 64],
"textures": {
"particle": "block/oak_planks"
},
"elements": [
{
"from": [0, 0, 13],
"to": [3, 3, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 21]},
"faces": {
"north": {"uv": [14.75, 0.75, 15.5, 1.5], "texture": "#bed"},
"east": {"uv": [14, 0.75, 14.75, 1.5], "texture": "#bed"},
"south": {"uv": [13.25, 0.75, 14, 1.5], "texture": "#bed", "cullface": "south"},
"west": {"uv": [12.5, 0.75, 13.25, 1.5], "texture": "#bed", "cullface": "west"},
"down": {"uv": [14, 0, 14.75, 0.75], "texture": "#bed", "cullface": "down"}
}
},
{
"from": [13, 0, 13],
"to": [16, 3, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [21, 8, 21]},
"faces": {
"north": {"uv": [14, 2.25, 14.75, 3], "texture": "#bed"},
"east": {"uv": [13.25, 2.25, 14, 3], "texture": "#bed", "cullface": "east"},
"south": {"uv": [12.5, 2.25, 13.25, 3], "texture": "#bed", "cullface": "south"},
"west": {"uv": [14.75, 2.25, 15.5, 3], "texture": "#bed"},
"down": {"uv": [14, 1.5, 14.75, 2.25], "texture": "#bed", "cullface": "down"}
}
},
{
"from": [0, 3, 0],
"to": [16, 9, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 11, 8]},
"faces": {
"east": {"uv": [0, 1.5, 1.5, 5.5], "rotation": 270, "texture": "#bed", "cullface": "east"},
"south": {"uv": [1.5, 0, 5.5, 1.5], "rotation": 180, "texture": "#bed", "cullface": "south"},
"west": {"uv": [5.5, 1.5, 7, 5.5], "rotation": 90, "texture": "#bed", "cullface": "west"},
"up": {"uv": [1.5, 1.5, 5.5, 5.5], "rotation": 180, "texture": "#bed"},
"down": {"uv": [7, 1.5, 11, 5.5], "texture": "#bed"}
}
}
]
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_foot",
"textures": {
"bed": "minecraft:entity/bed/white"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_head",
"textures": {
"bed": "minecraft:entity/bed/white"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_foot",
"textures": {
"bed": "minecraft:entity/bed/yellow"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_bed_head",
"textures": {
"bed": "minecraft:entity/bed/yellow"
}
}

View File

@@ -0,0 +1,111 @@
{
"credit": "Made with Blockbench",
"ambientocclusion": false,
"texture_size": [64, 64],
"textures": {
"particle": "block/oak_planks"
},
"elements": [
{
"from": [0, 3, 8],
"to": [16, 9, 24],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 11, 8]},
"faces": {
"east": {"uv": [0, 1.5, 1.5, 5.5], "rotation": 270, "texture": "#bed"},
"south": {"uv": [1.5, 0, 5.5, 1.5], "rotation": 180, "texture": "#bed"},
"west": {"uv": [5.5, 1.5, 7, 5.5], "rotation": 90, "texture": "#bed"},
"up": {"uv": [1.5, 1.5, 5.5, 5.5], "rotation": 180, "texture": "#bed"},
"down": {"uv": [7, 1.5, 11, 5.5], "texture": "#bed"}
}
},
{
"from": [0, 0, 21],
"to": [3, 3, 24],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 21]},
"faces": {
"north": {"uv": [14.75, 0.75, 15.5, 1.5], "texture": "#bed"},
"east": {"uv": [14, 0.75, 14.75, 1.5], "texture": "#bed"},
"south": {"uv": [13.25, 0.75, 14, 1.5], "texture": "#bed"},
"west": {"uv": [12.5, 0.75, 13.25, 1.5], "texture": "#bed"},
"down": {"uv": [14, 0, 14.75, 0.75], "texture": "#bed"}
}
},
{
"from": [13, 0, 21],
"to": [16, 3, 24],
"rotation": {"angle": 0, "axis": "y", "origin": [21, 8, 21]},
"faces": {
"north": {"uv": [14, 2.25, 14.75, 3], "texture": "#bed"},
"east": {"uv": [13.25, 2.25, 14, 3], "texture": "#bed"},
"south": {"uv": [12.5, 2.25, 13.25, 3], "texture": "#bed"},
"west": {"uv": [14.75, 2.25, 15.5, 3], "texture": "#bed"},
"down": {"uv": [14, 1.5, 14.75, 2.25], "texture": "#bed"}
}
},
{
"from": [0, 3, -8],
"to": [16, 9, 8],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 11, 8]},
"faces": {
"north": {"uv": [5.5, 5.5, 9.5, 7], "rotation": 180, "texture": "#bed"},
"east": {"uv": [0, 7, 1.5, 11], "rotation": 270, "texture": "#bed"},
"west": {"uv": [5.5, 7, 7, 11], "rotation": 90, "texture": "#bed"},
"up": {"uv": [1.5, 7, 5.5, 11], "rotation": 180, "texture": "#bed"},
"down": {"uv": [7, 7, 11, 11], "texture": "#bed"}
}
},
{
"from": [0, 0, -8],
"to": [3, 3, -5],
"faces": {
"north": {"uv": [12.5, 5.25, 13.25, 6], "texture": "#bed"},
"east": {"uv": [14.75, 5.25, 15.5, 6], "texture": "#bed"},
"south": {"uv": [14, 5.25, 14.75, 6], "texture": "#bed"},
"west": {"uv": [13.25, 5.25, 14, 6], "texture": "#bed"},
"down": {"uv": [14, 4.5, 14.75, 5.25], "texture": "#bed"}
}
},
{
"from": [13, 0, -8],
"to": [16, 3, -5],
"rotation": {"angle": 0, "axis": "y", "origin": [21, 8, 8]},
"faces": {
"north": {"uv": [13.25, 3.75, 14, 4.5], "texture": "#bed"},
"east": {"uv": [12.5, 3.75, 13.25, 4.5], "texture": "#bed"},
"south": {"uv": [14.75, 3.75, 15.5, 4.5], "texture": "#bed"},
"west": {"uv": [14, 3.75, 14.75, 4.5], "texture": "#bed"},
"down": {"uv": [14, 3, 14.75, 3.75], "texture": "#bed"}
}
}
],
"display": {
"thirdperson_righthand": {
"rotation": [30, 160, 0],
"translation": [0, 3, -2],
"scale": [0.23, 0.23, 0.23]
},
"firstperson_righthand": {
"rotation": [30, 160, 0],
"translation": [0, 3, 0],
"scale": [0.375, 0.375, 0.375]
},
"ground": {
"translation": [0, 1, 2],
"scale": [0.25, 0.25, 0.25]
},
"gui": {
"rotation": [30, 160, 0],
"translation": [0.25, 1.5, 0],
"scale": [0.5325, 0.5325, 0.5325]
},
"head": {
"rotation": [0, 180, 0],
"translation": [0, 10, -8]
},
"fixed": {
"rotation": [270, 0, 0],
"translation": [0, 4, -2],
"scale": [0.5, 0.5, 0.5]
}
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/bed",
"textures": {
"bed": "entity/bed/black"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/bed",
"textures": {
"bed": "entity/bed/blue"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/bed",
"textures": {
"bed": "entity/bed/brown"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/bed",
"textures": {
"bed": "entity/bed/cyan"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/bed",
"textures": {
"bed": "entity/bed/gray"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/bed",
"textures": {
"bed": "entity/bed/green"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/bed",
"textures": {
"bed": "entity/bed/light_blue"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/bed",
"textures": {
"bed": "entity/bed/light_gray"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/bed",
"textures": {
"bed": "entity/bed/lime"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/bed",
"textures": {
"bed": "entity/bed/magenta"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/bed",
"textures": {
"bed": "entity/bed/orange"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/bed",
"textures": {
"bed": "entity/bed/pink"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/bed",
"textures": {
"bed": "entity/bed/purple"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/bed",
"textures": {
"bed": "entity/bed/red"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/bed",
"textures": {
"bed": "entity/bed/white"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/bed",
"textures": {
"bed": "entity/bed/yellow"
}
}

View File

@@ -0,0 +1,12 @@
{
"required": true,
"package": "eu.midnightdust.betterbeds.mixin",
"compatibilityLevel": "JAVA_17",
"client": [
"MixinBedBlock",
"MixinBlockEntityRendererDispatcher"
],
"injectors": {
"defaultRequire": 1
}
}

View File

@@ -0,0 +1,44 @@
{
"credit": "made by Motschen",
"texture_size": [64, 64],
"textures": {
"particle": "block/oak_planks"
},
"elements": [
{
"from": [0, 0, 0],
"to": [3, 3, 3],
"faces": {
"north": {"uv": [12.5, 3.75, 13.25, 4.5], "texture": "#bed", "cullface": "west"},
"east": {"uv": [14.75, 3.75, 15.5, 4.5], "texture": "#bed", "cullface": "west"},
"south": {"uv": [14, 3.75, 14.75, 4.5], "texture": "#bed", "cullface": "west"},
"west": {"uv": [13.25, 3.75, 14, 4.5], "texture": "#bed", "cullface": "west"},
"down": {"uv": [14, 3, 14.75, 3.75], "texture": "#bed", "cullface": "west"}
}
},
{
"from": [13, 0, 0],
"to": [16, 3, 3],
"rotation": {"angle": 0, "axis": "y", "origin": [21, 8, 8]},
"faces": {
"north": {"uv": [13.25, 0.75, 12.5, 1.5], "texture": "#bed", "cullface": "east"},
"east": {"uv": [14.75, 0.75, 15.5, 1.5], "texture": "#bed", "cullface": "east"},
"south": {"uv": [14, 0.75, 14.75, 1.5], "texture": "#bed", "cullface": "east"},
"west": {"uv": [13.25, 0.75, 14, 1.5], "texture": "#bed", "cullface": "east"},
"down": {"uv": [14, 0, 14.75, 0.75], "texture": "#bed", "cullface": "east"}
}
},
{
"from": [0, 3, 0],
"to": [16, 9, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 11, 8]},
"faces": {
"north": {"uv": [5.5, 5.5, 9.5, 7], "rotation": 180, "texture": "#bed"},
"east": {"uv": [0, 7, 1.5, 11], "rotation": 270, "texture": "#bed"},
"west": {"uv": [5.5, 7, 7, 11], "rotation": 90, "texture": "#bed"},
"up": {"uv": [1.5, 7, 5.5, 11], "rotation": 180, "texture": "#bed"},
"down": {"uv": [7, 7, 11, 11], "texture": "#bed"}
}
}
]
}

View File

@@ -0,0 +1,71 @@
{
"credit": "made by Motschen",
"texture_size": [64, 64],
"textures": {
"particle": "block/oak_planks"
},
"elements": [
{
"from": [0, 0, 13],
"to": [3, 3, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 21]},
"faces": {
"north": {"uv": [12.5, 5.25, 13.25, 6], "texture": "#bed", "cullface": "west"},
"east": {"uv": [14.75, 5.25, 15.5, 6], "texture": "#bed", "cullface": "west"},
"south": {"uv": [14, 5.25, 14.75, 6], "texture": "#bed", "cullface": "west"},
"west": {"uv": [13.25, 5.25, 14, 6], "texture": "#bed", "cullface": "west"},
"down": {"uv": [14, 4.5, 14.75, 5.25], "texture": "#bed", "cullface": "west"}
}
},
{
"from": [13, 0, 13],
"to": [16, 3, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [21, 8, 21]},
"faces": {
"north": {"uv": [12.5, 2.25, 13.25, 3], "texture": "#bed", "cullface": "east"},
"east": {"uv": [14.75, 2.25, 15.5, 3], "texture": "#bed", "cullface": "east"},
"south": {"uv": [14, 2.25, 14.75, 3], "texture": "#bed", "cullface": "east"},
"west": {"uv": [13.25, 2.25, 14, 3], "texture": "#bed", "cullface": "east"},
"down": {"uv": [14, 1.5, 14.75, 2.25], "texture": "#bed", "cullface": "east"}
}
},
{
"from": [0, 3, 0],
"to": [16, 9, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 11, 8]},
"faces": {
"east": {"uv": [0, 1.5, 1.5, 5.5], "rotation": 270, "texture": "#bed"},
"south": {"uv": [1.5, 0, 5.5, 1.5], "rotation": 180, "texture": "#bed"},
"west": {"uv": [5.5, 1.5, 7, 5.5], "rotation": 90, "texture": "#bed"},
"up": {"uv": [1.5, 1.5, 5.5, 5.5], "rotation": 180, "texture": "#bed"},
"down": {"uv": [7, 7, 11, 11], "texture": "#bed"}
}
},
{
"from": [0, 9, 8],
"to": [16, 10, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 17, 16]},
"faces": {
"north": {"uv": [1.5, 3.25, 5.5, 3.5], "texture": "#bed"},
"east": {"uv": [1.5, 1.5, 1.75, 3.5], "rotation": 270, "texture": "#bed"},
"south": {"uv": [1.5, 1.5, 5.5, 1.75], "texture": "#bed"},
"west": {"uv": [5.25, 1.5, 5.5, 3.5], "rotation": 90, "texture": "#bed"},
"up": {"uv": [1.5, 1.5, 5.5, 3.5], "rotation": 180, "texture": "#bed"},
"down": {"uv": [0, 0, 4, 2], "texture": "#bed"}
}
},
{
"from": [1, 10, 9],
"to": [15, 11, 15],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 18, 16]},
"faces": {
"north": {"uv": [1.75, 3.25, 5.25, 3.5], "texture": "#bed"},
"east": {"uv": [1.75, 1.75, 2, 3.25], "rotation": 90, "texture": "#bed"},
"south": {"uv": [1.75, 0.5, 5.25, 0.75], "texture": "#bed"},
"west": {"uv": [5, 1.75, 5.25, 3.25], "rotation": 90, "texture": "#bed"},
"up": {"uv": [1.75, 1.75, 5.25, 3.25], "rotation": 180, "texture": "#bed"},
"down": {"uv": [0, 0, 3.5, 1.5], "texture": "#bed"}
}
}
]
}

View File

@@ -0,0 +1,10 @@
{
"pack": {
"pack_format": 12,
"supported_formats": {
"min_inclusive": 12,
"max_inclusive": 100
},
"description": "§2Makes beds look fancier and allows them to connect <3"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB