diff --git a/README.md b/README.md index a61ee0a..4b429e3 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ BDE_ParticleSys is a highly customizable **server-side** particle system that uses `Block Display Entities` (BDEs) as particles. It is meant to be used as a library for other mods, but can be used as a standalone mod too. -If BDE_ParticleSys is used as a standalone mod, you will only be able to use it with the custom in-game commands `/GiveParticleEmitter` and `/ManageEmitters`. Any particles made with those commands are **temporary** and get **removed** once the server shuts down. +If BDE_ParticleSys is used as a standalone mod, you will only be able to use it with the custom in-game commands `/GiveEmitterTool` and `/ManageEmitters`. Any particles made with those commands are **temporary** and get **removed** once the server shuts down. # Open-source - Copyright diff --git a/src/main/kotlin/com/bytedice/bde_particles/Bde_particles.kt b/src/main/kotlin/com/bytedice/bde_particles/Bde_particles.kt index f82a02b..36b7da3 100644 --- a/src/main/kotlin/com/bytedice/bde_particles/Bde_particles.kt +++ b/src/main/kotlin/com/bytedice/bde_particles/Bde_particles.kt @@ -1,6 +1,6 @@ package com.bytedice.bde_particles -import com.bytedice.bde_particles.commands.GiveParticleEmitter +import com.bytedice.bde_particles.commands.GiveEmitterTool import com.bytedice.bde_particles.commands.ManageEmitters import com.bytedice.bde_particles.items.getToolDetails import com.bytedice.bde_particles.math.raycastFromPlayer @@ -29,13 +29,6 @@ import net.minecraft.world.World var ALL_PARTICLE_EMITTERS: Array = emptyArray() -data class Config( - val cooldown: Int = 1 -) - - -val cfg = Config() - class Bde_particles : ModInitializer { @@ -49,7 +42,7 @@ class Bde_particles : ModInitializer { } CommandRegistrationCallback.EVENT.register { dispatcher, registryAccess, _ -> - GiveParticleEmitter.register(dispatcher, registryAccess) + GiveEmitterTool.register(dispatcher, registryAccess) ManageEmitters .register(dispatcher) } diff --git a/src/main/kotlin/com/bytedice/bde_particles/commands/GiveParticleEmitter.kt b/src/main/kotlin/com/bytedice/bde_particles/commands/GiveEmitterTool.kt similarity index 96% rename from src/main/kotlin/com/bytedice/bde_particles/commands/GiveParticleEmitter.kt rename to src/main/kotlin/com/bytedice/bde_particles/commands/GiveEmitterTool.kt index 26f5796..b7b1e4b 100644 --- a/src/main/kotlin/com/bytedice/bde_particles/commands/GiveParticleEmitter.kt +++ b/src/main/kotlin/com/bytedice/bde_particles/commands/GiveEmitterTool.kt @@ -16,9 +16,9 @@ import net.minecraft.text.TextColor import java.awt.Color import java.util.concurrent.CompletableFuture -object GiveParticleEmitter { +object GiveEmitterTool { fun register(dispatcher: CommandDispatcher, registryAccess: CommandRegistryAccess) { - val command = CommandManager.literal("GiveParticleEmitter") + val command = CommandManager.literal("GiveEmitterTool") .requires { source -> source.hasPermissionLevel(4) } val allEmitterIds = emitterIdRegister.keys