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

[1.15.1] capability NullPointerException


Recommended Posts

Hello. I made a custom capability that should be attached to EntityPlayer. My provider class initializes an instance of Capabilty and sets its value to null and makes a LazyOptional instance of this capability:

    public static final Capability<ISoulWeapon> TYPE = null;
    private LazyOptional<ISoulWeapon> instance = LazyOptional.of(TYPE::getDefaultInstance);

I assume that this is correct because this is the only way in which I saw this done. However, the instance seems to be null. The game runs until a world is loaded, when it crashes, producing the following stacktrace:

java.lang.NullPointerException: Saving entity NBT
	at transfarmer.adventureitems.capabilities.Storage.writeNBT(Storage.java:14) ~[?:?] {re:classloading}
	at transfarmer.adventureitems.capabilities.Storage.writeNBT(Storage.java:10) ~[?:?] {re:classloading}
	at transfarmer.adventureitems.capabilities.Provider.serializeNBT(Provider.java:23) ~[?:?] {re:classloading,pl:capability_inject_definalize:A}
	at net.minecraftforge.common.capabilities.CapabilityDispatcher.serializeNBT(CapabilityDispatcher.java:127) ~[?:?] {re:classloading}
	at net.minecraftforge.common.capabilities.CapabilityProvider.serializeCaps(CapabilityProvider.java:86) ~[?:?] {re:classloading}
	at net.minecraft.entity.Entity.writeWithoutTypeId(Entity.java:1527) ~[?:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.integrated.IntegratedPlayerList.writePlayerData(IntegratedPlayerList.java:27) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.server.management.PlayerList.saveAllPlayerData(PlayerList.java:631) ~[?:?] {re:classloading}
	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:112) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:658) ~[?:?] {re:classloading,pl:accesstransformer:B}
	at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_232] {}

What did I do wrong?

My capability is available here.

Link to post
Share on other sites

Well, you set it to null and made it final. It can't be anything else (unless you apply the @ObjectHolder annotation or use reflection).

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to post
Share on other sites

I read again the Forge documentation about capabilities. According to the it, the capability is null because it was not registered. Then I made it non-final and tried to properly register it during common setup. The NullPointerException does not occur anymore. However, my keybinding does not load anymore (I set its registration to occur during client setup by FMLClientSetupEvent as I was cleaning up my mod setup). Previously, it loaded but did not function. (It functioned as expected before I implemented the capability.) Should I open a new thread for that?

Also, the 1.15.x documentation mentions a provider hasCapability method. Is that a requirement in previous versions of Forge? It is not defined in ICapabilityProvider.java in v30.0.36.

Edited by transfarmer
Link to post
Share on other sites
11 minutes ago, transfarmer said:

Is that a requirement in previous versions of Forge?

Yes. getCapability is pretty much the only thing that interface provides.

  • Thanks 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to post
Share on other sites

The Forge documentation states the following:

Quote

The return type of getCapability will correspond to the type declared in the capability passed to the method. For the Item Handler capability, this is indeed IItemHandler.

However, the return type of getCapability is LazyOptional<T>, and I want to use the methods defined in my interface. How should I use getCapability?

Link to post
Share on other sites

Yes. It should be LazyOptional<T>. Note that <T> here is still the type of the capability, so you'll get back a LazyOptional<IItemHandler>. Which you can then call ifPresent() on and pass in a lambda that gets executed if the capability is indeed present (non-null) or you can do something like OrElse(null) and null check (prefer using ifPresent) or use OrElseThrow().

  • Thanks 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to post
Share on other sites

You need to attach capabilities to things you don't control. Like the player. Use the EntityJoinedWorldEvent for that.

  • Thanks 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to post
Share on other sites
4 hours ago, diesieben07 said:

AttachCapabilitiesEvent

I could not remember if this was actually a thing.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to post
Share on other sites

I already have it:

@EventBusSubscriber(modid = Main.MODID, bus = EventBusSubscriber.Bus.MOD)
public class ModEventSubscriber {
    . . .
    @SubscribeEvent
    public static void onAttachCapabilities(AttachCapabilitiesEvent<Entity> event) {
        if (event.getObject() instanceof PlayerEntity) {
            event.addCapability(new ResourceLocation(Main.MODID, "type"), new Provider());
        }
    }
    . . .
}

Is something wrong with this code?

Edited by transfarmer
Link to post
Share on other sites

Loading a world produces a NullPointerExceptionagain. The ICapability instance passed to writeNBT seems to be null:

Spoiler

