Feed The Beast Wiki

Follow the Feed The Beast Wiki on Discord or Mastodon!

READ MORE

Feed The Beast Wiki
Advertisement
Initial Inventory
Modicon Initial Inventory
Current developersjaredlll08
Version1.16.3: 5.0.1.11
1.16.1: 5.0.1.3
1.15.2: 5.0.1.5
1.14.4: 4.0.1
1.12.2: 3.0.0
1.12.1: 3.0.0
1.12: 3.0.0
1.11.2: 2.0.2
1.10.2: 1.0.1
Supported Minecraft versions1.10.2-1.16.3
Depends onCraftTweaker
MTLib
URLLink

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[]

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[]

Functions Parameters
addStartingItem(input, slot)  · input: (IItemStack) the starting item.
 · slot: (int) the slot in which the item is placed.

Example Script[]

mods.initialinventory.InvHandler.addStartingItem(<minecraft:cobblestone>, 3);

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.


External links[]


Advertisement