- #TMODLOADER DOWNLOAD TUTORIAL HOW TO#
- #TMODLOADER DOWNLOAD TUTORIAL MOD#
- #TMODLOADER DOWNLOAD TUTORIAL FULL#
- #TMODLOADER DOWNLOAD TUTORIAL CODE#
#TMODLOADER DOWNLOAD TUTORIAL MOD#
Require = you can add a list (separated by ",") of id of mods which are required for your mod to works, for example if you want to add an Utility mod you use, or if you just want to make change on another mod, etc.
#TMODLOADER DOWNLOAD TUTORIAL FULL#
png image which be displayed when someone click on your mod in the mod selector.ĭescription = a full description of your mod. Id = an unique ID you need to find, it'll be used for the require stuff for example. Name = the name displayed in the mod selector. The mod.info file will contains a full description of your mod, along with other great stuf, here's an example : name=My custom mod v1.7id=RJCustomModposter=poster.pngdescription=Here's a description of my awesome custom mod.require=Utility, CustomMod2url=
#TMODLOADER DOWNLOAD TUTORIAL HOW TO#
MyPlayer.Here's a description of how to add your mod in PZ.įirst, the folder tree : zomboidFolder |- mods |- MyMod/ |- poster.png |- mod.info |- media/ |- lua/ |- a |- UI/ |- a |- sounds/ |- m圜ustomSound.ogg |- textures/ |- Item_customItem.png |- Prof_customProfession.png |- ui/ |- Traits/ |- trait_customtrait.png |- scripts/ |- m圜ustomItems.txt Note: to add buffs from the original game, use the type number of the buff you want to use instead of the name. MyPlayer.AddBuff("your buff name", 300, false) //set the 300 to buff time
![tmodloader download tutorial tmodloader download tutorial](https://i.imgur.com/MxWkdxl.png)
To activate a buff/debuff on yourself, under the correct effects portion of a.
![tmodloader download tutorial tmodloader download tutorial](https://i.imgur.com/9mSmgLW.png)
#TMODLOADER DOWNLOAD TUTORIAL CODE#
The following code allows you to reflect damage, walk on hellstone and meteor, walk on water and lava, place tiles really far away, and allows rocket flying! public static void Effects(Player player) Check the page out and you can see other things about players you can modify from this buff! The first line says Effects(Player player) which means the player that has the buff on them can be referenced using player.somethingFromPlayerClass. They reference the Player Class and access the controlX booleans (true/false) and set them to false, meaning the player won't be able to use up/down/left/right/jump while the buff is on them. However this particular example has 5 nearly similar commands, "ntrolX = false " meaning nearly the same thing. Pretty much any kind of coding could be written here, like increasing the spawn rate of things around you, or randomly dropping money from the sky. The method Effects() is called while your player is under the effects of your buffs (smart naming, huh?). Public static void Effects(Player player) Make a new file called Frozen.cs, also in the "Buff" folder, and add the following code into it: Buffs are usually on a blue background and CAN be dispelled by right clicking them. Remember, debuffs usually have a red background and can't be removed by right clicking them. Here are a few pictures to get you started: This is the icon that will show up when your player is under the effects of your custom buff. png file called Frozen.png there, with the image of what you want it to look like. Some debuffs are " Silenced "or " On Fire!", while some examples of buffs are " Ironskin" or " Shine"Īdd a. The difference between a buff and a debuff is that a debuff can't be removed by right-clicking on it.
![tmodloader download tutorial tmodloader download tutorial](https://i.ytimg.com/vi/uIp_WFz04bI/hqdefault.jpg)
The "debuff=True" line is what tells the game that this is a debuff. The "tip='I can't move!' " line is what shows up when you move your mouse over the buff on your status bar. This causes the tconfig program to look for custom code and image when loading your buff into the game. The "id=-1" line means your buff is a custom buff. Open it, and write the following code in:.In this tutorial we will use the name "Frozen". ini file, and name it whatever you want your buff to be called. Making a custom buff Setting up a ModPack įirst, if not done already, create a ModPack folder inside your terraria data folder (C:\Users\Username\Documents\My Games\Terraria\ModPacks by default).Ĭreate a folder called "Buff" inside your ModPack folder. It is reccommended that another tutorial about creating custom objects be completed first, such as making a custom weapon or making an accessory.