java.lang.NullPointerException: Saving entity NBT
    at transfarmer.adventureitems.capability.SoulWeaponStorage.writeNBT(SoulWeaponStorage.java:14) ~[?:?] {re:classloading}
    at transfarmer.adventureitems.capability.SoulWeaponStorage.writeNBT(SoulWeaponStorage.java:10) ~[?:?] {re:classloading}
    at transfarmer.adventureitems.capability.SoulWeaponProvider.serializeNBT(SoulWeaponProvider.java:26) ~[?:?] {re:classloading}
    at net.minecraftforge.common.capabilities.CapabilityDispatcher.serializeNBT(CapabilityDispatcher.java:127) ~[?:?] {re:classloading}
    at net.minecraftforge.common.capabilities.CapabilityProvider.serializeCaps(CapabilityProvider.java:86) ~[?:?] {re:classloading}
    at net.minecraft.entity.Entity.writeWithoutTypeId(Entity.java:1358) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.integrated.IntegratedPlayerList.writePlayerData(SourceFile:24) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.server.management.PlayerList.saveAllPlayerData(PlayerList.java:602) ~[?:?] {re:classloading}
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:106) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:634) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_232] {}

 

Spoiler

public class SoulWeaponStorage implements IStorage<ISoulWeapon> {
    @Override
    public INBT writeNBT(Capability<ISoulWeapon> capability, ISoulWeapon instance, Direction side) {
        CompoundNBT tag = new CompoundNBT();
        tag.putString("adventureitems.weaponType", instance.getCurrentType().getName());
        return tag;
    }
    . . .
}

public class SoulWeaponProvider implements ICapabilitySerializable<INBT> {
    @CapabilityInject(ISoulWeapon.class)
    public static Capability<ISoulWeapon> TYPE;
    private LazyOptional<ISoulWeapon> instance = LazyOptional.of(TYPE::getDefaultInstance);
    . . .
}

 

Edited by transfarmer
Link to post
Share on other sites
52 minutes ago, transfarmer said:

at transfarmer.adventureitems.capability.SoulWeaponProvider.serializeNBT(SoulWeaponProvider.java:26)

Why have you not shown this?

 

53 minutes ago, transfarmer said:

private LazyOptional<ISoulWeapon> instance = LazyOptional.of(TYPE::getDefaultInstance);

This makes no sense.

Link to post
Share on other sites
1 minute ago, diesieben07 said:

Why have you not shown this?

I apologize. The issue with writeNBT was that I was trying to use Object.toString() on a value that was null.The provider class is shown below.

Spoiler

public class SoulWeaponProvider implements ICapabilitySerializable<INBT> {
    @CapabilityInject(ISoulWeapon.class)
    public static Capability<ISoulWeapon> TYPE;
    private LazyOptional<ISoulWeapon> instance = LazyOptional.of(TYPE::getDefaultInstance);

    @Nonnull
    @Override
    public <T> LazyOptional<T> getCapability(@Nonnull Capability<T> capability, Direction side) {
        return capability == TYPE ? instance.cast() : LazyOptional.empty();
    }

    @Override
    public INBT serializeNBT() {
        return TYPE.getStorage().writeNBT(TYPE, instance.orElseThrow(() -> new IllegalArgumentException("LazyOptional is empty")), null);
    }

    @Override
    public void deserializeNBT(INBT nbt) {
        TYPE.getStorage().readNBT(TYPE, instance.orElseThrow(() -> new IllegalArgumentException("LazyOptional is empty")), null, nbt);
    }
}

 

 

6 minutes ago, diesieben07 said:

This makes no sense.

I agree. Does it have to be initialized? If so, then what should it be?

Link to post
Share on other sites
3 minutes ago, transfarmer said:

The issue with writeNBT was that I was trying to use Object.toString() on a value that was null.

So your issue is fixed?

 

3 minutes ago, transfarmer said:

I agree. Does it have to be initialized? If so, then what should it be?

I misread, for some reason I read this to be in your storage class. Your code is fine.

Link to post
Share on other sites
Just now, diesieben07 said:

So your issue is fixed?

Yes.

 

4 minutes ago, diesieben07 said:

I misread, for some reason I read this to be in your storage class. Your code is fine.

Then could you explain to me what it does? I'm still not sure about why I need it. Is it a basic instance made for every object to which the capability is attached for NBT storage? Also, I think that my data are not saved after leaving and joining a world. Do I have to do it manually?

