Skip to content

Commit

Permalink
+ 添加readme
Browse files Browse the repository at this point in the history
+ 权限节点修正
  • Loading branch information
cnlimiter committed Dec 19, 2023
1 parent 0cb1fba commit d4ca63f
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/forge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: Atom-Sweep-forge-all
path: forge/build/libs
path: build/libs
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## 📕 Introduction

This mod provides server entity cleaning function, which can clean item entities, mob entities, experience orb,
tridents, arrows, etc.
And the mod provides whitelist and blacklist functions to facilitate your customization.
Also the mod will not clean up named entities.

## 📖 Content

`Admin functions`

| Function | Command | Node |
|------------------------|----------------------|-----------------------------|
| Clean item entities | /atomsweep items | atom.clean.command.items |
| Clean monster entities | /atomsweep monsters | atom.clean.command.monsters |
| Clean animal entities | /atomsweep monsters | atom.clean.command.monsters |
| Clean other entities | /atomsweep monsters | atom.clean.command.monsters |
| Add item whitelist | /atomsweep white add | |
| Delete item whitelist | /atomsweep white del | |

## ❗ NOTE

You can change the mod configuration in atom/atom_sweep.toml in the game directory.
You can use this mod in any modpack.

2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx8G
org.gradle.daemon=false
# Mod Properties
mod_id=atomsweep
mod_name=Atom-Sweep-forge
mod_name=AtomSweep-forge
mod_license=GPL V3
mod_version=0.2.0
mod_group_id=committee.nova.atom
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,38 +26,42 @@ public static void register(CommandDispatcher<CommandSourceStack> dispatcher) {
.then(
Commands.literal("items")
.executes(SweepCommand::itemsExe)
.requires(context -> Static.cmdPermission(context, "atom.sweep.command.items", true))
)
.then(
Commands.literal("monsters")
.executes(SweepCommand::monstersExe)
.requires(context -> Static.cmdPermission(context, "atom.sweep.command.monsters", true))
)
.then(
Commands.literal("animals")
.executes(SweepCommand::animalsExe)
.requires(context -> Static.cmdPermission(context, "atom.sweep.command.animals", true))
)
.then(
Commands.literal("others")
.executes(SweepCommand::othersExe)
.requires(context -> Static.cmdPermission(context, "atom.sweep.command.others", true))
)
.then(
Commands.literal("xps")
.executes(SweepCommand::xpsExe)
.requires(context -> Static.cmdPermission(context, "atom.sweep.command.xps", true))
)
.then(
Commands.literal("white")
.then(
Commands.literal("add")
.executes(SweepCommand::whiteAdd)
.requires(context -> context.hasPermission(2))

)
.then(
Commands.literal("del")
.executes(SweepCommand::whiteDel)
.requires(context -> context.hasPermission(2))
)
)

.requires(context -> Static.cmdPermission(context, "atom.sweep.command.all", true))

);
}

Expand Down

0 comments on commit d4ca63f

Please sign in to comment.