mirror of
https://github.com/TeamMidnightDust/BetterBeds.git
synced 2025-12-15 21:15:09 +01:00
First release :)
This commit is contained in:
@@ -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,30 @@
|
||||
package eu.midnightdust.betterbeds.mixin;
|
||||
|
||||
import com.google.common.collect.Maps;
|
||||
import net.minecraft.block.BedBlock;
|
||||
import net.minecraft.block.BlockRenderType;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.HorizontalFacingBlock;
|
||||
import net.minecraft.block.entity.BlockEntityType;
|
||||
import net.minecraft.client.render.block.entity.BlockEntityRenderDispatcher;
|
||||
import net.minecraft.client.render.block.entity.BlockEntityRenderer;
|
||||
import net.minecraft.util.math.Direction;
|
||||
import org.spongepowered.asm.mixin.Final;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Overwrite;
|
||||
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(BlockEntityRenderDispatcher.class)
|
||||
public abstract class MixinBlockEntityRendererDispatcher {
|
||||
@Shadow @Final private Map<BlockEntityType<?>, BlockEntityRenderer<?>> renderers;
|
||||
|
||||
@Inject(method = "<init>()V", at = @At("TAIL"))
|
||||
private void init(CallbackInfo info) {
|
||||
renderers.remove(BlockEntityType.BED);
|
||||
}
|
||||
}
|
||||
BIN
src/main/resources/assets/betterbeds/icon.png
Normal file
BIN
src/main/resources/assets/betterbeds/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
src/main/resources/assets/minecraft/blockstates/red_bed.json
Normal file
34
src/main/resources/assets/minecraft/blockstates/red_bed.json
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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,46 @@
|
||||
{
|
||||
"credit": "made by Motschen",
|
||||
"texture_size": [64, 64],
|
||||
"ambientocclusion": false,
|
||||
"textures": {
|
||||
"0": "entity/bed/lime",
|
||||
"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": "#0"},
|
||||
"east": {"uv": [14.75, 3.75, 15.5, 4.5], "texture": "#0"},
|
||||
"south": {"uv": [14, 3.75, 14.75, 4.5], "texture": "#0"},
|
||||
"west": {"uv": [13.25, 3.75, 14, 4.5], "texture": "#0"},
|
||||
"down": {"uv": [14, 3, 14.75, 3.75], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [13, 0, 0],
|
||||
"to": [16, 3, 3],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [21, 8, 8]},
|
||||
"faces": {
|
||||
"north": {"uv": [12.5, 0.75, 13.25, 1.5], "texture": "#0"},
|
||||
"east": {"uv": [14.75, 0.75, 15.5, 1.5], "texture": "#0"},
|
||||
"south": {"uv": [14, 0.75, 14.75, 1.5], "texture": "#0"},
|
||||
"west": {"uv": [13.25, 0.75, 14, 1.5], "texture": "#0"},
|
||||
"down": {"uv": [14, 0, 14.75, 0.75], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": "#0"},
|
||||
"east": {"uv": [0, 7, 1.5, 11], "rotation": 270, "texture": "#0"},
|
||||
"west": {"uv": [5.5, 7, 7, 11], "rotation": 90, "texture": "#0"},
|
||||
"up": {"uv": [1.5, 7, 5.5, 11], "rotation": 180, "texture": "#0"},
|
||||
"down": {"uv": [7, 7, 11, 11], "texture": "#0"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"credit": "made by Motschen",
|
||||
"texture_size": [64, 64],
|
||||
"ambientocclusion": false,
|
||||
"textures": {
|
||||
"0": "entity/bed/lime",
|
||||
"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": "#0"},
|
||||
"east": {"uv": [14.75, 5.25, 15.5, 6], "texture": "#0"},
|
||||
"south": {"uv": [14, 5.25, 14.75, 6], "texture": "#0"},
|
||||
"west": {"uv": [13.25, 5.25, 14, 6], "texture": "#0"},
|
||||
"down": {"uv": [14, 4.5, 14.75, 5.25], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": "#0"},
|
||||
"east": {"uv": [14.75, 2.25, 15.5, 3], "texture": "#0"},
|
||||
"south": {"uv": [14, 2.25, 14.75, 3], "texture": "#0"},
|
||||
"west": {"uv": [13.25, 2.25, 14, 3], "texture": "#0"},
|
||||
"down": {"uv": [14, 1.5, 14.75, 2.25], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": "#0"},
|
||||
"south": {"uv": [1.5, 0, 5.5, 1.5], "rotation": 180, "texture": "#0"},
|
||||
"west": {"uv": [5.5, 1.5, 7, 5.5], "rotation": 90, "texture": "#0"},
|
||||
"up": {"uv": [1.5, 1.5, 5.5, 5.5], "rotation": 180, "texture": "#0"},
|
||||
"down": {"uv": [7, 7, 11, 11], "texture": "#0"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_foot",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/black"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_head",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/black"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_foot",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/blue"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_head",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/blue"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_foot",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/brown"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_head",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/brown"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_foot",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/cyan"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_head",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/cyan"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_foot",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/gray"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_head",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/gray"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_foot",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/green"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_head",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/green"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_foot",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/light_blue"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_head",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/light_blue"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_foot",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/light_gray"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_head",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/light_gray"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_foot",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/lime"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_head",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/lime"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_foot",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/magenta"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_head",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/magenta"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_foot",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/orange"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_head",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/orange"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_foot",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/pink"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_head",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/pink"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_foot",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/purple"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_head",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/purple"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_foot",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/red"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_head",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/red"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_foot",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/white"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_head",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/white"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_foot",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/yellow"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/bed_head",
|
||||
"textures": {
|
||||
"0": "minecraft:entity/bed/yellow"
|
||||
}
|
||||
}
|
||||
123
src/main/resources/assets/minecraft/models/item/bed.json
Normal file
123
src/main/resources/assets/minecraft/models/item/bed.json
Normal file
@@ -0,0 +1,123 @@
|
||||
{
|
||||
"credit": "made by Motschen",
|
||||
"ambientocclusion": false,
|
||||
"texture_size": [64, 64],
|
||||
"textures": {
|
||||
"0": "entity/bed/lime",
|
||||
"particle": "block/oak_planks"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [0, 0, -8],
|
||||
"to": [3, 3, -5],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 0]},
|
||||
"faces": {
|
||||
"north": {"uv": [12.5, 3.75, 13.25, 4.5], "texture": "#0"},
|
||||
"east": {"uv": [14.75, 3.75, 15.5, 4.5], "texture": "#0"},
|
||||
"south": {"uv": [14, 3.75, 14.75, 4.5], "texture": "#0"},
|
||||
"west": {"uv": [13.25, 3.75, 14, 4.5], "texture": "#0"},
|
||||
"down": {"uv": [14, 3, 14.75, 3.75], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [13, 0, -8],
|
||||
"to": [16, 3, -5],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [21, 8, 0]},
|
||||
"faces": {
|
||||
"north": {"uv": [12.5, 0.75, 13.25, 1.5], "texture": "#0"},
|
||||
"east": {"uv": [14.75, 0.75, 15.5, 1.5], "texture": "#0"},
|
||||
"south": {"uv": [14, 0.75, 14.75, 1.5], "texture": "#0"},
|
||||
"west": {"uv": [13.25, 0.75, 14, 1.5], "texture": "#0"},
|
||||
"down": {"uv": [14, 0, 14.75, 0.75], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [0, 3, -8],
|
||||
"to": [16, 9, 8],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [8, 11, 0]},
|
||||
"faces": {
|
||||
"north": {"uv": [5.5, 5.5, 9.5, 7], "rotation": 180, "texture": "#0"},
|
||||
"east": {"uv": [0, 7, 1.5, 11], "rotation": 270, "texture": "#0"},
|
||||
"west": {"uv": [5.5, 7, 7, 11], "rotation": 90, "texture": "#0"},
|
||||
"up": {"uv": [1.5, 7, 5.5, 11], "rotation": 180, "texture": "#0"},
|
||||
"down": {"uv": [7, 7, 11, 11], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [0, 0, 21],
|
||||
"to": [3, 3, 24],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 29]},
|
||||
"faces": {
|
||||
"north": {"uv": [12.5, 5.25, 13.25, 6], "texture": "#0"},
|
||||
"east": {"uv": [14.75, 5.25, 15.5, 6], "texture": "#0"},
|
||||
"south": {"uv": [14, 5.25, 14.75, 6], "texture": "#0"},
|
||||
"west": {"uv": [13.25, 5.25, 14, 6], "texture": "#0"},
|
||||
"up": {"uv": [0, 0, 0, 0], "texture": "#0"},
|
||||
"down": {"uv": [14, 4.5, 14.75, 5.25], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [13, 0, 21],
|
||||
"to": [16, 3, 24],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [21, 8, 29]},
|
||||
"faces": {
|
||||
"north": {"uv": [12.5, 2.25, 13.25, 3], "texture": "#0"},
|
||||
"east": {"uv": [14.75, 2.25, 15.5, 3], "texture": "#0"},
|
||||
"south": {"uv": [14, 2.25, 14.75, 3], "texture": "#0"},
|
||||
"west": {"uv": [13.25, 2.25, 14, 3], "texture": "#0"},
|
||||
"up": {"uv": [0, 0, 0, 0], "texture": "#0"},
|
||||
"down": {"uv": [14, 1.5, 14.75, 2.25], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [0, 3, 8],
|
||||
"to": [16, 9, 24],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [8, 11, 16]},
|
||||
"faces": {
|
||||
"north": {"uv": [0, 0, 0, 0], "texture": "#0"},
|
||||
"east": {"uv": [0, 1.5, 1.5, 5.5], "rotation": 270, "texture": "#0"},
|
||||
"south": {"uv": [1.5, 0, 5.5, 1.5], "rotation": 180, "texture": "#0"},
|
||||
"west": {"uv": [5.5, 1.5, 7, 5.5], "rotation": 90, "texture": "#0"},
|
||||
"up": {"uv": [1.5, 1.5, 5.5, 5.5], "rotation": 180, "texture": "#0"},
|
||||
"down": {"uv": [7, 7, 11, 11], "texture": "#0"}
|
||||
}
|
||||
}
|
||||
],
|
||||
"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]
|
||||
}
|
||||
},
|
||||
"groups": [0, 1, 2,
|
||||
{
|
||||
"name": "bed_head",
|
||||
"origin": [8, 8, 8],
|
||||
"children": [3, 4, 5]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"0": "entity/bed/black"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"0": "entity/bed/blue"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"0": "entity/bed/brown"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"0": "entity/bed/cyan"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"0": "entity/bed/gray"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"0": "entity/bed/green"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"0": "entity/bed/light_blue"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"0": "entity/bed/light_gray"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"0": "entity/bed/lime"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"0": "entity/bed/magenta"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"0": "entity/bed/orange"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"0": "entity/bed/pink"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"0": "entity/bed/purple"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"0": "entity/bed/red"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"0": "entity/bed/white"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/bed",
|
||||
"textures": {
|
||||
"0": "entity/bed/yellow"
|
||||
}
|
||||
}
|
||||
12
src/main/resources/betterbeds.mixins.json
Normal file
12
src/main/resources/betterbeds.mixins.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"required": true,
|
||||
"package": "eu.midnightdust.betterbeds.mixin",
|
||||
"compatibilityLevel": "JAVA_8",
|
||||
"client": [
|
||||
"MixinBedBlock",
|
||||
"MixinBlockEntityRendererDispatcher"
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
}
|
||||
}
|
||||
37
src/main/resources/fabric.mod.json
Normal file
37
src/main/resources/fabric.mod.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "betterbeds",
|
||||
"version": "${version}",
|
||||
|
||||
"name": "Better Beds",
|
||||
"description": "Changes the renderer of the bed to use block models instead of a block entity renderer!",
|
||||
"authors": [
|
||||
"Motschen",
|
||||
"TeamMidnightDust"
|
||||
],
|
||||
"contact": {
|
||||
"homepage": "https://www.midnightdust.eu/",
|
||||
"sources": "https://github.com/TeamMidnightDust/BetterBeds",
|
||||
"issues": "https://github.com/TeamMidnightDust/BetterBeds/issues"
|
||||
},
|
||||
|
||||
"license": "MIT",
|
||||
"icon": "assets/betterbeds/icon.png",
|
||||
|
||||
"environment": "*",
|
||||
|
||||
"mixins": [
|
||||
"betterbeds.mixins.json"
|
||||
],
|
||||
|
||||
"depends": {
|
||||
"fabric": "*"
|
||||
},
|
||||
"custom": {
|
||||
"modmenu": {
|
||||
"links": {
|
||||
"modmenu.discord": "https://discord.gg/jAGnWYHm3r"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user