Jump to content

Recommended Posts

Posted

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"]   }
    ],
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.