Jump to content

Tim Graupmann

Members
  • Posts

    24
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Tim Graupmann's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Biome biome = event.world.getBiome(mPlayerState.mPosition); logMessage("biome: "+biome+ " tenp "+biome.getTemperature(mPlayerState.mPosition)); Checking the biome temp reports around 0.14 but I get the same low temps for rain and snow areas. I'd figure snow would be at temps 32F/0C or below. I might use the condition if the player is on snow covered block or snow tile at the player position. boolean isRaining = false; boolean isSnowing = false; if (event.world.isRainingAt(mPlayerState.mPosition)) { BlockState blockState = event.world.getBlockState(mPlayerState.mPosition); if (blockState.getBlock() == Blocks.SNOW || blockState.getBlock() == Blocks.SNOW_BLOCK) { isSnowing = true; } else { Biome biome = event.world.getBiome(mPlayerState.mPosition); switch (biome.getPrecipitation()) { case RAIN: isRaining = true; break; case SNOW: isSnowing = true; break; } } } This works well enough...
  2. When I'm checking `isRainingAt` I'm seeing it return true for both SNOW and RAIN.
  3. Minecart and detecting rain works. I can detect RAIN, I haven't seen SNOW reported yet. Even when I'm standing in snow or flying through it getPrecipitation reports RAIN. boolean isRaining = false; boolean isSnowing = false; if (event.world.isRainingAt(mPlayerState.mPosition)) { Biome biome = event.world.getBiome(mPlayerState.mPosition); switch (biome.getPrecipitation()) { case RAIN: isRaining = true; break; case SNOW: isSnowing = true; break; } }
  4. Is there a weather event for rain and snow? I searched the source and I found Biomes with snow, but I don't think that's the same thing. I found there's a player.isOnLadder(), is there something for isInMinecart? https://github.com/tgraupmann/MinecraftChromaMod/blob/master/src/main/java/com/example/examplemod/MyForgeEventHandler.java Thanks!
  5. I can't actually move the thread. Can a moderator move it? I renamed the topic...
  6. I found a workaround by embedding the SVG content on the HTML page. Okay now I can make some better video.
  7. I integrated some scalable SVG widgets that I can show on top of the video. I have to work out some SVG content document issues on the streaming platforms before I can use it on a live stream. ugh... https://github.com/tgraupmann/Mixer-Sample-SVG
  8. Thanks for the hints. I'm going to spend a day on those video Chroma widgets. It's hard to see on the side and I'll make it so they appear on top of the game so they can be bigger and easier to see the lighting patterns.
  9. Here's a video where you can see it working. Source code: https://github.com/tgraupmann/MinecraftChromaMod/blob/master/src/main/java/com/example/examplemod/MyForgeEventHandler.java I'll add more Chroma effects for the various events as I figure things out... Things to figure out: * Attack with a sword * Place a block * Ride in a cart * Crafting * Destroy a block * Climb a ladder * Get hurt by a creeper * Kill a pig * Drink a potion * Stand near a chicken * Walk through a portal * Place a fish * Swim through bubbles * Weather snow * Weather rain
  10. And it's working with the upgraded Chroma library. First there's a C++ DLL and I have a tool that parses the C++ header to get all the nice helper functions and comments. https://github.com/tgraupmann/ChromaAPISync/blob/master/bin/Debug/stdafx.h And then the DLL interface library is generated. https://github.com/tgraupmann/ChromaAPISync/blob/master/bin/Debug/JChromaLib.java And then the wrapper Java is generated. https://github.com/tgraupmann/ChromaAPISync/blob/master/bin/Debug/JChromaSDK.java This gets copied over to the Java Chroma library. https://github.com/tgraupmann/JChroma And then it's ready for the Minecraft mod. https://github.com/tgraupmann/MinecraftChromaMod/blob/master/src/main/java/com/example/examplemod/MyForgeEventHandler.java This exposes the nice API from the guide to Java. http://chroma.razer.com/ChromaGuide/
  11. I have Chroma effects playing with some temporary API calls from JChroma. https://github.com/tgraupmann/JChroma I need to expose the C++ API to JAVA. https://github.com/razerofficial/CChromaEditor I just need to expose the basics like setting the idle animation, playing an animation with/without looping, and copy/add/subtract layers.
  12. Okay it seems like the Minecraft Forge has trouble building with Oracle's JAVA. C:\Users\timot\Downloads\forge-1.12.2-14.23.5.2844-mdk>gradlew.bat setupDecompWorkspace To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html. This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril. ################################################# ForgeGradle 2.3-SNAPSHOT-7764e3e https://github.com/MinecraftForge/ForgeGradle ################################################# Powered by MCP http://modcoderpack.com by: Searge, ProfMobius, R4wk, ZeuX Fesh0r, IngisKahn, bspkrs, LexManos ################################################# :deobfCompileDummyTask :deobfProvidedDummyTask :getVersionJson :extractUserdev UP-TO-DATE :extractDependencyATs SKIPPED :extractMcpData SKIPPED :extractMcpMappings SKIPPED :genSrgs SKIPPED :downloadClient SKIPPED :downloadServer SKIPPED :splitServerJar SKIPPED :mergeJars SKIPPED :deobfMcSRG SKIPPED :decompileMc SKIPPED :fixMcSources :applySourcePatches Patching failed: cp/MethodsReturnNonnullByDefault.java Cannot find hunk target 1: Cannot find hunk target @ 0 1/1 failed :applySourcePatches FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':applySourcePatches'. > com.cloudbees.diff.PatchException: Cannot find hunk target * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 32.666 secs I upgraded gradle to the latest 5.6.1. gradlew wrapper --gradle-version=5.6.1 gradlew -v I had those same build errors for the latest MCF stable version, so I went right for the latest. https://files.minecraftforge.net/maven/net/minecraftforge/forge/index_1.14.4.html gradlew eclipse This runs for a while...
  13. Okay here's the first part. I checked into a public repository. https://github.com/tgraupmann/MinecraftChromaMod Currently it's just doing some print logging when events happen. I have another Chroma RGB to integrate once I have the events in place. I'll see about upgrading Minecraft Forge next... This is where the interesting code is. https://github.com/tgraupmann/MinecraftChromaMod/blob/master/src/main/java/com/example/examplemod/MyForgeEventHandler.java Grabbing the sample source and upgrading gradle, running the setup/etc. https://mcforge.readthedocs.io/en/latest/gettingstarted/
  14. Ah Logan is my kid's computer that I used when doing homework with the kids. And yes, I'll put the mod on github when I'm done. That's the plan. I'll probably have my sandbox version here - https://github.com/tgraupmann And the official version here - https://github.com/RazerOfficial/
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.