Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!
|Latest Minecraft version||1.12.2|
Initial Inventory is a mod by jaredlll08 that utilizes the Zenscript language added by CraftTweaker to allow modpack authors to set what items a player recieves upon joining a world for the first time.
Zenscript Usage[edit | edit source]
All files go in /scripts/ inside the Minecraft instance's directory and can be named anything as long as the file ends in .zs.
mods.initialinventory.InvHandler[edit | edit source]
|addStartingItem(input, slot)|| · input: (IItemStack) the starting item.|
· slot: (int) the slot in which the item is placed.
Example Script[edit | edit source]
The code above will add Cobblestone to the third slot in the player's hotbar when they first join any world in the instance.
If the slot given is already taken, it will set the item to the next available slot. If no slot is specified then slots will be filled from 1-9 sequentially.
[edit | edit source]