The forest mod api help
You gain experience points by killing enemies and destroying effigies. You can level up various stats be it decreasing the stamina usage while blocking, sprinting or attacking, sprint speed, jump height, passive health and stamina regen, attack speed, weapon and projectile damage, block damage and general damage reduction, fall damage reduction etc. It completely changes the way you play the game by implementing an RPG system in which you can earn experience and level up different stats.
#THE FOREST MOD API HELP UPGRADE#
One of the best The Forest mods out there is the Player Upgrade Points. All this, just so you do not get lost in this vast, cannibal-filled forest. As you can understand from its very straightforward name, the Map mod lets you access the map on which you can display your current location, locations of different caves and stashes, locations of all cannibals and positions of all players on the server if you are playing multiplayer. Recipe.One of the very basic elements that make The Forest a creepy experience and give you the sense of being lost, it is the fact that there is no map. Public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) Public override void MeleeEffects(Player player, Rectangle hitbox) Recipe.AddTile(null, "Orichalcum Anvil") Recipe.AddIngredient(null, "Iron Bar", 60) Recipe.AddIngredient(null, "Cobalt Bar", 55) Recipe.AddIngredient(null, "Broken Hero Sword", 1) Finally, to give your NPC a very high chance of spawning, replace "0.5f" with a large number like "100f". Now, to make sure your monster spawns only in the forest, you will probably find one of my helper methods useful. If you want, you can do the same and check for things like grass or dirt, but this is optional. These two monsters can only spawn on sand (and the desert monster can also spawn in a desert cave).
Next, notice that I check the tile IDs to see whether or not the monster can spawn. If you want an NPC to spawn only on the surface, then you'll need to use "y < Main.worldSurface". This means that the NPC can only spawn above the rock layer. }For the ocean spawning code, notice that I have "y < Main.rockLayer". Return (ExampleMod.NormalSpawn(spawnInfo) & (tile = 53 || tile = 112 || tile = 116 || tile = 234) & ExampleMod.NoZoneAllowWater(spawnInfo) & spawnInfo.water) & y Main.maxTilesX - 250) & !ayerSafe & NPC.downedGolemBoss ? 0.5f : 0f Public override float CanSpawn(NPCSpawnInfo spawnInfo)
#THE FOREST MOD API HELP MAC#
However, I need to work on getting all the main features finished, and the only thing I have that might be able to help me with a port is an old Mac that I'm not sure will be able to decompile Terraria. I wish to have Linux support in the future. Was there something more I was going to say? I don't remember. Now I'll just sit back and wait for bug reports to flood in.Īs a side-note, the documentation on the Github now contains all the vanilla IDs for if you're not able to decompile Terraria.
Removed a log write I accidentally left in Fixed bug where open modded doors invalidate houses Fixed bug where vanilla NPC display names are wrong Fixed bug where stackable mod items (ie ammo) can have prefixes Deleting players and worlds will now also delete the associated. Added EditSpawnRate, EditSpawnRange, CanSpawn, EditSpawnPool, and SpawnNPC hooks for NPCs Added GetAlpha, PreDraw, drawOffsetY, and PostDraw hooks for NPCs Added GetAlpha, drawOffset, PreDraw, and PostDraw hooks for projectiles Added BossHeadSlot, BossHeadRotation, and BossHeadSpriteEffects hooks for NPCs Added Colliding hook for projectiles and StrikeNPC hook for NPCs Added CanBeHitByProjectile, ModifyHitByProjectile, and OnHitByProjectile hooks for NPCs Added CanBeHitByPlayer, ModifyHitByPlayer, and OnHitByPlayer hooks for NPCs Added CanHitNPC, ModifyHitNPC, and OnHitNPC hooks for NPCs Added CanHitPlayer, ModifyHitPlayer, and OnHitPlayer hooks for NPCs Added CanHitPlayer, ModifyHitPlayer, and OnHitPlayer hooks for projectiles Added CanHitPvp, ModifyHitPvp, and OnHitPvp hooks for projectiles
Added CanHitNPC, ModifyHitNPC, and ModifyHitNPC hooks for projectiles Added CanHitNPC and CanHitPvp hooks for items Made it easier to customize vanilla NPC loot Added BossLoot hook and bossBag field for NPCs Added PreNPCLoot and NPCLoot hooks for NPCs Added TileCollideStyle, OnTileCollide, PreKill, and Kill hooks for projectiles Added aiType field for ModProjectile and ModNPC + animationType field for ModNPC Added FindFrame and HitEffect hooks for NPCs Added PreAI, AI, PostAI, SendExtraAI, and ReceiveExtraAI hooks for projectiles and NPCs