terewarchi.blogg.se

Terraria 1.1 furnace
Terraria 1.1 furnace









  1. #Terraria 1.1 furnace mod
  2. #Terraria 1.1 furnace code

Note that this hook is only ever called through this item's associated equipment texture. Return false to hide the player's body when this body armor is worn. More.ĭrawArmorColor (Player drawPlayer, float shadow, ref Color color, ref int glowMask, ref Color glowMaskColor)Īllows you to modify the colors in which this armor and surrounding accessories are drawn, in addition to which glow mask and in what color is drawn. If false is returned, the OnConsumeItem hook is never called. If this item is consumable and this returns true, then this item will be consumed upon usage. If false is returned, the OnConsumeAmmo hook is never called. Called both by the gun and by the ammo if at least one returns false then the ammo will not be used. Whether or not ammo will be consumed upon usage. More.Ĭreate a copy of this instanced ModItem. Since several ModItem class fields are also set by the default implementation of this method, you'll most likely want to call base.Clone() as the first statement of your override. Only called if CloneNewInstances is set to true. By default this will return a memberwise clone you will want to override this if your ModItem contains object references. Allows you to decide which fields of your ModItem class are copied over when an item stack is split or something similar happens. More.Īllows you to manually choose what prefix an item will get. More.Īllows you to determine how many of this item a player obtains when the player fishes this item. Returns whether or not this item can be used. Returns whether or not this item does something when it is right-clicked in the inventory. More.Īllows you to determine whether or not the item can be picked up More. Return false to block this weapon from hitting the target. More.Īllows you to determine whether this melee weapon can hit the given opponent player when swung.

#Terraria 1.1 furnace code

Return true to allow hitting the target, return false to block this weapon from hitting the target, and return null to use the vanilla code for whether the target can be hit. More.Īllows you to determine whether this melee weapon can hit the given NPC when swung. Return false to disallow equipping this accessory. More.ĬanEquipAccessory (Player player, int slot)Īllows you to disallow the player from equipping this accessory. Returns whether or not this item burns when it is thrown into lava despite item.rare not being 0. Override this if you do not want the properties to be set for you. More.Īutomatically sets certain static defaults. Use this method to force or stop an autoload or change the internal name. Return true to allow autoloading by default returns the mod's autoload property. More.Īllows you to automatically load an item instead of using Mod.AddItem. This information is used for when the player is holding down the auto-select hotkey. More.ĪutoLightSelect (ref bool dryTorch, ref bool wetTorch, ref bool glowstick)Īllows you to tell the game whether this item is a torch that cannot be placed in liquid, a torch that can be placed in liquid, or a glowstick. More.Īutomatically sets certain defaults. Use the player.armorEffectDraw bools to activate the desired effects. More.Īllows you to determine special visual effects this vanity set has on the player without having to code them yourself. Also note that this hook is only ever called through this item's associated equipment texture. Note that this is only called for body armor. More.ĪrmorArmGlowMask (Player drawPlayer, float shadow, ref int glowMask, ref Color color)Īllows you to modify which glow mask and in what color is drawn on the player's arms. The description parameter is his dialogue, and catchLocation should be set to "\n(Caught at )". More.ĪnglerQuestChat (ref string description, ref string catchLocation)Īllows you to set what the Angler says when he requests for this item. When this item is used by right-clicking, player.altFunctionUse will be set to 2. More.Īllows you to make this item usable by right-clicking. More.įorce a re-roll of a prefix by returning false.

#Terraria 1.1 furnace mod

This allows you to avoid clutter in your overriding Mod class by adding recipes for which this item is the result. Do note that this will be called for every instance of the overriding ModItem class that is added to the game. This is essentially the same as Mod.AddRecipes.











Terraria 1.1 furnace