Kushana Posted May 7 Report Posted May 7 Hi, i am trying to develop a varaty of insect and i started with katydid. The entities files and the itemtype file work for the live katydid but i cant seem to make work the bugnet to catch katydid. It catches it but dont get into inventory : .5.2026 17:14:29 [Error] Exception: Can't create itemstack without item! at Vintagestory.API.Common.ItemStack..ctor(Item item, Int32 stacksize) in VintagestoryApi\Common\Collectible\ItemStack.cs:line 227 at Vintagestory.GameContent.ModSystemCatchCreature.onCatchCreature(IServerPlayer fromPlayer, CatchCreaturePacket packet) in VSSurvivalMod\Item\ItemBugnet.cs:line 51 at Vintagestory.Server.NetworkChannel.<>c__DisplayClass9_0`1.<SetMessageHandler>b__0(Packet_CustomPacket p, IServerPlayer player) in VintagestoryLib\Server\API\NetworkChannel.cs:line 59 at Vintagestory.Server.NetworkChannel.OnPacket(Packet_CustomPacket p, IServerPlayer player) in VintagestoryLib\Server\API\NetworkChannel.cs:line 28 at Vintagestory.Server.NetworkAPI.HandleCustomPacket(Packet_Client packet, ConnectedClient client) in VintagestoryLib\Server\API\NetworkAPI.cs:line 59 at Vintagestory.Server.ServerMain.HandleClientPacket_mainthread(ReceivedClientPacket cpk) in VintagestoryLib\Server\ServerMainNetworking.cs:line 275 it is probably a problem with naming so i will post what i think is the problem if anyone can help "attributes": { "netCaughtItemCode": "notenoughinvertebrate:creature-katydid" }, #up is the lines to describe what item code it should give to the bugnet i supose and bellow is a part from the file "creature-katydid-dead.json "code": "creature", "class": "ItemCreature", "maxstacksize": 64, "variantgroups": [ { "code": "type", "states": ["tettigoniaviridissima"] } ],
Kushana Posted May 7 Author Report Posted May 7 Found the problem it was just a nomination problem with mod included that was different from the rest all good!
Recommended Posts