Link to post
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.



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • What is this biome being created for? A custom dimension or a vanilla one (e.g. overworld, nether, end).
    • Hi so my friend and I have been doing a custom modpack and it recently started crashing whenever I try to start it (its a portforwarded server). I will provide down below the crash report I keep getting, I've never been able to read crash reports so it would be much appreciated if I could get some help I also apologize that its so long, I forgot how to get a significantly smaller crash report.   ---- Minecraft Crash Report ---- // This doesn't make any sense! Time: 5/11/21 4:01 PM Description: Watching Server java.lang.Error: ServerHangWatchdog detected that a single server tick took 60.00 seconds (should be max 0.05)     at net.minecraft.server.dedicated.ServerHangWatchdog.run(ServerHangWatchdog.java:43) [?:?] {re:classloading}     at java.lang.Thread.run(Unknown Source) [?:1.8.0_271] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Thread Dump -- Details:     Threads: "WorldEdit Session Manager" Id=103 TIMED_WAITING on java.util.TaskQueue@59c94513     at java.lang.Object.wait(Native Method)     -  waiting on java.util.TaskQueue@59c94513     at java.util.TimerThread.mainLoop(Unknown Source)     at java.util.TimerThread.run(Unknown Source) "Server Watchdog" Id=102 RUNNABLE     at sun.management.ThreadImpl.dumpThreads0(Native Method)     at sun.management.ThreadImpl.dumpAllThreads(Unknown Source)     at net.minecraft.server.dedicated.ServerHangWatchdog.run(ServerHangWatchdog.java:41)     at java.lang.Thread.run(Unknown Source) "Thread-8" Id=96 RUNNABLE (in native)     at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus0(Native Method)     at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus(Unknown Source)     at sun.nio.fs.WindowsWatchService$Poller.run(Unknown Source)     at java.lang.Thread.run(Unknown Source) "Netty Server IO #0" Id=95 RUNNABLE (in native)     at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)     at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)     at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)     at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)     at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)     -  locked io.netty.channel.nio.SelectedSelectionKeySet@570eb05a     -  locked java.util.Collections$UnmodifiableSet@53312e63     -  locked sun.nio.ch.WindowsSelectorImpl@1633ba61     at sun.nio.ch.SelectorImpl.select(Unknown Source)     at io.netty.channel.nio.SelectedSelectionKeySetSelector.select(SelectedSelectionKeySetSelector.java:62)     at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:756)     ... "ObjectCleanerThread" Id=94 TIMED_WAITING on java.lang.ref.ReferenceQueue$Lock@5c19469     at java.lang.Object.wait(Native Method)     -  waiting on java.lang.ref.ReferenceQueue$Lock@5c19469     at java.lang.ref.ReferenceQueue.remove(Unknown Source)     at io.netty.util.internal.ObjectCleaner$1.run(ObjectCleaner.java:54)     at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)     at java.lang.Thread.run(Unknown Source) "Server console handler" Id=93 RUNNABLE (in native)     at java.io.FileInputStream.readBytes(Native Method)     at java.io.FileInputStream.read(Unknown Source)     at java.io.BufferedInputStream.read1(Unknown Source)     at java.io.BufferedInputStream.read(Unknown Source)     -  locked java.io.BufferedInputStream@27ef68eb     at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)     at sun.nio.cs.StreamDecoder.implRead(Unknown Source)     at sun.nio.cs.StreamDecoder.read(Unknown Source)     -  locked java.io.InputStreamReader@7df71843     at java.io.InputStreamReader.read(Unknown Source)     ... "DestroyJavaVM" Id=92 RUNNABLE "Snooper Timer" Id=90 WAITING on java.util.TaskQueue@761c452e     at java.lang.Object.wait(Native Method)     -  waiting on java.util.TaskQueue@761c452e     at java.lang.Object.wait(Unknown Source)     at java.util.TimerThread.mainLoop(Unknown Source)     at java.util.TimerThread.run(Unknown Source) "ForkJoinPool.commonPool-worker-14" Id=77 WAITING on java.util.concurrent.ForkJoinPool@7ff7f558     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@7ff7f558     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "ForkJoinPool.commonPool-worker-3" Id=74 TIMED_WAITING on java.util.concurrent.ForkJoinPool@7ff7f558     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@7ff7f558     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "ForkJoinPool.commonPool-worker-5" Id=76 WAITING on java.util.concurrent.ForkJoinPool@7ff7f558     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@7ff7f558     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "ForkJoinPool.commonPool-worker-10" Id=73 WAITING on java.util.concurrent.ForkJoinPool@7ff7f558     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@7ff7f558     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "ForkJoinPool.commonPool-worker-15" Id=69 WAITING on java.util.concurrent.ForkJoinPool@7ff7f558     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@7ff7f558     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "ForkJoinPool.commonPool-worker-8" Id=70 WAITING on java.util.concurrent.ForkJoinPool@7ff7f558     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@7ff7f558     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "ForkJoinPool.commonPool-worker-13" Id=68 WAITING on java.util.concurrent.ForkJoinPool@7ff7f558     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@7ff7f558     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "Thread-3" Id=51 RUNNABLE (in native)     at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus0(Native Method)     at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus(Unknown Source)     at sun.nio.fs.WindowsWatchService$Poller.run(Unknown Source)     at java.lang.Thread.run(Unknown Source) "modloading-worker-0" Id=50 WAITING on java.util.concurrent.ForkJoinPool@2303727d     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@2303727d     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "modloading-worker-5" Id=47 WAITING on java.util.concurrent.ForkJoinPool@2303727d     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@2303727d     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "modloading-worker-10" Id=44 WAITING on java.util.concurrent.ForkJoinPool@2303727d     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@2303727d     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "modloading-worker-1" Id=43 TIMED_WAITING on java.util.concurrent.ForkJoinPool@2303727d     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@2303727d     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "modloading-worker-6" Id=40 WAITING on java.util.concurrent.ForkJoinPool@2303727d     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@2303727d     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "modloading-worker-15" Id=41 WAITING on java.util.concurrent.ForkJoinPool@2303727d     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@2303727d     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "modloading-worker-2" Id=36 WAITING on java.util.concurrent.ForkJoinPool@2303727d     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@2303727d     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "modloading-worker-9" Id=35 WAITING on java.util.concurrent.ForkJoinPool@2303727d     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@2303727d     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "Timer hack thread" Id=34 TIMED_WAITING     at java.lang.Thread.sleep(Native Method)     at net.minecraft.util.Util$6.run(SourceFile:636) "Thread-2" Id=25 RUNNABLE (in native)     at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus0(Native Method)     at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus(Unknown Source)     at sun.nio.fs.WindowsWatchService$Poller.run(Unknown Source)     at java.lang.Thread.run(Unknown Source) "Thread-1" Id=24 TIMED_WAITING     at sun.misc.Unsafe.park(Native Method)     at java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)     at com.electronwill.nightconfig.core.file.FileWatcher$WatcherThread.run(FileWatcher.java:190) "ForkJoinPool.commonPool-worker-9" Id=23 WAITING on java.util.concurrent.ForkJoinPool@7ff7f558     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@7ff7f558     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "Attach Listener" Id=5 RUNNABLE "Signal Dispatcher" Id=4 RUNNABLE "Finalizer" Id=3 WAITING on java.lang.ref.ReferenceQueue$Lock@66f3535e     at java.lang.Object.wait(Native Method)     -  waiting on java.lang.ref.ReferenceQueue$Lock@66f3535e     at java.lang.ref.ReferenceQueue.remove(Unknown Source)     at java.lang.ref.ReferenceQueue.remove(Unknown Source)     at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source) "Reference Handler" Id=2 WAITING on java.lang.ref.Reference$Lock@72525f9b     at java.lang.Object.wait(Native Method)     -  waiting on java.lang.ref.Reference$Lock@72525f9b     at java.lang.Object.wait(Unknown Source)     at java.lang.ref.Reference.tryHandlePending(Unknown Source)     at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source) -- Performance stats -- Details:     Random tick rate: 3     Level stats: ResourceKey[minecraft:dimension / minecraft:overworld]: players: 0, entities: 162 [minecraft:sheep:38,minecraft:cow:22,minecraft:item:14,betteranimalsplus:songbird:11,minecraft:pig:10], block_entities: 480 [create:belt:68,create:simple_kinetic:59,create:chassis:49,create:drill:40,create:gearbox:36], block_ticks: 0, fluid_ticks: 0, chunk_source: ServerChunkCache: 3209, ResourceKey[minecraft:dimension / minecraft:the_nether]: players: 0, entities: 15 [minecraft:strider:11,minecraft:enderman:1,create:stationary_contraption:1,farmingforblockheads:merchant:1,dummmmmmy:target_dummy:1], block_entities: 485 [minecraft:chest:125,create:simple_kinetic:65,storagenetwork:filter_kabel:58,minecraft:hopper:43,create:gearbox:33], block_ticks: 9, fluid_ticks: 0, chunk_source: ServerChunkCache: 1334, ResourceKey[minecraft:dimension / minecraft:the_end]: players: 0, entities: 0 [], block_entities: 0 [], block_ticks: 0, fluid_ticks: 0, chunk_source: ServerChunkCache: 0 Stacktrace:     at net.minecraft.server.dedicated.ServerHangWatchdog.run(ServerHangWatchdog.java:43) [?:?] {re:classloading}     at java.lang.Thread.run(Unknown Source) [?:1.8.0_271] {} -- System Details -- Details:     Minecraft Version: 1.16.4     Minecraft Version ID: 1.16.4     Operating System: Windows 10 (amd64) version 10.0     Java Version: 1.8.0_271, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 3249213008 bytes (3098 MB) / 5115478016 bytes (4878 MB) up to 5115478016 bytes (4878 MB)     CPUs: 16     JVM Flags: 2 total; -Xms5120M -Xmx5120M     ModLauncher: 8.0.6+85+master.325de55     ModLauncher launch target: fmlserver     ModLauncher naming: srg     ModLauncher services:          /mixin-0.8.2.jar mixin PLUGINSERVICE          /eventbus-3.0.5-service.jar eventbus PLUGINSERVICE          /forge-1.16.4-35.1.10.jar object_holder_definalize PLUGINSERVICE          /forge-1.16.4-35.1.10.jar runtime_enum_extender PLUGINSERVICE          /accesstransformers-2.2.0-shadowed.jar accesstransformer PLUGINSERVICE          /forge-1.16.4-35.1.10.jar capability_inject_definalize PLUGINSERVICE          /forge-1.16.4-35.1.10.jar runtimedistcleaner PLUGINSERVICE          /mixin-0.8.2.jar mixin TRANSFORMATIONSERVICE          /forge-1.16.4-35.1.10.jar fml TRANSFORMATIONSERVICE      FML: 35.1     Forge: net.minecraftforge:35.1.10     FML Language Providers:          javafml@35.1         minecraft@1     Mod List:          enchantedbookredesign-3.2.jar                     |Enchanted Book Redesign       |enchantedbookredesign         |3.2                 |DONE      |NOSIGNATURE         Instrumental-Mobs-1.16.3-1.3.1.jar                |Instrumental Mobs             |instrumentalmobs              |1.3.1               |DONE      |NOSIGNATURE         ftbessentials-1603.1.0.11.jar                     |FTB Essentials                |ftbessentials                 |1603.1.0.11         |DONE      |NOSIGNATURE         NetherPortalFix_1.16.3-7.2.1.jar                  |NetherPortalFix               |netherportalfix               |7.2.1               |DONE      |NOSIGNATURE         pamhc2trees-1.16.3-1.0.0.jar                      |Pam's HarvestCraft 2 Fruit Tre|pamhc2trees                   |1.0.0               |DONE      |NOSIGNATURE         mining-helmet-1.16.4-2.0.0.jar                    |Mining Helmet                 |mining_helmet                 |2.0.0               |DONE      |NOSIGNATURE         item-filters-1604.2.2.19.jar                      |Item Filters                  |itemfilters                   |1604.2.2.19         |DONE      |NOSIGNATURE         jei-1.16.4-7.6.1.65.jar                           |Just Enough Items             |jei                           |7.6.1.65            |DONE      |NOSIGNATURE         DoggyTalents-1.16.4-2.0.1.1.jar                   |Doggy Talents 2               |doggytalents                  |2.0.1.1             |DONE      |NOSIGNATURE         abnormals_core-1.16.4-3.0.6.jar                   |Abnormals Core                |abnormals_core                |3.0.6               |DONE      |NOSIGNATURE         mcw-windows-1.0.2-mc1.16.4.jar                    |Macaw's Windows               |mcwwindows                    |1.0.2               |DONE      |NOSIGNATURE         invtweaks-1.16.4-1.0.1.jar                        |Inventory Tweaks Renewed      |invtweaks                     |1.16.4-1.0.1        |DONE      |NOSIGNATURE         create-mc1.16.5_v0.3.1b.jar                       |Create                        |create                        |mc1.16.5_v0.3.1b+143|DONE      |NOSIGNATURE         BetterCaves-1.16.3-1.0.6.jar                      |YUNG's Better Caves           |bettercaves                   |1.16.3-1.0.6        |DONE      |NOSIGNATURE         ForgeEndertech-1.16.4-7.0.8.0-build.0028.jar      |Forge Endertech               |forgeendertech                |7.0.8.0             |DONE      |NOSIGNATURE         CookingForBlockheads_1.16.3-9.2.2.jar             |Cooking for Blockheads        |cookingforblockheads          |9.2.2               |DONE      |NOSIGNATURE         Placebo-1.16.3-4.3.3.jar                          |Placebo                       |placebo                       |4.3.3               |DONE      |NOSIGNATURE         tumbleweed-1.16-0.4.9.jar                         |Tumbleweed                    |tumbleweed                    |1.16-0.4.9          |DONE      |NOSIGNATURE         TravelersBackpack-1.16.4-5.3.4.jar                |Traveler's Backpack           |travelersbackpack             |5.3.4               |DONE      |NOSIGNATURE         NaturesCompass-1.16.4-1.8.6.jar                   |Nature's Compass              |naturescompass                |1.16.4-1.8.6        |DONE      |NOSIGNATURE         SimpleStorageNetwork-1.16.3-1.2.1.jar             |Simple Storage Network        |storagenetwork                |1.16.3-1.2.1        |DONE      |1f:47:ac:b1:61:82:96:b8:47:19:16:d2:61:81:11:60:3a:06:4b:61:31:56:7d:44:31:1e:0c:6f:22:5b:4c:ed         ftb-gui-library-1604.1.1.26.jar                   |FTB GUI Library               |ftbguilibrary                 |1604.1.1.26         |DONE      |NOSIGNATURE         decorative_blocks-1.16.4-1.7.0.jar                |Decorative Blocks             |decorative_blocks             |1.7.0               |DONE      |NOSIGNATURE         potionsmaster-0.1.34-1.16.4-35.1.13.jar           |Potions Master                |potionsmaster                 |0.1.34-1.16.4-35.1.1|DONE      |NOSIGNATURE         DungeonCrawl-1.16.3-2.2.3.jar                     |Dungeon Crawl                 |dungeoncrawl                  |2.2.3               |DONE      |NOSIGNATURE         betteranimalsplus-1.16.4-10.1.0.jar               |Better Animals Plus           |betteranimalsplus             |10.1.0              |DONE      |NOSIGNATURE         FarmingForBlockheads_1.16.3-7.2.1.jar             |Farming for Blockheads        |farmingforblockheads          |7.2.1               |DONE      |NOSIGNATURE         Bookshelf-1.16.4-9.3.18.jar                       |Bookshelf                     |bookshelf                     |9.3.18              |DONE      |ea:45:b3:82:b6:9d:50:16:95:e7:2e:34:e1:92:d5:b4:9b:69:90:d3:4f:2e:71:99:b0:be:40:80:27:1f:3e:b0         BotanyPots-1.16.4-6.0.7.jar                       |BotanyPots                    |botanypots                    |6.0.7               |DONE      |ea:45:b3:82:b6:9d:50:16:95:e7:2e:34:e1:92:d5:b4:9b:69:90:d3:4f:2e:71:99:b0:be:40:80:27:1f:3e:b0         guardvillagers-1.16.4-1.1.8.jar                   |Guard Villagers               |guardvillagers                |1.1.8               |DONE      |NOSIGNATURE         simpleplanes-1.16.3-3.2.0.3.jar                   |Simple Planes                 |simpleplanes                  |1.16.3-3.2.0.3      |DONE      |NOSIGNATURE         mcw-doors-1.0.1fix-mc1.16.4.jar                   |Macaw's Doors                 |mcwdoors                      |1.0.1               |DONE      |NOSIGNATURE         Morpheus-1.16.4-4.2.68.jar                        |Morpheus                      |morpheus                      |4.2.68              |DONE      |NOSIGNATURE         Toast-Control-1.16.3-4.3.0.jar                    |Toast Control                 |toastcontrol                  |4.3.0               |DONE      |NOSIGNATURE         iChunUtil-1.16.3-10.0.0.jar                       |iChunUtil                     |ichunutil                     |10.0.0              |DONE      |NOSIGNATURE         carryon-1.16.3-1.15.1.7.jar                       |Carry On                      |carryon                       |1.15.1.7            |DONE      |8c:03:ac:7d:21:62:65:e2:83:91:f3:22:57:99:ed:75:78:1e:db:de:03:99:ef:53:3b:59:95:18:01:bc:84:a9         ftb-teams-1604.1.0.13.jar                         |FTB Teams                     |ftbteams                      |1604.1.0.13         |DONE      |NOSIGNATURE         forge-1.16.4-35.1.10-universal.jar                |Forge                         |forge                         |35.1.10             |DONE      |22:af:21:d8:19:82:7f:93:94:fe:2b:ac:b7:e4:41:57:68:39:87:b1:a7:5c:c6:44:f9:25:74:21:14:f5:0d:90         [1.16.X-1.0.10] Dragon Mounts Legacy.jar          |Dragon Mounts: Legacy         |dragonmounts                  |1.0.10              |DONE      |NOSIGNATURE         MmmMmmMmmMmm-1.16-1.0.1.jar                       |MmmMmmMmmMmm                  |dummmmmmy                     |1.0.1               |DONE      |NOSIGNATURE         scuba-gear-1.16.4-1.0.1.jar                       |Scuba Gear                    |scuba_gear                    |1.0.1               |DONE      |NOSIGNATURE         Extractures_1.16.4.jar                            |extractures                   |extractures                   |1.0.0               |DONE      |NOSIGNATURE         emojiful-1.16.4-2.1.2.jar                         |Emojiful                      |emojiful                      |1.16.4-2.1.2        |DONE      |NOSIGNATURE         corpse-1.16.4-1.0.5.jar                           |Corpse                        |corpse                        |1.16.4-1.0.5        |DONE      |NOSIGNATURE         forge-1.16.4-35.1.10-server.jar                   |Minecraft                     |minecraft                     |1.16.4              |DONE      |NOSIGNATURE         endergetic-1.16.4-3.0.0.jar                       |The Endergetic Expansion      |endergetic                    |3.0.0               |DONE      |NOSIGNATURE         mcw-bridges-1.0.4-mc1.16.4.jar                    |Macaw's Bridges               |mcwbridges                    |1.0.4               |DONE      |NOSIGNATURE         repurposed_structures-1.16.4-2.3.3.jar            |Repurposed Structures         |repurposed_structures         |1.16.4-2.3.3        |DONE      |NOSIGNATURE         MouseTweaks-2.13-mc1.16.2.jar                     |Mouse Tweaks                  |mousetweaks                   |2.13                |DONE      |NOSIGNATURE         ToolBelt-1.16.3-1.15.2.jar                        |Tool Belt                     |toolbelt                      |1.15.2              |DONE      |NOSIGNATURE         ftb-quests-1604.1.1.21.jar                        |FTB Quests                    |ftbquests                     |1604.1.1.21         |DONE      |NOSIGNATURE         BiomesOPlenty-1.16.4-13.0.0.427-universal.jar     |Biomes O' Plenty              |biomesoplenty                 |1.16.4-13.0.0.427   |DONE      |NOSIGNATURE         valhelsia_structures-16.0.5.jar                   |Valhelsia Structures          |valhelsia_structures          |16.0.5              |DONE      |NOSIGNATURE         pamhc2crops-1.16.3-1.0.1.jar                      |Pam's HarvestCraft 2 Crops    |pamhc2crops                   |version             |DONE      |NOSIGNATURE         CreativeCore_v2.0.10_mc1.16.4.jar                 |CreativeCore                  |creativecore                  |2.0.0               |DONE      |NOSIGNATURE         mcw-trapdors-1.0.0-mc1.16.4.jar                   |Macaw's Trapdoors             |mcwtrpdoors                   |1.0.0               |DONE      |NOSIGNATURE         AdLods-1.16.4-4.1.2.0-build.0027.jar              |Large Ore Deposits            |adlods                        |4.1.2.0             |DONE      |NOSIGNATURE         towers_of_the_wild-1.16.4-2.0.1.jar               |Towers Of The Wild            |towers_of_the_wild            |1.16.4-2.0.1        |DONE      |NOSIGNATURE         simplefarming-1.16.4-1.3.5.jar                    |Simple Farming                |simplefarming                 |1.16.4-1.3.5        |DONE      |NOSIGNATURE         pamhc2foodextended-1.16.3-1.0.0.jar               |Pam's HarvestCraft 2 Food Exte|pamhc2foodextended            |version             |DONE      |NOSIGNATURE         jeiintegration_1.16.4-6.1.1.11.jar                |JEI Integration               |jeiintegration                |6.1.1.11            |DONE      |NOSIGNATURE         randomenchants-4.0.4.jar                          |Random Enchants               |randomenchants                |4.0.4               |DONE      |NOSIGNATURE         curios-forge-1.16.4-4.0.3.3.jar                   |Curios API                    |curios                        |1.16.4-4.0.3.3      |DONE      |NOSIGNATURE         Artifacts-1.16.4-2.7.3.jar                        |Artifacts                     |artifacts                     |1.16.4-2.7.3        |DONE      |NOSIGNATURE         Mantle-1.16.4-1.6.52.jar                          |Mantle                        |mantle                        |1.6.52              |DONE      |NOSIGNATURE         pamhc2foodcore-1.16.3-1.0.0.jar                   |Pam's HarvestCraft 2 Food Core|pamhc2foodcore                |version             |DONE      |NOSIGNATURE         StorageDrawers-1.16.3-8.2.1.jar                   |Storage Drawers               |storagedrawers                |8.2.1               |DONE      |NOSIGNATURE         betteranimals-1.16.4-5.4.1.jar                    |Cyber's Better Animal Models  |betteranimals                 |5.4.1               |DONE      |NOSIGNATURE         SpawnInVillage-1.16.4-1.3.jar                     |Spawn in Village              |spawnvillage                  |1.3                 |DONE      |NOSIGNATURE         Ceramics-1.16.4-1.6.0.jar                         |Ceramics                      |ceramics                      |1.6.0               |DONE      |NOSIGNATURE         Animalium-0.6.3.jar                               |Animalium                     |animalium                     |0.6.3               |DONE      |NOSIGNATURE         ftb-ultimine-1603.1.1.13.jar                      |FTB Ultimine                  |ftbultimine                   |1603.1.1.13         |DONE      |NOSIGNATURE         buildersaddition-1.16.4-20201220b.jar             |Builders Crafts & Addition    |buildersaddition              |1.16.4-20201220b    |DONE      |NOSIGNATURE         worldedit-forge-mc1.16.3-7.2.1-dist.jar           |WorldEdit                     |worldedit                     |7.2.1+299386a       |DONE      |NOSIGNATURE         SpartanWeaponry-1.16.4-2.1.0-beta-2.jar           |Spartan Weaponry              |spartanweaponry               |2.1.0 beta 2        |DONE      |NOSIGNATURE         mcws-roofs-2.0.0-mc1.16.4.jar                     |Macaw's Roofs                 |mcwroofs                      |2.0.0               |DONE      |NOSIGNATURE         architectury-1.2.68-forge.jar                     |Architectury                  |architectury                  |1.2.68              |DONE      |NOSIGNATURE         AI-Improvements-1.16.2-0.3.0.jar                  |AI-Improvements               |aiimprovements                |0.3.0               |DONE      |NOSIGNATURE         globalxp-1.16.3-v1.4.15.jar                       |Global XP                     |globalxp                      |v1.4.15             |DONE      |NOSIGNATURE         light-overlay-5.6.1.jar                           |Light Overlay                 |lightoverlay                  |5.6.1               |DONE      |NOSIGNATURE         ItemPhysic_v1.4.14_mc1.16.4.jar                   |ItemPhysic                    |itemphysic                    |1.6.0               |DONE      |NOSIGNATURE         cloth-config-forge-4.1.3.jar                      |Cloth Config v4 API           |cloth-config                  |4.1.3               |DONE      |NOSIGNATURE         Aquaculture-1.16.4-2.1.11.jar                     |Aquaculture 2                 |aquaculture                   |1.16.4-2.1.11       |DONE      |NOSIGNATURE         FastLeafDecay-v25.jar                             |FastLeafDecay                 |fastleafdecay                 |v25                 |DONE      |NOSIGNATURE         CosmeticArmorReworked-1.16.4-v1.jar               |CosmeticArmorReworked         |cosmeticarmorreworked         |1.16.4-v1           |DONE      |5e:ed:25:99:e4:44:14:c0:dd:89:c1:a9:4c:10:b5:0d:e4:b1:52:50:45:82:13:d8:d0:32:89:67:56:57:01:53         CodeChickenLib-1.16.4-3.5.0.398-universal.jar     |CodeChicken Lib               |codechickenlib                |3.5.0.398           |DONE      |31:e6:db:63:47:4a:6e:e0:0a:2c:11:d1:76:db:4e:82:ff:56:2d:29:93:d2:e5:02:bd:d3:bd:9d:27:47:a5:71         EnderStorage-1.16.4-2.7.0.159-universal.jar       |EnderStorage                  |enderstorage                  |2.7.0.159           |DONE      |31:e6:db:63:47:4a:6e:e0:0a:2c:11:d1:76:db:4e:82:ff:56:2d:29:93:d2:e5:02:bd:d3:bd:9d:27:47:a5:71         BetterMineshafts-Forge-1.16.3-1.1.1.jar           |YUNG's Better Mineshafts      |bettermineshafts              |1.16.3-1.1.1        |DONE      |NOSIGNATURE     Crash Report UUID: a578d4d5-1b1c-435c-8d19-758d3fd00dfc     Player Count: 0 / 10; []     Data Packs: vanilla, mod:enchantedbookredesign (incompatible), mod:instrumentalmobs, mod:ftbessentials, mod:netherportalfix (incompatible), mod:pamhc2trees (incompatible), mod:mining_helmet (incompatible), mod:itemfilters (incompatible), mod:jei, mod:doggytalents (incompatible), mod:abnormals_core, mod:mcwwindows (incompatible), mod:create, mod:bettercaves (incompatible), mod:forgeendertech, mod:cookingforblockheads (incompatible), mod:placebo (incompatible), mod:tumbleweed (incompatible), mod:travelersbackpack (incompatible), mod:naturescompass (incompatible), mod:storagenetwork (incompatible), mod:ftbguilibrary (incompatible), mod:decorative_blocks, mod:potionsmaster, mod:dungeoncrawl, mod:betteranimalsplus (incompatible), mod:farmingforblockheads (incompatible), mod:bookshelf, mod:botanypots, mod:guardvillagers, mod:simpleplanes (incompatible), mod:mcwdoors, mod:morpheus (incompatible), mod:toastcontrol (incompatible), mod:ichunutil, mod:carryon, mod:ftbteams (incompatible), mod:forge, mod:dragonmounts, mod:dummmmmmy (incompatible), mod:scuba_gear (incompatible), mod:extractures, mod:emojiful (incompatible), mod:corpse, mod:endergetic, mod:mcwbridges (incompatible), mod:repurposed_structures, mod:mousetweaks, mod:toolbelt (incompatible), mod:ftbquests (incompatible), mod:biomesoplenty, mod:valhelsia_structures (incompatible), mod:pamhc2crops (incompatible), mod:creativecore, mod:mcwtrpdoors (incompatible), mod:adlods, mod:towers_of_the_wild, mod:simplefarming, mod:pamhc2foodextended (incompatible), mod:randomenchants (incompatible), mod:curios, mod:artifacts, mod:mantle (incompatible), mod:pamhc2foodcore (incompatible), mod:storagedrawers (incompatible), mod:betteranimals (incompatible), mod:spawnvillage (incompatible), mod:ceramics (incompatible), mod:animalium (incompatible), mod:ftbultimine (incompatible), mod:buildersaddition (incompatible), mod:worldedit (incompatible), mod:spartanweaponry, mod:mcwroofs (incompatible), mod:architectury, mod:aiimprovements, mod:globalxp, mod:lightoverlay (incompatible), mod:itemphysic, mod:cloth-config (incompatible), mod:aquaculture (incompatible), mod:fastleafdecay (incompatible), mod:cosmeticarmorreworked (incompatible), mod:bettermineshafts (incompatible), mod:invtweaks (incompatible), mod:jeiintegration, mod:codechickenlib (incompatible), mod:enderstorage (incompatible)     Is Modded: Definitely; Server brand changed to 'forge'     Type: Dedicated Server (map_server.txt)
    • How do you remove the shadows from a custom block that is a light source? The block in the picture has a light level of 6, and it emits light, but it has an odd shadow. 
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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