Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import crafttweaker.event.PlayerInteractEvent;
- events.onPlayerInteract(function(event as PlayerInteractEvent)
- {
- if (event.usingBlock) {return;}
- if (event.player.currentItem.definition.id == <minecraft:fire_charge>.definition.id)
- {
- print("fire charge used, not on a block!");
- /* val direction as
- eyeHeight
- heldEquipment
- rotationYaw
- rotationPitch
- lookingDirection */
- event.player.executeCommand("summon small_fireball ~ ~3 ~ {direction:[0.0,0.0,0.0],power:[0.1,0.0, 0.0]}");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement