Guns4d | The ultimate 3d gun mod.

Module ammo_api

the API for defining unique ammunition

Synopsis

Functions
Guns4d.ammo.initialize_mag_data()

initializes a magazine's data

Guns4d.ammo.update_mag()

register a magazine so it can be filled with bullets and loaded into a gun

Guns4d.ammo.register_magazine()

register a magazine so it can be filled with bullets and loaded into a gun

Guns4d.ammo.initialize_mag_data(itemstack, meta)

initializes a magazine's data

Parameters
itemstack (itemstack)
meta (meta)

(optional)

Guns4d.ammo.update_mag(def, itemstack, meta)

register a magazine so it can be filled with bullets and loaded into a gun

Parameters
def ()
itemstack (itemstack)
meta (metadataref)

(optional) just passes it to be used so get_meta() isn't called more then once if it's already yhere

Return Values
(itemstack)
Guns4d.ammo.register_magazine(def)

register a magazine so it can be filled with bullets and loaded into a gun