Skip to content

Commit

Permalink
chore: 1.21 (1.0.1)
Browse files Browse the repository at this point in the history
new versioning policy btw
  • Loading branch information
GalvinPython committed Dec 12, 2024
1 parent 561b41f commit 57ca86c
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 14 deletions.
Binary file removed .github/assets/java_nVWQbEK5Oa.png
Binary file not shown.
22 changes: 17 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# NoSleep
NoSleep is a Minecraft Mod for Fabric 1.21 that prevents the player from sleeping in a bed
# Ban Sleeping
Ban Sleeping is a Minecraft Mod for Fabric 1.21 that prevents the player from sleeping in a bed

# Compatible Versions
|Mod Version|Game Version(s)|Mod Version Title
|---|---|---|
|1.0.0|1.21 - 1.21.1|1.0.0+1.21|
| Mod Version | Loader | Game Version(s) | Mod Version File |
|-------------|--------|-----------------|-------------------------|
| 1.0.1 | Fabric | 1.21.4 | 1.0.1-fabric+1.21.4.jar |
| 1.0.1 | Fabric | 1.21.3 | 1.0.1-fabric+1.21.3.jar |
| 1.0.1 | Fabric | 1.21.2 | 1.0.1-fabric+1.21.2.jar |
| 1.0.1 | Fabric | 1.21.1 | 1.0.1-fabric+1.21.1.jar |
| 1.0.1 | Fabric | 1.21 | 1.0.1-fabric+1.21.jar |
| 1.0.0 | Fabric | 1.21 | 1.0.0-fabric+1.21.jar |

# Important Note
This mod is a **server-side** mod!
Expand All @@ -13,5 +18,12 @@ Playing on a **server**? You are not required to have this downloaded.

Also: This mod requires the **Fabric API**

## About 1.0.1
1.0.1 was just a refactoring change, no new features were added. It was also the introduction of a new policy for distributing the mod.

Every update will now have its own .jar file to keep up to date with the Fabric API requirements. This helps me identify potential issues with the mod and new Minecraft/Farbic API versions.

However, each mod file will not be tied to one game version, but rather a minimum game version. i.e. you can run the 1.21 version on 1.21.1, however there may be issues with it

# Demonstration of Mod
![Mod in action](https://cdn.modrinth.com/data/IvwI6YOW/images/21d6b30795faca98cbeb614ea94d00112d53d322.png)
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ minecraft_version=1.21
yarn_mappings=1.21+build.9
loader_version=0.15.11

# Fabric API
fabric_version=0.102.0+1.21

# Mod Properties
mod_version=1.0.0+1.21
maven_group=galvin.nosleep
mod_version=1.0.1+1.21
maven_group=me.imgalvin.bansleeping
archives_base_name=bansleeping

# Dependencies
fabric_version=0.100.7+1.21
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package galvin.nosleep;
package me.imgalvin.bansleeping;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.entity.event.v1.EntitySleepEvents;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.text.Text;
import net.minecraft.util.math.BlockPos;

public class Nosleep implements ModInitializer {
public class BanSleeping implements ModInitializer {
@Override
public void onInitialize() {
EntitySleepEvents.ALLOW_SLEEPING.register((PlayerEntity player, BlockPos blockPos) -> {
Expand Down
Binary file added src/main/resources/assets/bansleeping/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/main/resources/assets/nosleep/icon.png
Binary file not shown.
4 changes: 2 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"issues": "https://github.com/GalvinPython/bansleeping-minecraft/issues"
},
"license": "MIT",
"icon": "assets/nosleep/icon.png",
"icon": "assets/bansleeping/icon.png",
"environment": "*",
"entrypoints": {
"main": [
"galvin.nosleep.Nosleep"
"me.imgalvin.bansleeping.BanSleeping"
]
},
"depends": {
Expand Down

0 comments on commit 57ca86c

Please sign in to comment.