Coder Social home page Coder Social logo

particle-moths's Introduction

Particle Moths

Adds moths to Minecraft using particles.

Spawning

Moths don't technically spawn because they're actually particles. However, for the sake of simplicity I will refer to this "adding of particles" as spawning.

Caves

Moths will attempt to spawn in a radius around the player, with the size being defined in the config. If the place where moths attempt to spawn has rain or is in water, then the moths won't spawn.

Blocks

Moths also have a chance to spawn by certain light-emitting blocks. Similarly to the cave spawning, if a moth tries to spawn in rain or water, it won't be spawned.

Blocks That Spawn Moths
  • Regular Torches (Includes soul torches)
  • Lanterns
  • Spawn Moths When Lit
    • Redstone Torches
    • Redstone Lamps
    • Candles

Configuration

Below are all the settings available, which give the user almost complete control over the mod.

All Configuration Settings
  • Spawn Moths
  • Glowing Moths
  • Specific Velocities - If true, the speed of the Moths will be calculated individually on each axis.
  • (X, Y, Z) Velocity - The speed moths will travel at on each axis.
  • Moth Count
  • Spawn Probability - The chance that a moth will spawn.
  • (X, Y, Z) Spawn Distance - The uppermost distance moths can spawn from the player.
  • (Negative & Positive) Height Limit - The lowermost and uppermost that moths can spawn.
  • Spawn By Blocks
  • Block Spawn Probability
  • (X, Y, Z) Block Spawn Distance - The uppermost distance that moths can spawn from blocks.
  • [Toggles for the blocks that moths can spawn at. (List seen above.)]

Gifs

Show/Hide

Configuration: 100 Block Spawn Probability
100_block_probability_example

Configuration: Glowing moths are on. Moth Count and Spawn Probability are both 50.
cave_example

particle-moths's People

Contributors

thepoultryman avatar

Stargazers

Diamond avatar

Watchers

 avatar

particle-moths's Issues

Random crash on server

Hello, my game crashed randomly on my server. Every time I tried to reconnect I got the same error:

java.lang.NullPointerException: Cannot invoke "java.lang.Boolean.booleanValue()" because the return value of "java.util.Map.get(Object)" is null
at Not Enough Crashes deobfuscated stack trace.(1.19+build.4)
at net.minecraft.block.RedstoneLampBlock.randomDisplayTick(RedstoneLampBlock:527)
at net.minecraft.client.world.ClientWorld.randomBlockDisplayTick(ClientWorld:383)
at net.minecraft.client.world.ClientWorld.doRandomBlockDisplayTicks(ClientWorld:358)
at net.minecraft.client.MinecraftClient.tick(MinecraftClient:1892)
at net.minecraft.client.MinecraftClient.render(MinecraftClient:1135)
at net.minecraft.client.MinecraftClient.run(MinecraftClient:768)
at fudge.notenoughcrashes.mixinhandlers.InGameCatcher.handleClientCrash(InGameCatcher.java:37)
at net.minecraft.client.MinecraftClient.modify$ima000$atTheEndOfSecondCatchBeforePrintingCrashReport(MinecraftClient:34022)
at net.minecraft.client.MinecraftClient.run(MinecraftClient:795)
at net.minecraft.client.main.Main.method_44604(Main:244)
at net.minecraft.client.main.Main.main(Main:51)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

A detailed walkthrough of the error, its code path and all known details is as follows:

-- Head --
Thread: Render thread
Stacktrace:
at net.minecraft.class_2453.method_9496(class_2453.java:527)
at net.minecraft.class_638.method_2943(class_638.java:383)
at net.minecraft.class_638.method_2941(class_638.java:358)

Removing the mod helped and I was able to join the server.

Decrease block spawn distance

Hi! Sorry, not really an issue but is there a way to get the moths to spawn only on the light-emitting block and not further? I tried to set the block spawn distance to 0, but that just broke the game.

Thank you in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.