mirror of
https://github.com/TeamMidnightDust/BetterBeds.git
synced 2025-12-16 13:35:09 +01:00
Port to 1.21 & Add NeoForge support
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package eu.midnightdust.fabric.betterbeds;
|
||||
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
import net.fabricmc.fabric.api.resource.ResourceManagerHelper;
|
||||
import net.fabricmc.fabric.api.resource.ResourcePackActivationType;
|
||||
import net.fabricmc.loader.api.FabricLoader;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
public class BetterBedsFabric implements ClientModInitializer {
|
||||
public void onInitializeClient() {
|
||||
FabricLoader.getInstance().getModContainer("betterbeds").ifPresent(modContainer -> {
|
||||
ResourceManagerHelper.registerBuiltinResourcePack(Identifier.of("betterbeds:fancyconnectedbeds"), modContainer, ResourcePackActivationType.NORMAL);
|
||||
});
|
||||
}
|
||||
}
|
||||
44
fabric/src/main/resources/fabric.mod.json
Normal file
44
fabric/src/main/resources/fabric.mod.json
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"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": "client",
|
||||
|
||||
"entrypoints": {
|
||||
"client": [
|
||||
"eu.midnightdust.fabric.betterbeds.BetterBedsFabric"
|
||||
]
|
||||
},
|
||||
|
||||
"mixins": [
|
||||
"betterbeds.mixins.json"
|
||||
],
|
||||
|
||||
"depends": {
|
||||
"fabric-api": "*",
|
||||
"minecraft": ">=1.21"
|
||||
},
|
||||
"custom": {
|
||||
"modmenu": {
|
||||
"links": {
|
||||
"modmenu.discord": "https://discord.gg/jAGnWYHm3r"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user