miningcar
Vars | |
momentum | How many turfs we are travelling, also functions as speed (more momentum = faster) |
---|---|
on_rails | Whether we're on a set of rails or just on the ground |
Procs | |
calculate_delay | Calculates how fast the cart is going |
can_travel_on_turf | Checks if we can travel on the passed turf |
shove_off | Starts the cart moving automatically. |
smack | Called when the minecart smacks into someone. |
throw_contents | Throws all the contents of the cart out ahead |
try_put_on_rails | Attempt to put the cart on rails |
try_take_off_rails | Attempt to remove the cart from rails |
update_rail_state | Updates the state of the minecart to be on or off rails. |
Var Details
momentum
How many turfs we are travelling, also functions as speed (more momentum = faster)
on_rails
Whether we're on a set of rails or just on the ground
Proc Details
calculate_delay
Calculates how fast the cart is going
can_travel_on_turf
Checks if we can travel on the passed turf
shove_off
Starts the cart moving automatically.
smack
Called when the minecart smacks into someone.
- smacked - The mob that was smacked.
- damage_mod - How much to multiply the momentum by to get the damage.
- momentum_mod - How much to divide the momentum by after the smack.
throw_contents
Throws all the contents of the cart out ahead
try_put_on_rails
Attempt to put the cart on rails
- user - The user attempting to put the cart on the rails.
- new_destination - The turf the cart will be moved to.
try_take_off_rails
Attempt to remove the cart from rails
- user - The user attempting to remove the cart from the rails.
- new_destination - The turf the cart will be moved to.
update_rail_state
Updates the state of the minecart to be on or off rails.