supersaiyansubtlety

text.zs

Feb 7th, 2020
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. import crafttweaker.events.IEventManager;
  2. import crafttweaker.event.BlockHarvestDropsEvent;
  3. import crafttweaker.item.IItemStack;
  4. import crafttweaker.item.WeightedItemStack;
  5. import crafttweaker.block.IBlockPattern;
  6. import crafttweaker.block.IBlock;
  7. import crafttweaker.block.IBlockDefinition;
  8. import crafttweaker.block.IBlockState;
  9. import crafttweaker.world.IWorld;
  10. import crafttweaker.entity.IEntity;
  11.  
  12. /* import scripts.statics.leafVariants;
  13. import scripts.statics.grassVariants; */
  14. import scripts.drops.block_drops_statics as stats;
  15.  
  16. events.onBlockHarvestDrops(function(event as BlockHarvestDropsEvent)
  17. {
  18. print("player block pos: ");
  19. for prop in event.world.getBlockState((event.player as IEntity).getBlockPos()).getPropertyNames()
  20. {
  21. print(" - "~prop);
  22. }
  23.  
  24. return;
  25. });
Advertisement
Add Comment
Please, Sign In to add comment