Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Funyaah

Funyaah

Members
 View Profile  See their activity
  • Content Count

    6
  • Joined

    January 9
  • Last visited

    11 hours ago

Community Reputation

0 Neutral

About Funyaah

  • Rank
    Tree Puncher
  1. Funyaah

    Particles only appear on a player's client who made an action but other players cannot see them

    Funyaah replied to Funyaah's topic in Modder Support

    Thank you for reply, actually I already did "ServerWorld.spawnParticles" but result was same. I'm trying to use PlayerTickEvent to spawn particle using ClientWorld.addParticles... But to me it's odd because "SwordItem.onEntitySwing" could show particles for everyone on a server using ClientWorld.addParticles. This is also what I want to know.
    • January 9
    • 13 replies
  2. Funyaah

    [1.16.4] Clicking Run Does Not Work Within the IDE (solved)

    Funyaah replied to Guru's topic in Modder Support

    Ding, I assumed that you use JDK15 instead of 1.8. Check your project property if Java Compiler/Build path is pointing "real" JDK 1.8 instead of JDK15. You get this error "java.lang.NoClassDefFoundError: jdk/nashorn/api/scripting/NashornScriptEngineFactory" because this class does not exist anymore in JDK15.
    • January 9
    • 7 replies
  3. Funyaah

    Particles only appear on a player's client who made an action but other players cannot see them

    Funyaah replied to Funyaah's topic in Modder Support

    player.getEntityInWorld(); That function does not exist.
    • January 9
    • 13 replies
  4. Funyaah

    Particles only appear on a player's client who made an action but other players cannot see them

    Funyaah replied to Funyaah's topic in Modder Support

    I can't use !world.isRemote since I cast world into ClientWorld in order to call implemented addParticle (ServerWorld.addParticle does not anything according to documentaiton). I also tried ServerWorld.spawnParticle, but result was same.
    • January 9
    • 13 replies
  5. Funyaah

    [1.16.4] Clicking Run Does Not Work Within the IDE (solved)

    Funyaah replied to Guru's topic in Modder Support

    The folder structure is correct, but I see a bunch of exception in the console. Can I see all of the exception messages? Also what would happen if you execute "gradlew build"? And you installed Java 1.8, right?
    • January 9
    • 7 replies
  6. Funyaah Funyaah joined the community January 9
  7. Funyaah

    Particles only appear on a player's client who made an action but other players cannot see them

    Funyaah posted a topic in Modder Support

    [1.16.4] Hello, I'm pretty new to forge modding. Recently I made a mod that spawns particles when player jumps with specific suite of armour, and it certainly shows particles in multi player mode, but other players said they can't see them. (Using LivingJumpEvent) I also made a mod which spawns particles when player swing a special sword, but everyone can see the particles. (Using SwordItem.onEntitySwing) I don't quite get difference between those two. Can anyone tell me why there's gap on those? Here's the event subscriber for jump event: @Mod.EventBusSubscriber public static class ClientEvents { @SubscribeEvent public static void onJumping(final LivingEvent.LivingJumpEvent event) { LivingEntity player = event.getEntityLiving(); World world = player.getEntityWorld(); if (world.isRemote && isPlayerWearingTheArmours(player)) { ClientWorld clientWorld = (ClientWorld) world; for (int i = 0; i < 15; ++i) { clientWorld.addParticle(ParticleTypes.PORTAL, player.getPosXRandom(0.2D), player.getPosYRandom() - 0.25D, player.getPosZRandom(0.2D), (clientWorld.rand.nextDouble() - 0.25D) * 2.0D, -clientWorld.rand.nextDouble(), (clientWorld.rand.nextDouble() - 0.25D) * 2.0D); } } } } Thank you very much in advance! Funyaah
    • January 9
    • 13 replies
  • All Activity
  • Home
  • Funyaah
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community