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

Authentication with Microsoft Account


MGSchultz
 Share

Recommended Posts

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

    • 1.15 is no longer supported on this forum. Please update to a newer version of Minecraft to receive support (1.16 or 1.17).  
    • Hello, I have this code  @SubscribeEvent public static void chat(final ClientChatEvent event){ System.out.println(event.getMessage()); System.out.println(event.getMessage() == "inventory"); if (event.getMessage() == "inventory"){ Minecraft.getMinecraft().player.sendChatMessage("No"); event.setCanceled(true); } } But.. [11:46:54] [Client thread/INFO] [STDOUT]: [com.example.examplemod.Blocks2:chat:39]: inventory false [11:46:54] [Client thread/INFO] [STDOUT]: [com.example.examplemod.Blocks2:clientChatEvent:31]: inventory [11:46:54] [Server thread/INFO] [minecraft/MinecraftServer]: <TimTarAn> inventory [11:46:54] [Client thread/INFO] [minecraft/GuiNewChat]: [CHAT] <TimTarAn> inventory WTF  
    • D:\Games\Minecraft\Servers\Forge 1.15.2 Server for PC Challenge>java -Xmx4092M -Xms4092M -jar forge.jar nogui 2021-09-24 23:31:10,297 main WARN Advanced terminal features are not available in this environment ←[32m[23:31:10] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 31.2.0, --fml.mcpVersion, 20200515.085601, --fml.mcVersion, 1.15.2, --fml.forgeGroup, net.minecraftforge, nogui] ←[m←[32m[23:31:10] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 5.1.0+69+master.79f13f7 starting: java version 16.0.1 by Oracle Corporation ←[mjava.lang.NoSuchFieldException: ucp         at java.base/java.lang.Class.getDeclaredField(Class.java:2549)         at cpw.mods.gross.Java9ClassLoaderUtil.getSystemClassPathURLs(Java9ClassLoaderUtil.java:28)         at cpw.mods.modlauncher.TransformationServicesHandler.discoverServices(TransformationServicesHandler.java:139)         at cpw.mods.modlauncher.Launcher.run(Launcher.java:74)         at cpw.mods.modlauncher.Launcher.main(Launcher.java:65)         at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63)         at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60)         at net.minecraftforge.server.ServerMain.main(ServerMain.java:57) Exception in thread "main" java.lang.NullPointerException: Cannot read the array length because "urls" is null         at java.base/jdk.internal.loader.URLClassPath.<init>(URLClassPath.java:153)         at java.base/jdk.internal.loader.URLClassPath.<init>(URLClassPath.java:174)         at java.base/java.net.URLClassLoader.<init>(URLClassLoader.java:149)         at cpw.mods.modlauncher.TransformationServicesHandler$TransformerClassLoader.<init>(TransformationServicesHandler.java:159)         at cpw.mods.modlauncher.TransformationServicesHandler.discoverServices(TransformationServicesHandler.java:139)         at cpw.mods.modlauncher.Launcher.run(Launcher.java:74)         at cpw.mods.modlauncher.Launcher.main(Launcher.java:65)         at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63)         at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60)         at net.minecraftforge.server.ServerMain.main(ServerMain.java:57) D:\Games\Minecraft\Servers\Forge 1.15.2 Server for PC Challenge>PAUSE Press any key to continue . . .
    • Code of the block: public class BlockMcbbsWiki extends Block { public BlockMcbbsWiki(){ super((Properties.of(Material.STONE) .strength(2.5F, 10.0F) .requiresCorrectToolForDrops())); } } and the loot table (in src/main/resources/data/mcbbswiki/loot_tables/blocks): { "type": "minecraft:block", "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:item", "name": "mcbbswiki:block_mcbbswiki" } ] } ] } I want to make BlockMcbbsWiki drops itself if I use pickaxes leveled at least level 3(diamond), or nothing if the tool is not right.  But now, it drops nothing with any tools. And there isn't a method that can set a harvest level limit in Blocks class. Please help me.   Mod code: https://github.com/QWERTY770/MCBBS-Wiki-Mod
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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