Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Forge 1.8][SOLVED] Function when player break a block


Chewiie88
 Share

Recommended Posts

Hello.

Im new to mc modding and i run in to a problem.

Cant find a function for when a player breaks a block.

 

If im not wrong i have to lock for a break block event.

 

If anyone know something about it im greatfull.

Dont need full code for it just help to the right direction.

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Exultant is a survival RPG server with a custom modpack for 1.12.2 with Spigot plugins. Active server: 7-15 players online most of the time. We have: * Weekend events, arenas, minigames * Shop & auction house. * Plot claim. PVP/PVE (rare that someone PVP). * Custom NPCs with quests. * World generated with RTG, Biomes o' Plenty 170+ mods. Some of the mods: Thaumcraft, Abyssalcraft, Betweenlands, Ancient warfare, Minecolonies, Immersive Engineering , Bewitchment, Fossil Archeology, Erebus, Electroblobs Wizardry, Vampirism, Custom NPCs, Blood magic, Chocolate Quest Repoured, Animania You are not allowed to grief other players bases or around them if they have been claimed. Modpack is here: https://www.curseforge.com/minecraft/modpacks/exultantconquest Discord: https://discord.gg/u6HSWQeMfz Server spec: 64 GB RAM, I9-10900K, CPU 5.3 GHZ, SSD
    • 1.14 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • So I create my server and everything goes well, until I run the run.bat file which contains java -Xmx3072M -Xms3072M -jar forgeserver.jar nogui PAUSE I run that and then I get this out of the commands prompt Desktop\forge 1.14.4 server>java -Xmx3072M -Xms3072M -jar forgeserver.jar nogui 2021-10-15 17:55:54,519 main WARN Advanced terminal features are not available in this environment ←[32m[17:55:54] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 28.2.0, --fml.mcpVersion, 20190829.143755, --fml.mcVersion, 1.14.4, --fml.forgeGroup, net.minecraftforge, nogui] ←[m←[32m[17:55:54] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 4.1.0+62+5bfa59b starting: java version 15.0.2 by Oracle Corporation ←[m←[32m[17:55:54] [main/INFO] [ne.mi.fm.lo.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust ←[mException in thread "main" ←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: java.lang.NoClassDefFoundError: jdk/nashorn/api/scripting/NashornScriptEngineFactory ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at net.minecraftforge.coremod.CoreModEngine.loadCoreMod(CoreModEngine.java:48) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at net.minecraftforge.coremod.CoreModProvider.addCoreMod(CoreModProvider.java:12) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:274) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at net.minecraftforge.fml.loading.LoadingModList.addCoreMods(LoadingModList.java:88) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer.discoverMods(ModDiscoverer.java:125) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at net.minecraftforge.fml.loading.FMLLoader.beginModScan(FMLLoader.java:208) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at net.minecraftforge.fml.loading.FMLServiceProvider.runScan(FMLServiceProvider.java:105) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at cpw.mods.modlauncher.TransformationServiceDecorator.runScan(TransformationServiceDecorator.java:111) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at cpw.mods.modlauncher.TransformationServicesHandler.lambda$runScanningTransformationServices$8(TransformationServicesHandler.java:115) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1766) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at cpw.mods.modlauncher.TransformationServicesHandler.runScanningTransformationServices(TransformationServicesHandler.java:116) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:63) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at cpw.mods.modlauncher.Launcher.run(Launcher.java:75) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at net.minecraftforge.server.ServerMain.main(ServerMain.java:57) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1057]: Caused by: java.lang.ClassNotFoundException: jdk.nashorn.api.scripting.NashornScriptEngineFactory ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1057]:       at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:606) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1057]:       at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1057]:       at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1057]:       ... 35 more ←[m
    • 1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.