Skip to content

Commit

Permalink
1.1.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Fanzhitianyu committed Aug 9, 2023
1 parent 26e8e7e commit 063fbe9
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 18 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
>显示物品血量
>显示爆炸射线
>修复渲染错误[个人认为~~开摆~~]
>~~红石粉更顺序显示~~
>红石粉更顺序显示
>跳转指定微时序
>区块加载显示
>NC,PP区分显示[NC红框,PP黄框]
>tnt动量偏移显示
>音符盒加载
>tnt动量偏移显示
>音符盒加载 √
>珍珠加载 √
>堆肥等级修改 √
>矿车掉落机制修改 √
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.13.3
yarn_mappings=1.18.2+build.2
# Mod Properties
mod_version = 1.1.2-beta
mod_version = 1.1.2-release
maven_group = LazyAlienServer
archives_base_name = Carpet-LAS-Addition

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
package lazyalienserver.carpetlasaddition;

import net.fabricmc.api.ClientModInitializer;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
@Environment(EnvType.CLIENT)
public class CarpetLASClient implements ClientModInitializer {

@Override
public void onInitializeClient() {
//Test1Command.register(ClientCommandManager.DISPATCHER);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ public class CarpetLASSetting {
public static final String LASAddition="LAS";
@Rule(desc = "Allow horizontally moving ender pearls to force chunk loading", category = {LASAddition})
public static boolean enderPearlChunkLoading = false;
@Rule(desc = "NC Update 24 mode charged note box loads 300gt Chunk [Strong: 3*3, Weak: 5*5, Boundary 7*7]",category = {LASAddition})
public static boolean NC_noteBlockLoadChunk=false;
@Rule(desc = "Above the charge there is a 24-stop note box with an blue orchids pot loads 300gt Chunk [Strong: 3*3, Weak: 5*5, Boundary 7*7]",category = {LASAddition})
public static boolean NoteBlockLoadChunk =false;
@Rule(desc = "Any item placed in the bin will add one level to the bin [you need to right-click the bin once after each setting change to apply the current setting]",category = {LASAddition})
public static boolean CompostGradeModification=false;
@Rule(desc = "Replace the minecart drop mechanism with version 1.18.2 with the drop mechanism in version 1.19",category = {LASAddition})
public static boolean MinecartDropModify =false;


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

import lazyalienserver.carpetlasaddition.CarpetLASSetting;
import lazyalienserver.carpetlasaddition.utils.ChunkUtils;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.NoteBlock;
import net.minecraft.block.*;
import net.minecraft.state.property.IntProperty;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
Expand All @@ -19,9 +17,9 @@
@Mixin(NoteBlock.class)
public class NoteBlockMixin {
@Shadow @Final public static IntProperty NOTE;
@Inject(at=@At("RETURN"),method = "neighborUpdate")
public void neighborUpdate(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean notify, CallbackInfo ci){
if(CarpetLASSetting.NC_noteBlockLoadChunk &&world.isReceivingRedstonePower(pos)&&state.get(NOTE)==24){
@Inject(at=@At("RETURN"),method = "playNote")
public void neighborUpdate(World world, BlockPos pos, CallbackInfo ci){
if(CarpetLASSetting.NoteBlockLoadChunk &&world.isReceivingRedstonePower(pos)&&world.getBlockState(pos).get(NOTE)==24&&world.getBlockState(pos.up()).getBlock() == Blocks.POTTED_BLUE_ORCHID){
ChunkUtils.addNCNoteBlockChunkTicket(world,pos);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/assets/carpet-las-addition/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"rule.EnderPearlChunkLoading.name": "Ender Pearl Chunk loading",
"rule.EnderPearlChunkLoading.desc": "Allow horizontally moving ender pearls to force chunk loading",

"rule.NC_noteBlockLoadChunk.name": "NoteBlockLoading",
"rule.NC_noteBlockLoadChunk.desc": "NC Update 24 mode charged note box loads 300gt Chunk [Strong: 3*3, Weak: 5*5, Boundary 7*7]",
"rule.NoteBlockLoadChunk.name": "NoteBlockLoading",
"rule.NoteBlockLoadChunk.desc": "Above the charge there is a 24-stop note box with an blue orchid pot loads 300gt Chunk [Strong: 3*3, Weak: 5*5, Boundary 7*7]",

"rule.CompostGradeModification":"Compost grade modification",
"rule.CompostGradeModification.desc": "Any item placed in the bin will add one level to the bin [you need to right-click the bin once after each setting change to apply the current setting]",
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/assets/carpet-las-addition/lang/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"rule.enderPearlChunkLoading.name": "末影珍珠区块加载",
"rule.enderPearlChunkLoading.desc": "让水平移动的末影珍珠可以强加载区块",

"rule.NC_noteBlockLoadChunk.name": "NC更新音符盒加载",
"rule.NC_noteBlockLoadChunk.desc": "NC更新24模式的被充能音符盒加载300gt区块[强:3*3,弱:5*5,边界7*7]",
"rule.NoteBlockLoadChunk.name": "音符盒加载",
"rule.NoteBlockLoadChunk.desc": "充能上方有种着兰花花盆的24档音符盒加载300gt区块[强:3*3,弱:5*5,边界7*7]",

"rule.CompostGradeModification.name":"堆肥等级修改",
"rule.CompostGradeModification.desc": "任何放入堆肥桶的物品都将使堆肥桶增加一级[每次更改设置后需要右键一次堆肥桶才能应用当前设置]",
Expand Down

0 comments on commit 063fbe9

Please sign in to comment.