Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@ jobs:
21, # Current Java LTS & minimum supported by Minecraft
]
# and run on both Linux and Windows
os: [ubuntu-20.04, windows-2022]
os: [ubuntu-latest, windows-2022]
runs-on: ${{ matrix.os }}
steps:
- name: checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
uses: gradle/wrapper-validation-action@v3
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ Addon to [AntiShadowPatch](https://modrinth.com/mod/antishadowpatch) that adds e
* Disable Light Recalculation DataFixer
* * When loading 1.19- chunks in 1.20+, the new light engine recalculates light in every single one of them. This option prevents it. If you have an EOL farm, you can load chunks with it once, and the EOL farm will work even without the mod enabled.
* Max Count Per Stack
* * Increases max stack size of the item.
* * Increases max stack size of the item.
* * Note that while vanilla clients can see overstacked items and hold them in the inventory, they can't really move them and will also be kicked if they see a give command output. You can see this behavior [here](https://www.youtube.com/watch?v=8DBCKKCNCYo).


#### Commands (requires Fabric API)
* /nsse swap <blockEntity> - modifies a block in the player's hand to include a block entity. Similar to block entity swap, but you can carry it around.

* /nsse swap <blockEntity> <pos> - sets a block entity of the specific type at the specified position.
* /nsse exists <pos> - returns the block entity info at a specified pos if it exists.

You can configure every setting individually in notsoshadowextras_config.json
8 changes: 5 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ org.gradle.jvmargs=-Xmx1G
# check these on https://fabricmc.net/develop
minecraft_version=1.21.4
yarn_mappings=1.21.4+build.8
loader_version=0.16.10
fabric_version=0.118.5+1.21.4
loader_version=0.16.14

# Fabric API
fabric_version=0.119.2+1.21.4

# Mod Properties
mod_version = 2.0.0
maven_group = ru.nern
archives_base_name = not-so-shadow-extras-1.21.4
fconfig_version=085f7c7
fconfig_version=1.1.1

2 changes: 1 addition & 1 deletion src/main/java/ru/nern/notsoshadowextras/NSSECommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static int blockEntityExists(ServerCommandSource source, BlockPos pos) {
Text.literal("Block entity does not exist at this position"), false);
}else{
source.sendFeedback(() ->
Text.literal(String.format("Block entity does exist. Type: %s", blockEntity.getType().getRegistryEntry().getIdAsString())), false);
Text.literal(String.format("Block entity does exist. Type: %s", Registries.BLOCK_ENTITY_TYPE.getId(blockEntity.getType()))), false);
}

return 1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ru.nern.notsoshadowextras.mixin.blocks;

import com.llamalad7.mixinextras.injector.wrapoperation.Operation;
import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.BulbBlock;
Expand All @@ -12,7 +10,6 @@
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;
import ru.nern.notsoshadowextras.NSSE;

@Mixin(BulbBlock.class)
public abstract class BulbBlockMixin extends Block {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.Constant;
import org.spongepowered.asm.mixin.injection.ModifyConstant;
import ru.nern.notsoshadowextras.NSSE;

@Mixin(CrafterBlock.class)
public class CrafterBlockMixin {
Expand Down

This file was deleted.

289 changes: 0 additions & 289 deletions src/main/java/ru/nern/notsoshadowextras/test/NSSETests.java

This file was deleted.

Loading
Loading