Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. import crafttweaker.events.IEventManager;
  2. import crafttweaker.event.PlayerInteractEntityEvent;
  3. import crafttweaker.entity.IEntity;
  4.  
  5. events.onPlayerInteractEntity(function(event as crafttweaker.event.PlayerInteractEntityEvent){
  6. entity = <entity:mysticalworld:entity_fox>;
  7. if(event.player.currentItem.matches(<minecraft:iron_ingot>) && event.target.isEntityEqual(entity)){
  8. event.player.executeCommand("advancement grant @p only triumph:bestiary/fox");
  9. }
  10. else {
  11. event.canceled = true;
  12. }
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement