I'm trying to add new fish for fishing but I don't understand loot tables compeletly and my fish is always catched with another item from vanilla minecraft. Could anybody help me?
I tried
I solved this problem and it was rather simple. It looks like LivingAttackEvent is firing during client tick, so when you disconnect you get ticking entities. What I did is I subscribed to ClientTickEvent and checked if tick phase is END (END tick phase fires after tick) so that Player will disconnect after tick.
I'm trynig to make client-side mod which disconnects player when getting damage. However everytime this error occurs:
[23:03:01] [main/FATAL] [net.minecraft.client.Minecraft]: Reported exception thrown!
net.minecraft.util.ReportedException: Ticking entity
at net.minecraft.world.World.updateEntities(World.java:1942) ~[World.class:?]
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1972) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1186) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:441) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_102]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_102]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_102]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_102]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_102]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_102]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_102]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_102]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
at GradleStart.main(GradleStart.java:25) [start/:?]
Caused by: java.lang.NullPointerException
at net.minecraft.client.multiplayer.WorldClient.playSound(WorldClient.java:508) ~[WorldClient.class:?]
at net.minecraft.client.entity.EntityPlayerSP.playSound(EntityPlayerSP.java:696) ~[EntityPlayerSP.class:?]
at net.minecraft.entity.EntityLivingBase.fall(EntityLivingBase.java:1471) ~[EntityLivingBase.class:?]
at net.minecraft.entity.player.EntityPlayer.fall(EntityPlayer.java:2104) ~[EntityPlayer.class:?]
at net.minecraft.block.Block.onFallenUpon(Block.java:1041) ~[Block.class:?]
at net.minecraft.entity.Entity.updateFallState(Entity.java:1250) ~[Entity.class:?]
at net.minecraft.entity.EntityLivingBase.updateFallState(EntityLivingBase.java:263) ~[EntityLivingBase.class:?]
at net.minecraft.entity.Entity.move(Entity.java:1002) ~[Entity.class:?]
at net.minecraft.client.entity.EntityPlayerSP.move(EntityPlayerSP.java:1189) ~[EntityPlayerSP.class:?]
at net.minecraft.entity.EntityLivingBase.travel(EntityLivingBase.java:2163) ~[EntityLivingBase.class:?]
at net.minecraft.entity.player.EntityPlayer.travel(EntityPlayer.java:1976) ~[EntityPlayer.class:?]
at net.minecraft.entity.EntityLivingBase.onLivingUpdate(EntityLivingBase.java:2614) ~[EntityLivingBase.class:?]
at net.minecraft.entity.player.EntityPlayer.onLivingUpdate(EntityPlayer.java:577) ~[EntityPlayer.class:?]
at net.minecraft.client.entity.EntityPlayerSP.onLivingUpdate(EntityPlayerSP.java:1136) ~[EntityPlayerSP.class:?]
at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:2396) ~[EntityLivingBase.class:?]
at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:272) ~[EntityPlayer.class:?]
at net.minecraft.client.entity.EntityPlayerSP.onUpdate(EntityPlayerSP.java:230) ~[EntityPlayerSP.class:?]
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2168) ~[World.class:?]
at net.minecraft.world.World.updateEntity(World.java:2127) ~[World.class:?]
at net.minecraft.world.World.updateEntities(World.java:1928) ~[World.class:?]
... 16 more
[23:03:01] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: ---- Minecraft Crash Report ----
// But it works on my machine.
Time: 9/22/18 11:03 PM
Description: Ticking entity
java.lang.NullPointerException: Ticking entity
at net.minecraft.client.multiplayer.WorldClient.playSound(WorldClient.java:508)
at net.minecraft.client.entity.EntityPlayerSP.playSound(EntityPlayerSP.java:696)
at net.minecraft.entity.EntityLivingBase.fall(EntityLivingBase.java:1471)
at net.minecraft.entity.player.EntityPlayer.fall(EntityPlayer.java:2104)
at net.minecraft.block.Block.onFallenUpon(Block.java:1041)
at net.minecraft.entity.Entity.updateFallState(Entity.java:1250)
at net.minecraft.entity.EntityLivingBase.updateFallState(EntityLivingBase.java:263)
at net.minecraft.entity.Entity.move(Entity.java:1002)
at net.minecraft.client.entity.EntityPlayerSP.move(EntityPlayerSP.java:1189)
at net.minecraft.entity.EntityLivingBase.travel(EntityLivingBase.java:2163)
at net.minecraft.entity.player.EntityPlayer.travel(EntityPlayer.java:1976)
at net.minecraft.entity.EntityLivingBase.onLivingUpdate(EntityLivingBase.java:2614)
at net.minecraft.entity.player.EntityPlayer.onLivingUpdate(EntityPlayer.java:577)
at net.minecraft.client.entity.EntityPlayerSP.onLivingUpdate(EntityPlayerSP.java:1136)
at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:2396)
at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:272)
at net.minecraft.client.entity.EntityPlayerSP.onUpdate(EntityPlayerSP.java:230)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2168)
at net.minecraft.world.World.updateEntity(World.java:2127)
at net.minecraft.world.World.updateEntities(World.java:1928)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1972)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1186)
at net.minecraft.client.Minecraft.run(Minecraft.java:441)
at net.minecraft.client.main.Main.main(Main.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
at GradleStart.main(GradleStart.java:25)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Client thread
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.playSound(WorldClient.java:508)
at net.minecraft.client.entity.EntityPlayerSP.playSound(EntityPlayerSP.java:696)
at net.minecraft.entity.EntityLivingBase.fall(EntityLivingBase.java:1471)
at net.minecraft.entity.player.EntityPlayer.fall(EntityPlayer.java:2104)
at net.minecraft.block.Block.onFallenUpon(Block.java:1041)
at net.minecraft.entity.Entity.updateFallState(Entity.java:1250)
at net.minecraft.entity.EntityLivingBase.updateFallState(EntityLivingBase.java:263)
at net.minecraft.entity.Entity.move(Entity.java:1002)
at net.minecraft.client.entity.EntityPlayerSP.move(EntityPlayerSP.java:1189)
at net.minecraft.entity.EntityLivingBase.travel(EntityLivingBase.java:2163)
at net.minecraft.entity.player.EntityPlayer.travel(EntityPlayer.java:1976)
at net.minecraft.entity.EntityLivingBase.onLivingUpdate(EntityLivingBase.java:2614)
at net.minecraft.entity.player.EntityPlayer.onLivingUpdate(EntityPlayer.java:577)
at net.minecraft.client.entity.EntityPlayerSP.onLivingUpdate(EntityPlayerSP.java:1136)
at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:2396)
at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:272)
at net.minecraft.client.entity.EntityPlayerSP.onUpdate(EntityPlayerSP.java:230)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2168)
at net.minecraft.world.World.updateEntity(World.java:2127)
-- Entity being ticked --
Details:
Entity Type: null (net.minecraft.client.entity.EntityPlayerSP)
Entity ID: 11969
Entity Name: Player208
Entity's Exact location: 218.41, 63.00, 247.39
Entity's Block location: World: (218,63,247), Chunk: (at 10,3,7 in 13,15; contains blocks 208,0,240 to 223,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Entity's Momentum: -0.12, -0.96, 0.24
Entity's Passengers: []
Entity's Vehicle: ~~ERROR~~ NullPointerException: null
Stacktrace:
at net.minecraft.world.World.updateEntities(World.java:1928)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1972)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1186)
at net.minecraft.client.Minecraft.run(Minecraft.java:441)
at net.minecraft.client.main.Main.main(Main.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
at GradleStart.main(GradleStart.java:25)
You need to use block entity/tile entity. It is basically data associated with block. There are plenty tutorials on this subject. So your block entity would store data about what ingredients you put in and the time of making drink. Start with block entity and if you get stuck or have any more questions I can help you.
You should use BabyEntitySpawnEvent if you want to spawn twins only after pigs breed. LivingSpawnEvent you are using, will fire everytime an entity spawns(on chunk load, on world load etc.).
That's weird. Command looks good, I don't know what's happening. Two things I can think of are : 1. Try do download MCP again and unzip it in other location 2. Maybe install Python 3.6
Hi, it looks like mcp is using system python instead of python from mcp files. Post the content of decompile.bat so i can see if it calls the right python.
It's easy Just put .zip file you downloaded inside .minecraft/resourcepacks folder. Then in minecraft go to options -> resource packs... and select the pack you downloaded.
0
I'm trying to add new fish for fishing but I don't understand loot tables compeletly and my fish is always catched with another item from vanilla minecraft. Could anybody help me?
I tried
But I'm catching 2 ittems (normal fish/item + my fish) instead of one
0
I completed your survey. If you want more people to complete this survey I suggest you post it here:
http://www.minecraftforge.net/forum/
And there's Discord server where many mod developers hang out. You shoud post it there too:
https://discord.mcmoddev.com/
0
I solved this problem
and it was rather simple. It looks like LivingAttackEvent is firing during client tick, so when you disconnect you get ticking entities. What I did is I subscribed to ClientTickEvent and checked if tick phase is END (END tick phase fires after tick) so that Player will disconnect after tick.
0
I'm trynig to make client-side mod which disconnects player when getting damage. However everytime this error occurs:
Code I'm using for disconnecting player:
Please help.
0
You need to use block entity/tile entity. It is basically data associated with block. There are plenty tutorials on this subject. So your block entity would store data about what ingredients you put in and the time of making drink. Start with block entity and if you get stuck or have any more questions I can help you.
1
You should use BabyEntitySpawnEvent if you want to spawn twins only after pigs breed. LivingSpawnEvent you are using, will fire everytime an entity spawns(on chunk load, on world load etc.).
Let me know if that helps.
0
That's weird. Command looks good, I don't know what's happening. Two things I can think of are : 1. Try do download MCP again and unzip it in other location 2. Maybe install Python 3.6
Let me know if this works.
0
It is just client tweak. However, if you own a server and want users to use it you can do that by following these instructions : instruction
0
Sorry but I have no idea what mod is causing this bugs.
First of all, your log file shouldn't be that large. The problem is that log file is spammed by warnings like :
[Netty Local Client IO #0/INFO] [FML]: Unexpected packet during modded negotiation - assuming vanilla or keepalives : net.minecraft.network.play.server.SPacketEntityMetadata
I don't know why it happens, though. Maybe someone else know why these warning occure or which mod is most likely to cause them.
0
Hi, it looks like mcp is using system python instead of python from mcp files. Post the content of decompile.bat so i can see if it calls the right python.
0
It's easy
Just put .zip file you downloaded inside .minecraft/resourcepacks folder. Then in minecraft go to options -> resource packs... and select the pack you downloaded.
0
Hmm, It's hard to tell which mod causes this. It would be helpful if you post your log files. They are located at .minecraft/logs folder.
Specifically two files:
fml-client-latest.log
latest.log