fix typo in README
This commit is contained in:
parent
d92228e45a
commit
975b2e8ff4
@ -4,8 +4,10 @@ Because many mods (sprint, 3d_armor and others) rewrite the stats in their corne
|
|||||||
|
|
||||||
|
|
||||||
***API***
|
***API***
|
||||||
player_physics.set_stats(player, "uniq_name", table)
|
|
||||||
player_physics.remove(player, "uniq_name")
|
- player_physics.set_stats(player, "uniq_name", table)
|
||||||
|
|
||||||
|
- player_physics.remove_stats(player, "uniq_name")
|
||||||
|
|
||||||
**Exemple**
|
**Exemple**
|
||||||
|
|
||||||
@ -23,7 +25,7 @@ player_physics.remove(player, "uniq_name")
|
|||||||
**Exemple**
|
**Exemple**
|
||||||
You make a potion that adds speed for 10 seconds.
|
You make a potion that adds speed for 10 seconds.
|
||||||
|
|
||||||
on_use = function(itemstack, user, pointed_thing
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
player_physics.add_effect(user, "potion_speedlvl1", 10, {speed=0.6})
|
player_physics.add_effect(user, "potion_speedlvl1", 10, {speed=0.6})
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
return itemstack
|
return itemstack
|
||||||
|
Loading…
Reference in New Issue
Block a user