About Pumpkin Head
When picking up wild pumpkins [PumpkinHead] or his twin [CornHead] from picking up corn can appear
Features :
- Set configurable chance of [PumpkinHead] spawning after a wild pumpkin is picked up (not from harvesting pumpkins from planters)
- Set configurable chance of [CornHead] spawning after a wild Corn is picked up (not from harvesting Corn from planters)
- Set npc to be triggered during Nighttime (or during the set values in cfg)
- Configurable NPC (HP, Damage scaling, spawn amount and more)
- Support for Kits.
- Will yield corn and plant fibers on harvesting the PumpkinHead's corpse
- Will yield pumpkins and plant fibers on harvesting the Corn Head's corpse
- [PumpkinHead] and [CornHead] can drop a backpack (internal lootprofile through configuration)
- The npc can only spawn on the surface (no support for tunnel/caves)
- npc has 1 starter outfit and changes weapon each time it spawns out of the box (or when assigned kit(s) is not found)
- npc has various spawn and death effects (sound and visual)
Permissions :
pumpkinhead.use : Assign to players/groups to trigger the mini event
Commands :
/phinfo : Replies plugin info and version to chat
Configuration :
- To make a item spawn as a blueprint add .bp behind the shortname (for example ammo.pistol.bp)
- Different prefabs can be used for visual and sound FX on the spawn and kills of Pumpkinhead (not every prefab works)
If you do not want to change the Deathsound (murderer) or use any effect just remove the line between the " " as shown in the example
"Sound and visual FX": { "FX used when npc spawns (at npc position)": "", "Spawn soundeffect (at player position)": "", "FX used when npc dies (at npc position)": "", "Death soundeffect (npc deathsound)": "" }
- Probability from value 0 to 1 is the spawn chance of any item
- Usage of custom naming is now possible (> v1.1.7)
- Example of custom items like the ExtendedRecycler plugins recycler item.
{ "probability": 0.6, "shortname": "box.repair.bench", "name": "Recycler", "skin": 1594245394, "amountMin": 1, "amount": 1 },
{ "Use Debug": true, "Only Trigger at Night Time": false, "Night start": 20, "Night end": 8, "Inject Corpse": false, "Disable scientist sounds": true, "PumpkinHead triggers": { "Wild Pumpkins": { "Can spawn from wild Pumpkins": true, "Npc Name": "Pumpkin Crawler", "Spawn chance (1-100%)": 10.0, "Sound and visual FX": { "FX used when npc spawns (at npc position)": "assets/bundled/prefabs/fx/explosions/water_bomb.prefab", "Spawn soundeffect (at player position)": "assets/bundled/prefabs/fx/player/howl.prefab", "FX used when npc dies (at npc position)": "assets/bundled/prefabs/fx/explosions/water_bomb.prefab", "Death soundeffect (npc deathsound)": "assets/prefabs/npc/murderer/sound/death.prefab" } }, "Wild Corn": { "Can spawn from wild Corn": true, "Use SnowmanHelmet": true, "Npc Name": "Corn Crawler", "Spawn chance (1-100%)": 10.0, "Sound and visual FX": { "FX used when npc spawns (at npc position)": "assets/bundled/prefabs/fx/explosions/water_bomb.prefab", "Spawn soundeffect (at player position)": "assets/bundled/prefabs/fx/player/howl.prefab", "FX used when npc dies (at npc position)": "assets/bundled/prefabs/fx/explosions/water_bomb.prefab", "Death soundeffect (npc deathsound)": "assets/prefabs/npc/murderer/sound/death.prefab" } } }, "NPC Settings": { "Spawn Amount": 1, "Health": 250, "Max Roam Distance": 20, "Damage multiplier": 0.6, "Lifetime (minutes)": 10.0, "Use kit (clothing)": false, "Kit ID PumpkinHead": [ "npc-bluesuit01", "npc-dragon" ], "Kit ID CornHead": [ "npc-bluesuit01", "npc-dragon" ], "Show messages": true, "NPC drop a Backpack with loot": true, "Use Random Skins": true, "Spawn Min Amount Items": 2, "Spawn Max Amount Items": 6, "Loot Table": [ { "probability": 1.0, "shortname": "ammo.pistol", "name": "", "skin": 0, "amountMin": 5, "amount": 5 }, { "probability": 1.0, "shortname": "ammo.pistol.fire", "name": "", "skin": 0, "amountMin": 5, "amount": 5 }, { "probability": 1.0, "shortname": "ammo.pistol.hv", "name": "", "skin": 0, "amountMin": 5, "amount": 5 }, { "probability": 1.0, "shortname": "ammo.rifle", "name": "", "skin": 0, "amountMin": 5, "amount": 5 }, { "probability": 1.0, "shortname": "ammo.rifle.explosive", "name": "", "skin": 0, "amountMin": 5, "amount": 5 }, { "probability": 1.0, "shortname": "ammo.rifle.hv", "name": "", "skin": 0, "amountMin": 5, "amount": 5 }, { "probability": 1.0, "shortname": "ammo.rifle.incendiary", "name": "", "skin": 0, "amountMin": 5, "amount": 5 }, { "probability": 1.0, "shortname": "ammo.shotgun", "name": "", "skin": 0, "amountMin": 8, "amount": 12 }, { "probability": 1.0, "shortname": "explosive.timed", "name": "", "skin": 0, "amountMin": 1, "amount": 1 }, { "probability": 1.0, "shortname": "explosives", "name": "", "skin": 0, "amountMin": 1, "amount": 1 }, { "probability": 1.0, "shortname": "pistol.m92", "name": "", "skin": 0, "amountMin": 1, "amount": 1 }, { "probability": 1.0, "shortname": "shotgun.spas12", "name": "", "skin": 0, "amountMin": 1, "amount": 1 }, { "probability": 1.0, "shortname": "pickaxe", "name": "", "skin": 0, "amountMin": 1, "amount": 1 }, { "probability": 1.0, "shortname": "hatchet", "name": "", "skin": 0, "amountMin": 1, "amount": 1 }, { "probability": 1.0, "shortname": "can.beans", "name": "", "skin": 0, "amountMin": 1, "amount": 3 }, { "probability": 1.0, "shortname": "can.tuna", "name": "", "skin": 0, "amountMin": 1, "amount": 3 }, { "probability": 1.0, "shortname": "black.raspberries", "name": "", "skin": 0, "amountMin": 3, "amount": 5 } ] } }
Localisation :
English language file included to use a different language just make a new file in the language folder.
{ "PumpkinHead_Spawn": "My Pumpkiiiin", "PumpkinHead_Spawn_Backpack": "A Backpack dropped!", "Prefix": "[<color=green>PumpkinHead</color>] : ", "info": "\nGathering the wild pumpkins outside you could be jumped by PumpkinHead.", "CornHead_Spawn": "My Coooorn", "CornHead_Spawn_Backpack": "A Backpack dropped!" }