mirror of
https://github.com/TeamMidnightDust/BetterBeds.git
synced 2025-12-16 05:25:09 +01:00
Port to 1.21 & Add NeoForge support
This commit is contained in:
23
common/build.gradle
Normal file
23
common/build.gradle
Normal 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.
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
1
common/src/main/resources/architectury.common.json
Normal file
1
common/src/main/resources/architectury.common.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
BIN
common/src/main/resources/assets/betterbeds/icon.png
Executable file
BIN
common/src/main/resources/assets/betterbeds/icon.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"sources": [
|
||||
{
|
||||
"type": "directory",
|
||||
"source": "entity/bed",
|
||||
"prefix": "entity/bed/"
|
||||
}
|
||||
]
|
||||
}
|
||||
34
common/src/main/resources/assets/minecraft/blockstates/black_bed.json
Executable file
34
common/src/main/resources/assets/minecraft/blockstates/black_bed.json
Executable 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
|
||||
}
|
||||
}
|
||||
}
|
||||
34
common/src/main/resources/assets/minecraft/blockstates/blue_bed.json
Executable file
34
common/src/main/resources/assets/minecraft/blockstates/blue_bed.json
Executable 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
|
||||
}
|
||||
}
|
||||
}
|
||||
34
common/src/main/resources/assets/minecraft/blockstates/brown_bed.json
Executable file
34
common/src/main/resources/assets/minecraft/blockstates/brown_bed.json
Executable 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
|
||||
}
|
||||
}
|
||||
}
|
||||
34
common/src/main/resources/assets/minecraft/blockstates/cyan_bed.json
Executable file
34
common/src/main/resources/assets/minecraft/blockstates/cyan_bed.json
Executable 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
|
||||
}
|
||||
}
|
||||
}
|
||||
34
common/src/main/resources/assets/minecraft/blockstates/gray_bed.json
Executable file
34
common/src/main/resources/assets/minecraft/blockstates/gray_bed.json
Executable 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
|
||||
}
|
||||
}
|
||||
}
|
||||
34
common/src/main/resources/assets/minecraft/blockstates/green_bed.json
Executable file
34
common/src/main/resources/assets/minecraft/blockstates/green_bed.json
Executable 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
|
||||
}
|
||||
}
|
||||
}
|
||||
34
common/src/main/resources/assets/minecraft/blockstates/light_blue_bed.json
Executable file
34
common/src/main/resources/assets/minecraft/blockstates/light_blue_bed.json
Executable 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
|
||||
}
|
||||
}
|
||||
}
|
||||
34
common/src/main/resources/assets/minecraft/blockstates/light_gray_bed.json
Executable file
34
common/src/main/resources/assets/minecraft/blockstates/light_gray_bed.json
Executable 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
|
||||
}
|
||||
}
|
||||
}
|
||||
34
common/src/main/resources/assets/minecraft/blockstates/lime_bed.json
Executable file
34
common/src/main/resources/assets/minecraft/blockstates/lime_bed.json
Executable 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
|
||||
}
|
||||
}
|
||||
}
|
||||
34
common/src/main/resources/assets/minecraft/blockstates/magenta_bed.json
Executable file
34
common/src/main/resources/assets/minecraft/blockstates/magenta_bed.json
Executable 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
|
||||
}
|
||||
}
|
||||
}
|
||||
34
common/src/main/resources/assets/minecraft/blockstates/orange_bed.json
Executable file
34
common/src/main/resources/assets/minecraft/blockstates/orange_bed.json
Executable 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
|
||||
}
|
||||
}
|
||||
}
|
||||
34
common/src/main/resources/assets/minecraft/blockstates/pink_bed.json
Executable file
34
common/src/main/resources/assets/minecraft/blockstates/pink_bed.json
Executable 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
|
||||
}
|
||||
}
|
||||
}
|
||||
34
common/src/main/resources/assets/minecraft/blockstates/purple_bed.json
Executable file
34
common/src/main/resources/assets/minecraft/blockstates/purple_bed.json
Executable 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
|
||||
}
|
||||
}
|
||||
}
|
||||
34
common/src/main/resources/assets/minecraft/blockstates/red_bed.json
Executable file
34
common/src/main/resources/assets/minecraft/blockstates/red_bed.json
Executable 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
|
||||
}
|
||||
}
|
||||
}
|
||||
34
common/src/main/resources/assets/minecraft/blockstates/white_bed.json
Executable file
34
common/src/main/resources/assets/minecraft/blockstates/white_bed.json
Executable 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
|
||||
}
|
||||
}
|
||||
}
|
||||
34
common/src/main/resources/assets/minecraft/blockstates/yellow_bed.json
Executable file
34
common/src/main/resources/assets/minecraft/blockstates/yellow_bed.json
Executable 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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_foot",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/black"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_head",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/black"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_foot",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/blue"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_head",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/blue"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_foot",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/brown"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_head",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/brown"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_foot",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/cyan"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_head",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/cyan"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_foot",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/gray"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_head",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/gray"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_foot",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/green"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_head",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/green"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_foot",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/light_blue"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_head",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/light_blue"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_foot",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/light_gray"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_head",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/light_gray"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_foot",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/lime"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_head",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/lime"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_foot",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/magenta"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_head",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/magenta"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_foot",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/orange"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_head",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/orange"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_foot",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/pink"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_head",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/pink"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_foot",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/purple"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_head",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/purple"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_foot",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/red"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_head",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/red"
|
||||
}
|
||||
}
|
||||
@@ -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"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_foot",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/white"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_head",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/white"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_foot",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/yellow"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/template_bed_head",
|
||||
"textures": {
|
||||
"bed": "minecraft:entity/bed/yellow"
|
||||
}
|
||||
}
|
||||
111
common/src/main/resources/assets/minecraft/models/item/bed.json
Executable file
111
common/src/main/resources/assets/minecraft/models/item/bed.json
Executable 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]
|
||||
}
|
||||
}
|
||||
}
|
||||
6
common/src/main/resources/assets/minecraft/models/item/black_bed.json
Executable file
6
common/src/main/resources/assets/minecraft/models/item/black_bed.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"bed": "entity/bed/black"
|
||||
}
|
||||
}
|
||||
6
common/src/main/resources/assets/minecraft/models/item/blue_bed.json
Executable file
6
common/src/main/resources/assets/minecraft/models/item/blue_bed.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"bed": "entity/bed/blue"
|
||||
}
|
||||
}
|
||||
6
common/src/main/resources/assets/minecraft/models/item/brown_bed.json
Executable file
6
common/src/main/resources/assets/minecraft/models/item/brown_bed.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"bed": "entity/bed/brown"
|
||||
}
|
||||
}
|
||||
6
common/src/main/resources/assets/minecraft/models/item/cyan_bed.json
Executable file
6
common/src/main/resources/assets/minecraft/models/item/cyan_bed.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"bed": "entity/bed/cyan"
|
||||
}
|
||||
}
|
||||
6
common/src/main/resources/assets/minecraft/models/item/gray_bed.json
Executable file
6
common/src/main/resources/assets/minecraft/models/item/gray_bed.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"bed": "entity/bed/gray"
|
||||
}
|
||||
}
|
||||
6
common/src/main/resources/assets/minecraft/models/item/green_bed.json
Executable file
6
common/src/main/resources/assets/minecraft/models/item/green_bed.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"bed": "entity/bed/green"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"bed": "entity/bed/light_blue"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"bed": "entity/bed/light_gray"
|
||||
}
|
||||
}
|
||||
6
common/src/main/resources/assets/minecraft/models/item/lime_bed.json
Executable file
6
common/src/main/resources/assets/minecraft/models/item/lime_bed.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"bed": "entity/bed/lime"
|
||||
}
|
||||
}
|
||||
6
common/src/main/resources/assets/minecraft/models/item/magenta_bed.json
Executable file
6
common/src/main/resources/assets/minecraft/models/item/magenta_bed.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"bed": "entity/bed/magenta"
|
||||
}
|
||||
}
|
||||
6
common/src/main/resources/assets/minecraft/models/item/orange_bed.json
Executable file
6
common/src/main/resources/assets/minecraft/models/item/orange_bed.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"bed": "entity/bed/orange"
|
||||
}
|
||||
}
|
||||
6
common/src/main/resources/assets/minecraft/models/item/pink_bed.json
Executable file
6
common/src/main/resources/assets/minecraft/models/item/pink_bed.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"bed": "entity/bed/pink"
|
||||
}
|
||||
}
|
||||
6
common/src/main/resources/assets/minecraft/models/item/purple_bed.json
Executable file
6
common/src/main/resources/assets/minecraft/models/item/purple_bed.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"bed": "entity/bed/purple"
|
||||
}
|
||||
}
|
||||
6
common/src/main/resources/assets/minecraft/models/item/red_bed.json
Executable file
6
common/src/main/resources/assets/minecraft/models/item/red_bed.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"bed": "entity/bed/red"
|
||||
}
|
||||
}
|
||||
6
common/src/main/resources/assets/minecraft/models/item/white_bed.json
Executable file
6
common/src/main/resources/assets/minecraft/models/item/white_bed.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"bed": "entity/bed/white"
|
||||
}
|
||||
}
|
||||
6
common/src/main/resources/assets/minecraft/models/item/yellow_bed.json
Executable file
6
common/src/main/resources/assets/minecraft/models/item/yellow_bed.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"bed": "entity/bed/yellow"
|
||||
}
|
||||
}
|
||||
12
common/src/main/resources/betterbeds.mixins.json
Executable file
12
common/src/main/resources/betterbeds.mixins.json
Executable file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"required": true,
|
||||
"package": "eu.midnightdust.betterbeds.mixin",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"client": [
|
||||
"MixinBedBlock",
|
||||
"MixinBlockEntityRendererDispatcher"
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
}
|
||||
}
|
||||
@@ -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"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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 |
Reference in New Issue
Block a user