Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Change cow names to "Sacrificial Cow"
- @EventHandler
- public void onMobSpawn(EntitySpawnEvent event)
- {
- if (event.getLocation().getWorld().equals("world_games"))
- {
- LivingEntity entity = (LivingEntity) event.getEntity();
- if (entity instanceof Cow)
- {
- entity.setCustomName("Sacrificial Cow");
- entity.setCustomNameVisible(true);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement