You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create class Items, in this class we will add all our grenades
Grenade:
public static final Grenade GRENADE_NAME = new Grenade(
power,
behavior,
customModelData,
name,
id,
material (if in config disabled resourcepack),
throw power,
can dispenser dispense grenade?
);
Example:
public static final Grenade gravityGrenade = new Grenade(
Settings.GRAVITY_GRENADE_POWER,
new GravityGrenadeBehavior(),
Settings.GRAVITY_GRENADE_MODEL,
Settings.GRAVITY_GRENADE_NAME,
"gravity_grenade",
Material.PURPLE_CANDLE,
Settings.GRAVITY_GRENADE_THROW_POWER,
Settings.GRAVITY_GRENADE_DO_DISPENSER
);
Settings.SomeThing is just settings from config
new GravityGrenadeBehavior() is behavior of our grenade, show later